---
title: dots.v1.consent.put()
description: Update Team-Level Consent
product: Reference
url: https://docs.digitalocean.com/reference/dots/reference/signals/signals-update-team-consent/
last_updated: "2026-11-18"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# dots.v1.consent.put()

Generated on 18 Nov 2026 from DoTs version [`v1.25.0`](https://github.com/digitalocean/dots/releases/tag/v1.25.0)

## Usage

```typescript
client.v1.consent.put(body: ConsentPutRequestBody, requestConfiguration?: RequestConfiguration<ConsentRequestBuilderPutQueryParameters>): Promise<undefined | ConsentPutResponse>
```

## Description

To enable or disable signals collection for a source that is consented at the team level, send a PUT request to `/v1/consent?source=inference` with an `enabled` boolean in the request body. Currently the only team-level source is `inference`, which covers Serverless Inference chat completions made by your team.

To revoke consent, send the same request with `enabled` set to `false`. The `source` query parameter is required. Per-environment consent for Harness Runtime environments is managed with `PUT /v1/consent/{environment_id}` instead.

## Parameters

### Query Parameters

`source` string required

Example: `inference`

The consent source to update. Only team-level sources are accepted on this endpoint; currently `inference` (Serverless Inference chat completions). Per-environment consent (`agent`) is managed with `PUT /v1/consent/{environment_id}` instead.

### Request Body

`enabled` boolean required

Whether to enable signals collection for this source.

## Request Sample

## Show Request Sample

```typescript
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v1.consent.put({
    enabled: true,
}, {
    queryParameters: {
        source: "inference",
    },
});
```

## Response Example

## Show Response Example

```json
{
  "consent": {
    "id": 21,
    "team_id": 39449946,
    "source": "inference",
    "agent_id": "",
    "enabled": true,
    "updated_at": "2026-10-09T11:41:27.104822Z"
  }
}
```

## More Information

See [`/v1/consent`](https://docs.digitalocean.com/reference/api/reference/signals/index.html.md#signals_update_team_consent) in the API reference for additional detail on responses, headers, parameters, and more.