Delete a group
DELETE
/groups/{id}
const url = 'https://localhost:3000/api/v1/groups/example';const options = {method: 'DELETE', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://localhost:3000/api/v1/groups/example \ --header 'Authorization: <Authorization>'Deletes a group (triggers are ungrouped, not deleted). Tenant groups need a role that can manage triggers (not viewer) and the tenant:write:
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Group ID (UUID)
Responses
Section titled “Responses”No Content
Media typeapplication/json
Invalid group ID
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Unauthorized
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Credential lacks tenant:write:
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Group not found or not manageable (non-member, viewer)
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Internal error
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}