organization-guardrail-definitions
Update Organization Guardrail Definition
Changed onChange a definition's name, guardrail, build arguments, or enabled flag.
Organization owners and admins only. Omitted fields are left as they are. create_kwargs replaces the arguments whole when sent, an argument sent as *** keeps the value stored under that name, and omitting the field entirely leaves the stored credentials untouched and unread.
The guardrail is rebuilt afterwards and the response reports the outcome in build_state, so repairing a credential shows the definition running again in the same response, and enabled: false stops it here rather than on the next refresh.
patch/api/v1/organizations/me/guardrail-definitions/{definition_id}
Request
- The document declares no server URL.
- Auth: one of:
- API key in header Otari-Key
- API key in header x-api-key
Path parameters
definition_idstring uuid required
Request body
Example request
{
"create_kwargs": {
"api_key": "***",
"endpoint": "https://eu.api.lakera.ai"
},
"enabled": false
}Response
Successful Response
Changes
- info
added the optional property
to the response with the status
- info
- info
endpoint added
- info