dtorres265 | 2021-08-19 18:51:17 UTC | #1
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.
tim.smith | 2021-08-19 19:14:10 UTC | #2
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
system | 2021-09-19 19:14:28 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 11787