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?
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.
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.