Delete Team

API Details

Deletes a team. Without force, nothing is deleted while agents (including soft-deleted ones), queues, routing rule sets or linked entities use the team, and the response lists them. With force=true, the team is removed from its agents, and the Twilio workers of the agents are updated, the links to the linked entities are cleared, and the team is deleted. Queues and routing rule sets are never changed: the ones that use the team are returned in unclearedReferences, and their detection is best effort because their expressions are free text.

Rate Limit

Limit TypeValue
Requests per second10

If you exceed this limit, you will receive a 429 Rate Limit Exceeded response.

Path Params
string
required

Unique identifier of the team.

Query Params
boolean
Defaults to false

When true, removes the team from its agents, clears the links to the entities that are linked to it and deletes it even if agents, queues, routing rule sets or linked entities use it. Queues and routing rule sets are never changed: the ones that use the team are reported in unclearedReferences. Defaults to false.

Responses

400

Invalid team id.

403

The user is not a brand admin.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json