Resets the shifts on the @draft_schedule_sid for the org sending the request. Shifts overlapping the @datetime_range will be deleted, then that @datetime_range will be populated with shifts from the published schedule. If no @datetime_range is provided, all shifts will be removed from the @draft_schedule_sid, and published shifts will be copied across the draft's datetime range. If @unlocked_only is set to true, only unlocked shifts will be deleted, and the locked shift instances will remain. The published schedule will still be copied, so any newly overlapping shifts will result in an overlap warning. Errors:
grpc.Invalid: the @datetime_range or @draft_schedule_sid are invalid for the org sending the request.
grpc.NotFound: the @draft_schedule_sid doesn't exist.
grpc.Internal: error occurs when resetting the schedule.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
Example
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.cbf.tcn.com/api/v1alpha1/wfm/resetdraftschedule' \
--header'Content-Type: application/json' \
--data-raw''