Skip to main content
PATCH
/
workspaces
/
{workspaceId}
/
members
/
{memberId}
Update a member's role
curl --request PATCH \
  --url https://api.altostrat.io/workspaces/{workspaceId}/members/{memberId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "role": "admin"
}'
{
  "user_id": "auth0|64f5a6b7c8d9e0f1a2b3c4d5",
  "workspace_id": "ws_a1b2c3d4e5f6g7h8",
  "role": "admin",
  "created_at": "2025-10-29T00:40:06.000000Z",
  "updated_at": "2025-10-29T00:40:06.000000Z"
}

Authorizations

Authorization
string
header
required

Enter your JWT in the format: Bearer {token}

Path Parameters

workspaceId
string
required

The ID of the workspace.

Example:

"ws_a1b2c3d4e5f6g7h8"

memberId
string
required

The Auth0 User ID (sub) of the workspace member.

Example:

"auth0|64f5a6b7c8d9e0f1a2b3c4d5"

Body

application/json
role
enum<string>
required

The new role for the workspace member.

Available options:
owner,
admin,
viewer
Example:

"admin"

Response

The member's role was updated successfully.

user_id
string

The unique identifier for the user (Auth0 sub).

Example:

"auth0|64f5a6b7c8d9e0f1a2b3c4d5"

workspace_id
string

The ID of the workspace this membership belongs to.

Example:

"ws_a1b2c3d4e5f6g7h8"

role
enum<string>

The role of the user within the workspace.

Available options:
owner,
admin,
viewer
Example:

"admin"

created_at
string<date-time>

The timestamp when the member was added.

Example:

"2025-10-29T00:40:06.000000Z"

updated_at
string<date-time>

The timestamp when the member's role was last updated.

Example:

"2025-10-29T00:40:06.000000Z"