Delete a team
curl --request DELETE \ --url "$UNEEQ_API_URL/external/v1/organization/$UNEEQ_ORG_ID/teams/{teamID}" \ --header "Authorization: Bearer $UNEEQ_API_KEY"const url = `${process.env.UNEEQ_API_URL}/external/v1/organization/${process.env.UNEEQ_ORG_ID}/teams/{teamID}`;const response = await fetch(url, { method: 'DELETE', headers: { Authorization: `Bearer ${process.env.UNEEQ_API_KEY}`, },});console.log(response.status, await response.text());Deletes the team. The team stops appearing in lists and can no longer be read, edited or given members or scenarios, and its name becomes available again. Deleting a team that is already deleted succeeds again with 204. Users are not deleted.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ID of the organization the API key belongs to, for example org_HYPCX67vaupjhdTn.
Example
org_HYPCX67vaupjhdTnID of a team in the organization, live or already deleted. Must be a lowercase hyphenated UUID.
Responses
Section titled “Responses”The team was deleted (or was already deleted).
teamID is not a lowercase UUID (message invalid request, no error_code).
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}The Authorization header is missing, or the API key is not valid for this organization. A key check that fails on the server is also reported as 401.
The body of an error returned before the request reaches an endpoint (authentication and rate limiting).
object
Human-readable explanation of what went wrong.
Example generated
{ "error": "example"}No team with this ID belongs to the organization (message team does not belong to the requested organization, no error_code).
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}The API key has sent too many requests. Wait for the number of seconds in Retry-After, then retry.
The body of an error returned before the request reaches an endpoint (authentication and rate limiting).
object
Human-readable explanation of what went wrong.
Example generated
{ "error": "example"}Headers
Section titled “Headers”Seconds to wait before retrying.
The team could not be deleted (message unable to delete requested team, no error_code).
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}
