Lists agent leave petitions for the @wfm_agent_sids over @datetime_range for the org sending the request. If no @wfm_agent_sids are provided, all agent leave petitions overlapping @datetime_range for the org sending the request will be returned. If no @datetime_range is provided, petitions will be returned across all datetimes. If @include_archived is true, archived agent leave petitions will be returned as well, otherwise archived requests will not be included. If no agent leave petitions are found for the given parameters, an empty slice will be returned. Errors:
grpc.Invalid: the request data is invalid.
grpc.Internal: error occurs when listing the agent leave petitions.
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/listagentleavepetitions' \
--header'Content-Type: application/json' \
--data-raw''