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 operation to perform. Must be one of: add, remove, replace, copy, move, test
add, remove, replace, copy, move, test "replace"
A JSON Pointer string that references a location within the target document where the operation is performed
"/guardrail_name"
The value to be used within the operation. This field is not required for the remove operation.
"Updated Compliance Guardrails"
Guardrails updated successfully
Success message
"Guardrails updated successfully"