Workforce Management-ManagementUnit - Pagination

Hi Team,

We are using this API(/api/v2/workforcemanagement/managementunits) to get all the management units belongs to an org. In the documentation and api-explorer states that paging is not supported.

However, in the results of this API we could see the paging details.

{"entities": [],
"pageSize": 32,
"pageNumber": 1,
"total": 32,
"firstUri": "/api/v2/workforcemanagement/managementunits?pageSize=32&pageNumber=1",
"pageCount": 1,
"lastUri": "/api/v2/workforcemanagement/managementunits?pageSize=32&pageNumber=1",
"selfUri": "/api/v2/workforcemanagement/managementunits?pageSize=32&pageNumber=1"
}

Could you please confirm that all the management units will be retrieved in the first page? Or we should use the pagination strategy?

Best Regards,
Punitha

The documentation is correct. The reason the paging details are included in the schema are historical, but the short answer is that the only reason they still exist is because it would risk breaking customers (causing things like null pointer exceptions) to remove it. All management units* are always returned by that API.

*to which the requesting user has access

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.