Projects

Update Project User Role

Update a user's role on a project.

Works for both full users and stub users.

Requirements:

  • Requires FULL_ACCESS on the project
  • Cannot update project role for workspace owners
  • Role must be a valid project role: full_access, editor, commenter, downloader, viewer, no_access

Note: For MEMBER_LIMITED users, setting NO_ACCESS removes their explicit permission (equivalent to DELETE) since they have no access without explicit permission.

patch/projects/{project_id}/users/{user_id}

Request

  • Base URL
    https://api.aspect.inc
  • URL
    https://api.aspect.inc/projects/{project_id}/users/{user_id}
  • Auth
    API key in header Authorization

Path parameters

project_idstring uuid required
user_idstring uuid required

Request body

role'full_access' | 'editor' | 'commenter' | 'downloader' | 'viewer' | 'no_access' required

Role on a project.

Response

Successful Response

idstring uuid required

User ID

first_namestring required

User's first name

last_namestring required

User's last name

emailstring required

User's email address

avatar_urlstring nullable

User's avatar URL

role'full_access' | 'editor' | 'commenter' | 'downloader' | 'viewer' | 'no_access' required

Role on a project.

workspace_role'owner' | 'member' | 'member_limited' required

Role in a workspace.

has_explicit_permissionboolean required

True when the role was set on this project directly. False when it comes from the project's default role or workspace ownership.

Changes

No recorded changes to this operation across all 1 revision of this API.