Copies the shifts from @source_schedule_selector to @destination_schedule_selector, constrained by the given parameters for the org sending the request. If @datetime_range is set, all shifts within the datetime range will be copied. If @datetime_range is not set, all shifts in the @source_schedule_selector within the schedule range of the @destination_schedule_selector will be copied. However if one of them is a published schedule, it will use the schedule range of the draft schedule. If @start_datetimes_only is set to false, then shifts are considered to be within the @datetime range if any portion of them is within the range. If @start_datetimes_only is set to true, then only shifts with start times within the @datetime range will be copied. If @overlap_as_warning is set to false, any overlapping shifts for a given agent will return a diagnostic error, and prevent any shifts from being copied. If @overlap_as_warning is set to true, the shifts will be copied regardless of overlap conflicts, and any conflicts will cause a diagnostic warning to be returned after. Errors: -grpc.Invalid: one or more fields in the request have invalid values. -grpc.NotFound: the @source_schedule_selector or @destination_schedule_selector don't exist for the org sending the request. -grpc.Internal: error occurs when creating the copied shift instances.
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/copyscheduletoschedule' \
--header'Content-Type: application/json' \
--data-raw''