This endpoint allows you to update specific fields of guardrails using JSON Patch operations.
Note: The path
field is a JSON Pointer string that references a location within the target document where the operation is performed.
For example:
[
{ "op": "replace", "path": "/data/0/guardrails_prompt", "value": "Your updated prompt"},
{ "op": "add", "path": "/data/0/callback_url", "value": "https://your-server.com/webhook" }
]
path
field matches the current guardrails schema.remove
operation, the value
parameter is not required.The unique identifier of the guardrails.
"g12345"
The body is of type object[]
.
Guardrails updated successfully
The response is of type object
.