Skip to main content
PATCH
/
guardrails
/
modify-policy
Update Policy
curl --request PATCH \
  --url https://api.enkryptai.com/guardrails/modify-policy \
  --header 'Content-Type: application/json' \
  --header 'X-Enkrypt-Policy: <x-enkrypt-policy>' \
  --header 'apikey: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "detectors": {}
}
'
{
  "message": "Policy details updated successfully"
}
Archived: This endpoint is legacy. Use the new Modify Guardrail endpoint instead, which supports separate input/output detector configurations.

Authorizations

apikey
string
header
required

Headers

X-Enkrypt-Policy
string
required

The policy name

Example:

"Test Guardrails Policy"

Body

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

Response

200 - application/json

Successful Response

message
string
Example:

"Policy details updated successfully"

data
GuardrailsPolicyResponseObject ยท object