Remove group via API request

(Ray B) #1

In addition to the Create Group and Edit Group API endpoints, is there a way to delete groups using the CCHQ API? We have thousands of case sharing groups, and would like to create a tool to delete groups that are not longer needed.

Thanks

0 Likes

(Simon Kelly) #2

Hi Ray

We do not have an API for this at present but we are in the process of releasing one. I will report back here once it’s live.

0 Likes

(Simon Kelly) #3

This API has been implemented. You can now issue a DELETE request to a group’s API URL to have the group deleted.

$ curl -X DELETE https://www.commcarehq.org/a/<domain>/api/v0.5/group/<group id>/

0 Likes