Skip to content

Get Management Unit IDs

Description

Fetches all management unit IDs to be used in Schedule Adherence Requests. Queries the /api/v2/workforcemanagement/managementunits endpoint.

Endpoint

GET https://api.mypurecloud.de/api/v2/workforcemanagement/managementunits

Request

Headers

  • Authorization: Bearer Token
  • Content-Type: application/json

Body Parameters

N/A (GET request)

CURL Example

curl -X GET 'https://api.mypurecloud.de/api/v2/workforcemanagement/managementunits' \
  -H 'Authorization: Bearer *******************' \
  -H 'Content-Type: application/json'

Response

Body Parameters

Name Type Description
entities Array Array of management unit objects
id String ID of the management unit (Used in Adherence requests)
name String Name of the management unit

Sample Response

{
    "entities": [
        {
            "id": "<MANAGEMENT_UNIT_ID_1>",
            "name": "Unit A",
            "selfUri": "/api/v2/workforcemanagement/managementunits/<MANAGEMENT_UNIT_ID_1>"
        },
        {
            "id": "<MANAGEMENT_UNIT_ID_2>",
            "name": "Unit B",
            "selfUri": "/api/v2/workforcemanagement/managementunits/<MANAGEMENT_UNIT_ID_2>"
        }
    ]
}