pydo.signals.update_consent()
Generated on 6 Nov 2026
from pydo version
v0.45.0
Usage
client.signals.update_consent(
environment_id="019fb3d2-8a56-72cc-8bf9-9d21510b2a99",
body={
"enabled": True,
},
)Description
To enable or disable signals collection for a specific environment, send a
PUT request to /v1/consent/{environment_id} with an enabled boolean in the
request body.
This endpoint only manages per-environment (source: agent) consent. To manage
team-level consent for Serverless Inference, use
PUT /v1/consent?source=inference instead.
Parameters
environment_idstring requiredA unique identifier for an environment. For Harness Runtime, this is the Environment Config ID. Formerly named agent_id.
enabledboolean requiredWhether to enable signals collection for this environment.
Request Sample
Response Example
More Information
See /v1/consent/{environment_id} in the API reference for additional detail on responses, headers, parameters, and more.