Create a job category
Creates a new job category.
Tip
Check the Swagger page for more technical information on the endpoints.
Endpoint details
POST
https://<tenant>.myprotime.eu/connector/protimeapi/api/v1/job-categories
Headers: Authorization: Bearer {token}, User-Agent: {agent}
Scope: connector-protimeapi-job-categories.write
Body properties
| Field | Type | Required | Writable | Description |
|---|---|---|---|---|
name.default |
string | Yes | Yes | Default name of the job category. |
name.translations |
object | No | Yes | Translated names, keyed by ISO language code (for example nl, fr). |
externalCode |
string | No | Yes | External code for the job category. Maximum 50 characters. |
External references
This endpoint does not accept the externalReferences query parameter. Register a custom external reference for the created job category with the external references endpoints.
Error responses
| Status | Condition |
|---|---|
400 |
Validation failed (missing name.default, invalid translation key, value too long) |
401 |
Missing or invalid access token, or insufficient scope |
Success response
201 Created with a Location header pointing to the new job category. The response body is empty.
Examples
Create a job category
POST
https://<tenant>.myprotime.eu/connector/protimeapi/api/v1/job-categories
{
"name": {
"default": "Blue collar"
},
"externalCode": "JC-01"
}