Hello,
I was wondering if the API at https://developer.genesys.cloud/api/rest/v2/workforcemanagement/upload-update_schedule is still up to date?
I am trying to make a request to the API and I am always getting error 400 Bad Request.
The URL for the request:
https://apps.mypurecloud.com/uploads/v4/services/workforcemanagement/businessunits/e77d0991-c424-4fec-aeca-09217fcda52d/weeks/2021-10-25/schedules/81fac0ff-ec4a-4a63-a911-cb07601c7c1a
I have a business unit with id : e77d0991-c424-4fec-aeca-09217fcda52d
I have a schedule starting 2021-10-25 with id: 81fac0ff-ec4a-4a63-a911-cb07601c7c1a
I use OAuth for authentication on Postman, tested and working for requests on https://developer.genesys.cloud/api/rest/v2/workforcemanagement/.
The body of my request:
{
"metadata":{
"version":1
},
"agentSchedules":[
{
"userId":"[MY USER ID - HIDDEN FOR FORUM]",
"shifts":[
{
"activities":[
{
"activityCodeId":"0",
"startDate":"2021-10-25T07:20:00.000Z",
"lengthMinutes":120,
"description":"Sample description",
"paid":true
}
],
"manuallyEdited":true
}
],
"fullDayTimeOffMarkers":[
],
"metadata":{
"version":1
}
}
]
}
Thanks,
Leandre