Skip to navigation

Create role

View as Markdown

Creates a new company role.

Permissions

To use this method, you must have the canManageAccount permission set to true.

Authentication

Authorizationstring

JWT Authorization header using the Bearer scheme. Example: “Authorization: Bearer {token}”

Path parameters

accountIdstringRequired

The globally unique identifier (GUID) for the account.

Request

Name and permission details of the role to be created
namestringOptional
The name of the role.
isExternalbooleanOptional

When true, the role is an external role. You assign external roles to people from outside your company when you invite them into a room.

permissionsobjectOptional
Contains details about permissions.

Response

Role successfully created.
roleIdintegerOptional
The ID of the company role assigned to the user.
legacyRoleIdstringOptional
This field is deprecated in Rooms Version 6.
namestringOptional
The name of the role.
isDefaultForAdminbooleanOptional

When true, the role is the default for account administrators.

isExternalbooleanOptional

When true, the role is an external role. You assign external roles to people from outside your company when you invite them into a room.

createdDatedatetimeOptional

The UTC date and time when the item was created. This is a read-only value that the service assigns.

Example: 2019-07-17T17:45:42.783Z

isAssignedbooleanOptional

When true, indicates that this role is currently assigned to a user.

permissionsobjectOptional
Contains details about permissions.

Errors

400
Bad Request Error
401
Unauthorized Error