POST
/
v1
/
policies
curl --request POST \
  --url https://api.guardion.ai/v1/policies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "definition": "<string>",
  "target": "user",
  "detector": {
    "model": "modern-guard",
    "expected": "block",
    "reference": "<string>",
    "threshold": 123
  },
  "override_response": "<string>"
}'
{
  "id": "<string>",
  "definition": "<string>",
  "target": "user",
  "detector": {
    "model": "modern-guard",
    "expected": "block",
    "reference": "<string>",
    "threshold": 123
  },
  "override_response": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.