Patch Guardrail

Patch a guardrail.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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

Path Params
string
required
Body Params
length ≤ 95
Responses

401

Unauthorized

404

Not Found

422

Unprocessable Entity

500

Internal Server Error

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json