Retrieve a list

Retrieve a list

Introduction

You can retrieve a list of all departments in the system.

Tip

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

Endpoint details

GET
https://<tenant>.myprotime.eu/connector/protimeapi/api/v1/departments

Response properties

This list of properties is returned by this endpoint.

Property Type Description
changeVersion string Property to indicate the order of changes.
id integer Unique identifier for the department.
name.default string Default name of the department.
name.translations object Translated names for supported languages.
externalCode string External code for the department.

Filters

This endpoint does not require any filter parameters. It returns all departments in the system.

External references

This endpoint does not require any external references.

Examples

Retrieve all departments

Example to retrieve all departments that have been configured in Protime:

GET
https://<tenant>.myprotime.eu/connector/protimeapi/api/v1/departments