Create a sector

Create a sector

Creates a new sector.

Tip

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

Endpoint details

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

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

Body properties

Field Type Required Writable Description
name.default string Yes Yes Default name of the sector.
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 sector 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 sector. The response body is empty.

Examples

Create a sector

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

{
  "name": {
    "default": "Logistics"
  }
}

Related pages