Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Creating Data actions with API calls

    Posted 7 hours ago

    I notice there are two API calls that can be used to create new data actions POST /api/v2/integrations/actions and POST /api/v2/integrations/actions/drafts

    What is the difference between these? They both seem to take the same input and give the same outputs. Also when I have run them they both create new data actions and set them to draft and need to be published separately.

    I was thinking maybe that the /actions version would be intended to create and publish but that doesn't seem to be the case.

    Does anyone know the difference between these two endpoints?


    #DataActions
    #PlatformAPI

    ------------------------------
    Michael McEwen
    ------------------------------


  • 2.  RE: Creating Data actions with API calls

    Posted an hour ago

    Hi Michael, My understanding is that the difference is mainly the lifecycle target.
    POST /api/v2/integrations/actions creates an Action directly, meaning it is intended for the active/published action object.
    POST /api/v2/integrations/actions/drafts creates a Draft action, which then needs to go through the draft publish endpoint before it becomes the active action: https://registry.terraform.io/providers/MyPureCloud/genesyscloud/latest/docs/resources/integration_action_draft


    ------------------------------
    Att,
    Breno Canyggia Ferreira Marreco
    ------------------------------