Update an operational-administrator role
/portal/v1/accounts/{accountSlug}/admin-roles/{adminRoleId}Authentication
Bearer Token
AuthorizationJWT access token. Never send alongside X-API-Key: a request carrying both is refused.
Path Parameters
adminRoleIdstring Required Headers
if-matchrequiredIf-MatchOptimistic-lock version of the resource. Send the `version` field returned on read; the server rejects with 409 if the row has changed since.
Request body
application/json
namestring Optional Administrator role name
descriptionstring Optional Administrator role description
capabilitiesstring[] Optional Replacement set of operational capability keys
is_activeboolean Optional Whether the role is active
Responses
application/json
data *AdminRoleResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X PATCH "https://auth.canopy-io.com/portal/v1/accounts/{accountSlug}/admin-roles/value" \ -H "if-match: value" \ -H "If-Match: value" \ -H "Authorization: Bearer $CANOPY_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "description": "string", "capabilities": [ "string" ], "is_active": false }'
{ "data": { "id": "string", "name": "string", "description": "string", "is_system": false, "system_key": "string", "is_active": false, "scope": "account", "capabilities": [ "string" ], "assignment_count": 0, "created_at": "2026-04-20T12:00:00.000Z", "updated_at": "2026-04-20T12:00:00.000Z" } }
Tell us how we can improve this guide.