PermissionsPolicies

Update Policy

PATCH

Path parameters

idstringRequired

Request

This endpoint expects an object.
name
stringRequired
organization_id
stringOptional
policy_actions
list of objectsOptional

Response

This endpoint returns an object
data
objectOptional
PATCH
1curl -X PATCH https://app.polytomic.com/api/permissions/policies/248df4b7-aa70-47b8-a036-33ac447e668d \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "name": "Custom"
6}'
200Updated
1{
2 "data": {
3 "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
4 "name": "Policy",
5 "organization_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
6 "policy_actions": [
7 {
8 "action": "read",
9 "role_ids": [
10 "248df4b7-aa70-47b8-a036-33ac447e668d"
11 ]
12 }
13 ],
14 "system": false
15 }
16}