AdminTimeOffRequestPatch StatusEnum Cancel value

Hello

Why it is not possible to update agent pending time off request to status Cancel using AdminTimeOffRequestPatch?

I would like to use patchWorkforcemanagementManagementunitUserTimeoffrequest and set status canceled.

Is there a way to Cancel Time Off Request without using patchWorkforcemanagementTimeoffrequest?

This one requires to have agent "token" cached in API or transferred from Client to API and I would like to avoid it.

Regards
Robert

Hi Robert,

This looks like a feature that should be added to the API. Please submit the feature request here. You'll receive updates when we start working on that capability.

Ronan

It is not valid for an admin to cancel a request. They can deny it. We will not entertain a change here. Only the agent can cancel their own request and then only under certain circumstances.

  1. Valid transitions for an administrator:

    • submitted -> Pending, Approved
    • Pending -> Approved, Denied
    • Approved -> Denied
    • Denied -> Approved
    • Canceled -> none
  2. Valid transitions for an agent:

    • submitted -> Pending
    • Pending -> Canceled
    • Approved -> Canceled

Note that only an agent can cancel his or her time off requests. Pending time off requests can be canceled at anytime; approved time off requests can only be canceled if their start date is in the future.

If an administrator needs to cancel an agent's time off request, then he or she should deny the time off request.

Hello Jay

We do work on Java API based WFM API, that should serve as an interface for admins or agents to access WFM Pure Cloud platform.

The API itself uses Java API Client Credentials client for OAuth. The agent and admin application that communicates through the API with Genesys Pure Cloud WFM API uses Code Authorization to get user context.

We would like to avoid transfer of agent authentication token from clients to API and as well caching of tokens at WFM API side.

Therefore adding of Cancel into enumeration would help us perform Cancel action in behalf of an agent through the API.

If this is not possible and won't be supported, we will need to find a way around it.

Thank you
Best Regards
Robert

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.