pydo.signals.update_team_consent()

Generated on 6 Nov 2026 from pydo version v0.45.0

Usage

client.signals.update_team_consent(
    source="inference",
    body={
        "enabled": True,
    },
)
Returns JSON Raises HttpResponseError

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

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.

enabled boolean required

Whether to enable signals collection for this source.

Request Sample

Show Request Sample
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "enabled": True
}

resp = client.signals.update_team_consent(source="inference", body=req)

Response Example

Show Response Example
{
  "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 in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.