Create Guardrail Dataset

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

Creates a new dataset for a guardrail, given the guardrail's ID and a name for the dataset.

When to use it

Use it when a guardrail needs a new dataset. To attach a dataset that already exists, set dataset_id with Update a guardrail.

Required parameters

  • guardrail_id (path): the ID of the guardrail.
  • name (body): the name of the new dataset, 1 to 95 characters.

Response

A successful call returns 201 Created with a JSON object. Its fields are not documented.

Related: Update a guardrail, Verify a dataset schema for a guardrail, Create a dataset

Path Params
string
required
Body Params
string
required
length between 1 and 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