dots.v2.genAi.agents.byAgent_uuId().guardrails.post()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.genAi.agents.byAgent_uuId(agent_uuId).guardrails.post(body: ApiLinkAgentGuardrailsInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiLinkAgentGuardrailOutput>Description
To attach guardrails to an agent, send a POST request to /v2/gen-ai/agents/{agent_uuid}/guardrails.
Parameters
Path Parameters
agent_uuIdstring requiredExample:
"123e4567-e89b-12d3-a456-426614174000"The UUID of the agent.
Request Body
agentUuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"The UUID of the agent.
guardrailsarray of objects optionalThe list of guardrails to attach.
Show child properties
guardrailUuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000Guardrail uuid
priorityinteger optionalExample:
123Priority of the guardrail
Request Sample
Response Example
More Information
See /v2/gen-ai/agents/{agent_uuid}/guardrails in the API reference for additional detail on responses, headers, parameters, and more.