v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

List all employees of a center

This API helps you to retrieve all the employees that are active in the center on the specified date.

You must specify the unique identifier of the center as center_id in the API request. You can also leverage the pagination feature by passing page and size query parameters if you have a large number of records to be displayed. By default, page is set as 1 and size is set as 10. size cannot be more than 100: which means that the maximum records per page cannot be more than 100.

get/v1/centers/{center_id}/employees

Path parameters

center_idstring required

Mandatory Unique 32-character identifier of the center.

Query parameters

datestring date

Optional Date on which the employees are to be listed.

pageinteger

Optional Number of the display page. Default value is 1.

sizeinteger

Optional Number of records per page. Default value is 10.

Response

200

Example response

{
  "employees": [
    {
      "id": "af14d51c-556a-419a-a6d7-eb7df7369041",
      "code": "009",
      "personal_info": {
        "first_name": "Amy",
        "last_name": "Brown",
        "name": "Amy Brown",
        "gender": 1
      },
      "job_info": {
        "id": "0548b6f3-cecc-49c0-baab-558b4f019d1c",
        "name": "THERAPIST"
      }
    }
  ]
}