Resolves the given @agent_leave_petition_id, setting the given parameters, for the org sending the request. May only resolve leave petitions that currently have a PENDING_PETITION status. May only set the @petition_status to APPROVED_PETITION or DENIED_PETITION. If a petition is approved, time off shifts will be added to the agent's schedule across the requested_datetime_ranges. If @retain_partial_shifts is true, partial shifts overlapping the requested_datetime_ranges will have the remaining portion of the shift retained, if the remaining portion of the shift is at least 30 minutes in length. If @retain_partial_shifts is false, the entirety of shifts overlapping the requested_datetime_ranges range will be deleted or transfered depending on @replace_with_unassigned_agent. If @replace_with_unassigned_agent is true, an unassigned agent sid will be assigned to the covered shifts instead of deleting them. When @replace_with_unassigned_agent is true, if @retain_partial_shifts is also true, only the portion of the shift in the requested datetime ranges will be transfered. When @replace_with_unassigned_agent is true, if @retain_partial_shifts is false, the entirety of any overlapping shifts will be transfered. Errors:
grpc.Invalid: the request data is invalid, the @agent_leave_petition_id is not pending approval.
grpc.Internal: error occurs when resolving the agent leave petition, or modifying the agent's schedule.
grpc.NotFound: the @agent_leave_petition_id 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/resolveagentleavepetition' \
--header'Content-Type: application/json' \
--data-raw''