Workforce management API 404 Entity [person] is not found by guid

Hi,

Been looking at pulling some data down from the workforce management API in particular I am having some issues with:

/api/v2/workforcemanagement/adherence/historical
/api/v2/workforcemanagement/businessunits/{businessInitId}/weeks/{weekId}/schedules
...and others

I can execute these with my own user on the API explorer developer tool however when I use the client credentials I get a 404:

{
"reason": "Not Found",
"code": 404,
"detail": "Entity [person] is not found by guid []",
"payload": {
"code": "NOT_FOUND",
"entity": "person",
"_id":
}
}

I am aware the client creds. cannot access many the "current user" type of API's but these do not seem to fit into that mould. We have been using this user for periodic bulk/delta extraction of conversations and various related entities successfully for some time. We would like to do the same with some of the Workforce management objects. Am I using the correct API calls?

I found another related post but there was no specific resolution and wanted to check before heading down the same route:

Cheers,

Danny

Resolved. My mistake.

Found the issue was using the app url should be using the api.
i.e.

https://api.mypurecloud.com.au
vs
https://apps.mypurecloud.com.au

1 Like

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