Skip to main content

CreateGuardrailRule

POST 

/v1/customers/:customer_id/projects/:project_id/guardrails/:guardrail_id/rules

CreateGuardrailRule adds a new rule to a guardrail. Returns PERMISSION_DENIED when the target guardrail is a template (is_template=true); templates are instantiated via CreateGuardrailFromTemplate, never mutated.

Request

Responses

Success