Update a guardrail

Update an existing guardrail.

Authentication

AuthorizationBearer
API key as bearer token in Authorization header

Path parameters

idstringRequiredformat: "uuid"
The unique identifier of the guardrail to update

Request

This endpoint expects an object.
namestringOptional1-200 characters
New name for the guardrail
descriptionstring or nullOptional<=1000 characters
New description for the guardrail
limit_usddouble or nullOptional>=0
New spending limit in USD
reset_intervalenum or nullOptional

Interval at which the limit resets (daily, weekly, monthly)

Allowed values:
allowed_providerslist of strings or nullOptional
New list of allowed provider IDs
allowed_modelslist of strings or nullOptional

Array of model identifiers (slug or canonical_slug accepted)

enforce_zdrboolean or nullOptional
Whether to enforce zero data retention

Response

Guardrail updated successfully
dataobject
The updated guardrail

Errors