Create a job

Create a job

Creates a new job.

Tip

Check the Swagger page for more technical information on the endpoints.

Endpoint details

POST
https://<tenant>.myprotime.eu/connector/protimeapi/api/v1/jobs

Headers: Authorization: Bearer {token}, User-Agent: {agent} Scope: connector-protimeapi-jobs.write

Body properties

Field Type Required Writable Description
name.default string Yes Yes Default name of the job.
name.translations object No Yes Translated names, keyed by ISO language code (for example nl, fr).

External references

This endpoint does not accept the externalReferences query parameter. Register a custom external reference for the created job with the external references endpoints.

Error responses

Status Condition
400 Validation failed (missing name.default, invalid translation key)
401 Missing or invalid access token, or insufficient scope

Success response

201 Created with a Location header pointing to the new job. The response body is empty.

Examples

Create a job

POST
https://<tenant>.myprotime.eu/connector/protimeapi/api/v1/jobs

{
  "name": {
    "default": "Machine operator",
    "translations": {
      "nl": "Machineoperator"
    }
  }
}

Related pages