DELETE groups/…
Completely removes a group, including its objectives. Members are disconnected from the group, and the associated drills are removed from the user's repertoires where applicable.
Tests that are associated with the group are not removed, but they will no longer be linked to the group. Any test objectives defined in the group will be deleted.
The caller must have manage permission on the group in order to delete it.
Resource URL
https://www.drillster.com/api/2/groups/{group_id}
The group_id
identifies the group to be deleted.
Parameters
None, other than the group_id
in the URL.
Response
A message stating that the group was removed.
Example request
DELETE https://www.drillster.com/api/2/groups/nYrK9udUc-UGvRS2kxaPtaB-0wzeHAJzM6vlL1te6wI
Response
{
"description": "Group removed"
}
Error responses
The following error situations are possible:
ID | Description |
---|---|
group_not_found |
Could not retrieve group details. |
no_group_access |
Group not found or no permission to delete. |