Skip to navigation

Change a member's role

Preview

Changes a member’s role in a workspace or project. Specify either workspaceId or projectId.

The request fails if the member already has the specified role. The role associated with a pending invitation cannot be changed.

Workspace

A workspace owner can change any member’s role to any workspace role. A workspace admin can only change the roles of members who currently hold the Member, Viewer, or Guest role, and can only grant those roles.

Members whose roles are changed to Owner or Admin are also assigned the Admin role in every project within the workspace.

Members whose roles are changed from Owner or Admin to Member or Viewer lose that project-level Admin role.

Project

CAD ROOMS records a member.role_changed entry in the project’s activity.

Required permission: Workspace owner or admin for a workspace. Admin in the project for a project.

Authentication

AuthorizationBearer
An API key associated with your user account and workspace. API requests inherit your existing workspace permissions.
OR
AuthorizationBearer
The session token of a user signed in to the CAD ROOMS app. Every endpoint accepts it in place of an API key.

Path parameters

memberIdstringRequired

The userId of a member, or the inviteId of a pending invite.

Query parameters

workspaceIdstringOptional

The workspace of the member. Send either this or projectId.

projectIdstringOptional

The project of the member. Send either this or workspaceId.

Request

This endpoint expects an object.
roleenumRequired

Name of a role. A workspace accepts owner, admin, member, viewer and guest. A project accepts admin, collaborator and viewer.

Response headers

Request-IdstringOptional

Request-Id. Unique identifier for the request. Every response, success or error, returns it. Error bodies carry the same value in requestId. Include it when contacting CAD ROOMS support.

Response

Returns the member with the new role.
WorkspaceMemberobject
Represents a member or guest of a workspace, or a pending invite to it.
OR
ProjectMemberobject
A member of a project and their project role.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error