Skip to main content

DeleteGuardrailRule

DELETE 

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

DeleteGuardrailRule soft-deletes a rule (sets deleted_at; the row disappears from List/Get). Historical trigger records referencing this rule REMAIN queryable. Returns NOT_FOUND when the rule does not exist under the given guardrail_id. Returns PERMISSION_DENIED when the target rule's parent guardrail is a template (is_template=true); templates are instantiated via CreateGuardrailFromTemplate, never mutated.

Request

Responses

Success