Creates an agent leave petition to request time off for the @wfm_agent_sid over the @requested_datetime_ranges for the org sending the request. The @petition_comment must be set with a value. The @requested_datetime_ranges may not overlap each other. The number of working hours requested off should be set in @requested_hours_off. The @requested_hours_off does not need to relate directly to the datetime range being requested off, for example in the case where a 14 hour schedulable range is being taken off but 8 hours of work will be paid out with PTO. The usage of @requested_hours_off hours will depend on org policy, but is not yet implemented. Errors:
grpc.Invalid: the request data is invalid.
grpc.Internal: error occurs when creating the time off request.
grpc.NotFound: the @wfm_agent_sid does not exist for the org sending the request.
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/createagentleavepetition' \
--header'Content-Type: application/json' \
--data-raw''