POST
/
v4
/
guardrails
curl --request POST \
  --url https://api.egp.scale.com/v4/guardrails \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "description": "<string>",
  "check_type": "input",
  "guardrail_metadata": {},
  "policies": [
    {
      "category": "<string>",
      "unsafe_threshold": 123,
      "guardrail_policy_metadata": {},
      "description": "<string>"
    }
  ]
}'
{
  "id": "<string>",
  "account_id": "<string>",
  "description": "<string>",
  "check_type": "input",
  "guardrail_metadata": {},
  "is_archived": true,
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.