Zack_Pemberton | 2021-01-18 21:57:14 UTC | #1
I have been attempting to use /api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/generate to import a custom schedule into the WFM scheduling system.
My issue is that I cannot get custom schedule times to import. It seems to always generate the schedule itself based on the short term forecast. I tried running the POST without the shorttermforecast added and I received an error that it was required. Example of my POST below.
{ "description": "", "weekCount": 1, "shortTermForecast": { "id": "000-000-000", "weekDate": "2021-01-17" }, "agentSchedules":[ { "userId":"000-000-000", "shifts":[ { "activities":[ { "activityCodeId":"0", "startDate":"2021-01-18T12:00:00.000Z", "lengthMinutes":600, "description":"", "paid":true } ], "manuallyEdited":true } ] } ], "fullDayTimeOffMarkers":[
] }
brian.trezise | 2021-01-19 14:43:17 UTC | #2
A POST to /api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/generate will always attempt to generate a full schedule based on the forecast specified in the POST body.
The process to create a blank schedule and then import your own schedule is described on this page: https://developer.mypurecloud.com/api/rest/v2/workforcemanagement/upload-import_new_schedule.html
Please let us know if you have any further questions.
system | 2021-02-19 14:43:21 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: 9729