Members and roles
Update a custom role
Permission
roles:updateAuthenticationPATCH
Applies a partial update to a custom role. System roles are immutable, reserved names are rejected, and supplied permissions cannot exceed the caller's. A semantic no-op preserves the version and ETag.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
application/json- body
Properties
1 <= propertiesname?stringLength
1 <= length <= 120description?stringLength
length <= 1000permissions?array<>Items
items <= 256Updated role, or the unchanged role for a semantic no-op.
application/json- response
id*stringFormat
uuidname*stringLength
1 <= length <= 120description*stringLength
length <= 1000is_system*booleanis_locked*booleanpermissions*array<>Items
items <= 256member_count*integerFormat
int64Range
0 <= valueversion*integerFormat
int64Range
1 <= valuecreated_at*stringFormat
date-timeupdated_at*stringFormat
date-timecurl -X PATCH 'https://api.kejue.co/v1/roles/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "is_system": true, "is_locked": true, "permissions": [ "string" ], "member_count": 0, "version": 1, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}