PATCH
/
v2
/
guardrails
/
{guardrails_id}
curl --request PATCH \
--url https://tavusapi.com/v2/guardrails/{guardrails_id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '[
{
"op": "replace",
"path": "/data/0/guardrails_name",
"value": "Updated Compliance Guardrails"
}
]'
{
  "message": "Guardrails updated successfully"
}
  • Ensure the path field matches the current guardrails schema.
  • For the remove operation, the value parameter is not required.

Authorizations

x-api-key
string
header
required

Path Parameters

guardrails_id
string
required

The unique identifier of the guardrails.

Example:

"g12345"

Body

application/json · object[]

The body is of type object[].

Response

200
application/json

Guardrails updated successfully

The response is of type object.