Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Is it possible to delete (pending) WFM Time Off requests via API call?

    Posted 26 days ago

    Hi,

    For an integration project we might need to be able to create, update and optimally delete Time Off requests.

    Now I found APsI to create and update Time Off requests (as long as the Activity in question is of "Time Off" category), but I did not find a way to delete/cancel a WFM request, regardless of this request's state.

    The Cloud UI does show a counter for "cancelled requests", but I found no way to cancel such a request.

    It would be sufficient for us to be able to delete only a PENDING TimeOff-Request, but even that seems to be impossible.

    Is there some API call which I did miss, or is this fundamentally impossible?

    I also looked into the API call Genesys Cloud Developer Center https://developer.genesys.cloud/devapps/api-explorer#patch-api-v2-workforcemanagement-managementunits--managementUnitId--timeoffrequests--timeOffRequestId--users--userId--integrationstatus but this seems to be something different, as the allowed state does not include something like "Cancelled" - is this only for third-party HRIS integrations?

    In any way - is there a way to cancel/delete such requests?

    Thanks in advance,

    Wolfgang Liebich


    #PlatformAPI
    #PlatformSDK

    ------------------------------
    Wolfgang Liebich
    ------------------------------


  • 2.  RE: Is it possible to delete (pending) WFM Time Off requests via API call?

    Posted 26 days ago

    Hello,

    After you find out which time off request have status PENDING:

    https://developer.genesys.cloud/devapps/api-explorer#post-api-v2-workforcemanagement-managementunits--managementUnitId--timeoffrequests-query

    you can try to DENIED time off request using endpoint:

    https://developer.genesys.cloud/devapps/api-explorer#patch-api-v2-workforcemanagement-managementunits--managementUnitId--users--userId--timeoffrequests--timeOffRequestId-



    ------------------------------
    Krzysztof Krupa
    ------------------------------



  • 3.  RE: Is it possible to delete (pending) WFM Time Off requests via API call?

    Posted 26 days ago
    Edited by Wolfgang Liebich 26 days ago

    Hello,

    thank you for your answer. Yes, I know that you can PATCH a timeoff request for a management unit - I, however, want to totally get rid of it and delete it. Or cancel it - I did not yet find the API for cancelling a TimeOff request. At least not for cancelling a TimeOff-Request which was created by the "management API" (https://developer.genesys.cloud/useragentman/workforcemanagement/#post-api-v2-workforcemanagement- managementunits--managementUnitId--timeoffrequests)

    Does anyone know how to really "obliterate" such a request?

    EDIT: I also found now the API call https://developer.genesys.cloud/useragentman/workforcemanagement/#patch-api-v2-workforcemanagement-timeoffrequests--timeOffRequestId- - but this only works in a user context and for the Time OFf requests of the user for whom the request was made. I would also need the ability to cancel/delete such requests by an application running without a user context, i.e. a server application. The API I mentioned above cannot do that...

    Thanks in advance,

    Wolfgang Liebich



    ------------------------------
    Wolfgang Liebich
    ------------------------------