dots.v1.consent.byEnvironment_id().put()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
client.v1.consent.byEnvironment_id(environment_id).put(body: WithEnvironment_PutRequestBody, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | WithEnvironment_PutResponse>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
Path Parameters
environment_idstring requiredExample:
019fb3d2-8a56-72cc-8bf9-9d21510b2a99A unique identifier for an environment. For Harness Runtime, this is the Environment Config ID. Formerly named agent_id.
Request Body
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.