Create Role
Create a custom role with exactly the permissions you choose, then assign it to members. You can grant only permissions you hold yourself.
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
The role name, up to 255 characters.
What the role is for, up to 255 characters.
Permission keys to grant. Leave it out to create the role with no permissions.
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.