Skip to main content

UpdateGuardrail

PATCH 

/v1/customers/:customer_id/projects/:project_id/guardrails/{guardrail.id}

UpdateGuardrail updates mutable guardrail fields. Omitted/empty scalar string fields leave the existing value untouched. Enum fields set to *_UNSPECIFIED leave the existing value untouched. Absent message fields (triggered_response) leave the existing value untouched; a present triggered_response replaces it wholesale. The guardrail id must be set inside the guardrail field. Returns PERMISSION_DENIED when the target guardrail is a template (is_template=true); templates are instantiated via CreateGuardrailFromTemplate, never mutated.

Request

Responses

Success