post
https://api.superwise.ai/v1/guardrails/validate
Route handler delegating guardrail validate to the service layer.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Validates a list of guardrules and returns a result for each one.
When to use it
Use it to check a set of guardrules before you save them in a guardrail version.
Required parameters
guardrules(body): the guardrules to validate.
Response
A successful call returns 200 OK with a JSON array of rule results. Each has the rule name, its type, whether it is valid, and a message.
Related: Get the guardrule JSON schema, Create a guardrail version, Run guardrules
401Unauthorized
422Unprocessable Entity
500Internal Server Error