Delete group mapping
DELETE
/group-mapping/{id}
Delete a group mapping permanently.
Path Parameters
idstring · uuid
required·
The ID of the group mapping you want to delete.
Example:
1ba1f401-7183-47c5-9e39-e8e257e3c795Response Body
successboolean
Example:
trueErrors
| Status | Description |
|---|---|
403 | Forbidden if the user is not an admin of the mapping's team. API tokens are never team admins, so they always get 403. |
404 | Not found if no group mapping with that ID |
409 | Conflict if no admin who can sign in would be left in the team after the change (the members of the mapping's group are recomputed without what it gave them). Nothing is changed; make another member an admin first. |
curl -X DELETE 'https://api.truto.one/group-mapping/{id}' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/group-mapping/{id}', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/group-mapping/{id}"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.delete(url, headers=headers, params=params)
print(response.json())