Cancels the given @agent_leave_petition_id for the agent and organization sending the request. If @agent_leave_petition_id has a status of APPROVED_PETITION, the agent's schedule will have time off blocks removed, but any desired shifts must be added by the user after that leave is canceled. Errors:
grpc.Invalid: the request data is invalid, the @agent_leave_petition_id is already canceled.
grpc.Internal: error occurs when canceling the agent leave petition, or removing time off shifts from 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
No schema defined
Example
Request 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/agentcancelleavepetition' \
--header'Content-Type: application/json' \
--data-raw''