> For the complete documentation index, see [llms.txt](https://docs.drivequant.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.drivequant.com/enterprise/teams/enable-or-disable-a-team.md).

# Enable or disable a team

This service can be used to enable or disable the analytics services for all the users of a team belonging to your organisation.

When a team is created, its default status is active.

When a team is deactivated, all its API keys are invalidated. As a result:

* The [DriveKit trip analysis services](/trip-analysis/introduction.md) are disabled and the SDK will stop running.
* The [DriveKit Admin services](/backend/beacon.md) are disabled and related services can no longer be used.

{% hint style="info" %}
If you have your **enterprise API key**, you can try the API via this [**link**](https://drivequant.stoplight.io/docs/drivequant-public/353e3d93c19f1-enable-or-disable-a-team)**.**
{% endhint %}

{% openapi src="/files/QrSUgdcQKHBox7TTfgGW" path="/teams/{teamId}/status" method="put" %}
[Enterprise.yaml](https://2525923625-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXYIG5U3AO65YYFWJRK%2Fuploads%2FTTiLeuGg8U59w9k5PwxD%2FEnterprise.yaml?alt=media\&token=068f1889-59e6-4bc6-8b74-7a985dfce3cb)
{% endopenapi %}

### Request body

<table><thead><tr><th width="170">Name</th><th width="171.66666666666666">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>status</code></td><td><code>string</code></td><td>Status of the team<br><em>Allowed values: <code>ENABLED</code>, <code>DISABLED</code></em></td></tr></tbody></table>

### Response

The table below summarizes the response parameters.

<table><thead><tr><th width="170">Name</th><th width="171.66666666666666">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>status</code></td><td><code>string</code></td><td>Status of the team<br><em>Allowed values: <code>ENABLED</code>, <code>DISABLED</code></em></td></tr></tbody></table>

{% hint style="info" %}
To enable or disable individual *users*, you can use the corresponding DriveKit Admin service: <https://docs.drivequant.com/backend/driver/status>
{% endhint %}
