# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.drivequant.com/enterprise/teams/enable-or-disable-a-team.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
