Guardrails
Patch Guardrails
Update specific fields of a guardrail using JSON Patch operations. Paths must match the current document shape - compare against the response from Get Guardrails before patching.
patch/v2/guardrails/{guardrail_id}
Request
- Base URLhttps://tavusapi.com
- URLhttps://tavusapi.com/v2/guardrails/{guardrail_id}
- AuthAPI key in header x-api-key
Request body
Example request
[
{
"op": "replace",
"path": "/guardrail_prompt",
"value": "Updated prompt with stricter restrictions."
}
]Response
Guardrail updated successfully
Example response
{
"uuid": "g1234567890ab"
}Changes
No recorded changes to this operation across all 2 revisions of this API.