Workforce managment APi

We are trying to run this from postman /api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/agentschedules/query

and I'm having the following error when executing
I'm passing this into the body
{
"managementUnitId": "",
"userIds": [
""
]
}

"message": "HTTP 415 Unsupported Media Type",
"code": "unsupported media type",
"status": 415,
"contextId": "7ce5bb6a-6acc-4256-a515-1a7575834ac9",
"details": [],
"errors": []

No matter what I add into the body it always give the same error.

Any ideas?
thanks.

It looks like you're sending text/plain as the content type (or you're sending nothing and that's a default trace, I can't tell). Try specifying it as JSON using the header: content-type: application/json. https://developer.genesys.cloud/api/rest/quickstart#make-a-request

1 Like

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