Policies
Update Policy
Changed onUpdate an existing policy.
Example Request:
curl -X PUT "http://localhost:4000/policies/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"description": "Updated description",
"guardrails_add": ["pii_masking", "toxicity_filter"]
}'
put/policies/{policy_id}
Request
- Base URLhttps://api.flock.io (the document declares no server; this is the origin it was published from)
- URLhttps://api.flock.io/policies/{policy_id}
- AuthAPI key in header x-litellm-api-key
Path parameters
policy_idstring required
Request body
Response
Successful Response
Changes
- info
api tag
Policiesadded - info
api tag
policy_engineremoved
- info
- info
api tag
policy_engineadded - info
api tag
Policiesremoved
- info