Enable emergency group

I tried to create a data action to enable an emergency group. I used this endpoint /api/v2/architect/emergencygroups/{emergencyGroupId} and the body as
{
"name": "Test",
"enabled": true
}

It took out all the IVRs that associated with that emergency group. How can I just edit the enabled attribute?

Hello,

In this case, the PUT request is replacing the existing emergency group and there is no PATCH option. However, you could try using a GET request to pull all of the information about that emergency group (which includes the IVRs that are associated with it), change the value of "enabled", and use that data as the request body in your PUT.

Hope that helps.
Charlie

Thanks @charlie.conneely.

In an IVR and data action setting, is there an easy to get grab the info from GET and send it in via PUT?

Or I have to grab all the info from GET into variables and send them to the PUT data action and construct the body?

Unfortunately, it doesn't seem like there is a simple way to achieve this from within Genesys Cloud. However, this answer to a previous forum post lists a few potential approaches to the problem.

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