Legacy Dev Forum Posts

 View Only

Sign Up

Activate Emergency through API

  • 1.  Activate Emergency through API

    Posted 06-05-2025 18:18

    Nathan_Tossens | 2020-09-11 07:17:18 UTC | #1

    Dears,

    I'm currently trying to develop a call flow to activate an Emergency group. The idea would be, if internet is down in our company, to call on a flow that will activate an emergency for all the specified IVR through a API call to the correct API via Data Action.

    I identified the correct API to do so :

    /api/v2/architect/emergencygroups/{emergencyGroupId}

    My request looks like this { "name": "Test Emergency", "enabled": true, "emergencyCallFlows": [ { "emergencyFlow": { "id": "XXXXXXX-a7ba-4d6e-995e-9XXXXXX" }, "ivrs": [ { "id": ""

    } ] } ] }

    My problem is that when I execute this request, the Emergency is well activated BUT all the call routing that should need to use this emergency group are gone...

    I know that by specifying the ID in the ivrs it works but I have more than 200 flows that are using that emergency group...

    Is there a way to activate this emergency via API without having to specify all the IVRS that should be "under" it? Otherwise I will have to specify an array of 2OO+ ID's...

    Thanks in advance for your answer.

    Nathan


    Jerome.Saint-Marc | 2020-09-14 06:53:33 UTC | #2

    Hello,

    Unfortunately no - you will have to specify the "IVRs" ids for each emergency call flow.

    Using a Genesys Cloud Data Action to get the details of the emergency group and then updating them will not work either (it would be necessary to pass arrays to the "update" data action - and as far as I know, it is not possible).

    The only thing I can think of (with your approach via a Call Flow) would be to trigger a Lambda function or a Google Cloud function or a secured WebService (not hosted in your company) - the triggered script/function doing a get on the emergency group and then an update/put. If you are not using or don't have access to any of these (lambda, Google Cloud, "external" Web Service), then I unfortunately don't know,

    Regards,


    system | 2020-10-15 06:53:35 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 8802