User

Change a workspace member's role

Change a user's role within a workspace. The user must already be a member of the workspace. Available to workspace owners, company owners, and properly permissioned API keys.

patch/workspaces/{workspace_id}/users/{id}

Request

  • Base URL: https://api.mabl.com
  • URL: https://api.mabl.com/workspaces/{workspace_id}/users/{id}
  • Auth: one of:
    • HTTP basic
    • API key in header Authorization

Path parameters

workspace_idstring required

Workspace ID

idstring required

ID of the user whose role should be changed

Headers

If-Matchstring

If-Match header according to http/1.1 spec section 14.24. Allows for enforced atomic updates, to prevent update collisions

Request body

role'owner' | 'editor' | 'viewer' required

The possible values for user role

Response

The user's role in this workspace after applying the update

Changes

No recorded changes to this operation across all 37 revisions of this API.