post
https://api.superwise.ai/v1/guardrails//create-dataset
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
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
401Unauthorized
404Not Found
422Unprocessable Entity
500Internal Server Error