Update Role
Rename a custom role or replace its permissions. Members who hold the role get the new permissions. Global roles can't be changed.
Path
The role's id, from List Roles.
Headers
Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See Organizations.
Body
A new name, up to 255 characters.
A new description, up to 255 characters.
The full new set of permission keys. Replaces the current set.
Response fields
idstringUnique id of the role.
namestringThe role's name.
descriptionstringThe role's description. Empty when nobody wrote one.
isAdminbooleanTrue if the role grants admin rights.
isGlobalbooleanTrue for roles MindCloud provides to every company. Global roles are read-only: writing one answers 404.
createdOndateWhen the role was created.
memberCountnumberHow many people in the company hold the role, people whose invite is pending included. A role with members cannot be deleted.
permissionsarray of objectsEverything the role allows, as { key, name } pairs.
keystringThe permission key, such as workflow:run.
namestringThe permission's display name.