cURL
curl --request PUT \ --url https://control-plane.kubiya.ai/api/v1/policies/{policy_id} \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "policy_content": "<string>", "description": "<string>", "enabled": true, "tags": [ "<string>" ], "metadata": {} }'
{ "id": "<string>", "name": "<string>", "description": "<string>", "policy_content": "<string>", "organization_id": "<string>", "enabled": true, "tags": [ "<string>" ], "version": 123, "created_at": "<string>", "updated_at": "<string>", "created_by": "<string>", "updated_by": "<string>", "policy_type": "rego", "association_count": 0 }
Update an existing policy
Schema for updating an existing policy
1 - 255
Successful Response
Extended policy response with association count
Was this page helpful?