patch
https://api.superwise.ai/v1/guardrails/
Patch a guardrail.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Updates a guardrail's name, description, dataset, or observability setting. All body fields are optional.
When to use it
Use it to rename a guardrail or change its observability settings. To change the rules, use Create a guardrail version.
Required parameters
guardrail_id(path): the ID of the guardrail.
Optional body fields: name, description, dataset_id, observability_enabled.
Response
A successful call returns 200 OK with the GuardrailSchema object: id, name, description, observability_enabled, dataset_id, current_version, tags, and timestamps.
Related: Get a guardrail, Create a guardrail version, Verify a dataset schema for a guardrail
401Unauthorized
404Not Found
422Unprocessable Entity
500Internal Server Error