post https://api-sandbox.cv.gpsrv.com/intserv/4.0/deleteGroups
Use the Delete Groups endpoint to delete one or more groups. You cannot delete a group that has subgroups or linked accounts. To delete a group that has subgroups or linked accounts, follow the steps in Delete a Group in Creating a Corporate Hierarchy.
See Creating a Corporate Hierarchy for instructions on using this endpoint.
Status codes
See Global Response Statuses for status codes that are common across endpoints.
The table below lists status codes that apply to this specific endpoint.
Status code | Description |
---|---|
621-01 | Invalid group ID. The groupId does not exist in the core. Verify that the group ID is correct by calling Get Group Hierarchy for the root group. |
621-02 | Cannot delete a group that has subgroups. See Delete a group in Creating a Corporate Hierarchy for more information. |
621-03 | Cannot delete a group that has linked accounts. See Delete a group in Creating a Corporate Hierarchy for more information. |