Skip to main content
POST
Create Policy
Archived: This endpoint is legacy. Use the new Add Guardrail endpoint instead, which supports separate input/output detector configurations.

Authorizations

apikey
string
header
required

Body

application/json
name
string
required
description
string
required
detectors
GuardrailsDetectorsObject ยท object

Response

200 - application/json

Successful Response

message
string
Example:

"Policy details added successfully"

data
GuardrailsPolicyResponseObject ยท object