There is a note under the "Generate URL" section in the guide you linked that points at the schemas I linked above. I will make a note to try to make that stand out more in the documentation. Thanks for the feedback!
Original Message:
Sent: 06-26-2025 10:16
From: Michael McEwen
Subject: Updating an Existing Schedule Though WFM Upload APIs
Thank you both so much, this is exactly what I needed. I'm also glad to see where I can see the expected structure of the upload JSON beyond just the minimal example given in the guide.
------------------------------
Michael McEwen
Application Developer
Original Message:
Sent: 06-26-2025 08:38
From: Brian Trezise
Subject: Updating an Existing Schedule Though WFM Upload APIs
However I am unable to find any information on how to remove activities, shifts, and full day time off markers through this process. Has anyone worked with this before that might be able to point me in the right direction?
The schema for updating a schedule can be found documented on the response to the route to fetch the uploadUrl. You'll find the documentation under the 201 response on that resource, the field name is uploadBodySchema
To delete a shift, you must supply the ID of the object as well as setting the delete flag to true. To delete a time off marker, the procedure is the same but you provide the businessUnitDate in place of the ID.
To delete an activity from the shift, you replace the activities on the shift. Whatever activities you pass on the shift will replace what was there before.
Example json for removing a shift:
{ "id": "the-shift-id", "delete": true}
Example json for removing a full day time off request marker:
{ "businessUnitDate": "<the date of the marker to be deleted>", "delete": true}
Note that updating either of the above is the same, you just populate the data you wish to change (and don't pass the delete flag).
To remove an activity from a shift, just replace the activities on the shift - they are considered properties of the shift rather than individual entities that can be manipulated individually with a delete flag.
Of course, the example json above must be nested in the correct level of the schema as documented at the above link.
------------------------------
Brian Trezise
Genesys - Employees - Lead Software Engineer
Original Message:
Sent: 06-26-2025 08:07
From: Michael McEwen
Subject: Updating an Existing Schedule Though WFM Upload APIs
Thank you very much for the quick response. Unfortunately this was one of the first things that I had tried and it seems that each update adds to what is currently there. I tested with three uploads of single activity uploads incrementing them by an hour each time and I ended up having them added one by one until I had all three back to back. I have also tried passing an empty array for the fullTimeOffDayMarker but it doesn't seem to have any effect even though the notification channel says the update goes through as COMPLETE.
------------------------------
Michael McEwen
Application Developer
Original Message:
Sent: 06-26-2025 07:34
From: Jay Langsford
Subject: Updating an Existing Schedule Though WFM Upload APIs
Same way you updated. Think of it more as a replace. What you specified in the update for say an addition can be used by specifying a set of information with omissions. So, you have a schedule in hand, make it 'look' like you want locally, then update with that data.
------------------------------
Jay Langsford
VP, R&D
Original Message:
Sent: 06-25-2025 09:15
From: Michael McEwen
Subject: Updating an Existing Schedule Though WFM Upload APIs
Currently I am able to update schedules by following the guide at https://apps.usw2.pure.cloud/directory/#/admin/wfm/schedules/52c855d8-acc8-4310-9efd-16be6e74e4b8/update/2025-06-23966a1fb4-b84c-44c1-b00a-119dcc1f114f
However I am unable to find any information on how to remove activities, shifts, and full day time off markers through this process. Has anyone worked with this before that might be able to point me in the right direction?
#PlatformAPI
------------------------------
Michael McEwen
Application Developer
------------------------------