Files

35 lines
799 B
YAML

tags:
- Teams
operationId: delete-a-team
summary: Delete a team
security:
- userApiKey: []
description: Delete a team from the account
x-codeSamples:
- lang: python
label: "Delete a team"
source: |
from chatwoot import ChatwootClient
client = ChatwootClient(
base_url="https://app.chatwoot.com",
api_token="your-api-token"
)
client.teams.delete(account_id=1, team_id=5)
responses:
'200':
description: Success
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/bad_request_error'
'404':
description: The team does not exist in the account
content:
application/json:
schema:
$ref: '#/components/schemas/bad_request_error'