PermissionsRoles

Update Role

PATCH

Path parameters

idstringRequired

Request

This endpoint expects an object.
name
stringRequired
organization_id
stringOptional

Response

This endpoint returns an object
data
objectOptional
PATCH
1curl -X PATCH https://app.polytomic.com/api/permissions/roles/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": "Custom",
5 "organization_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
6 "system": false
7 }
8}