PATCH
/
workspaces
/
{workspace_id}
/
members
/
{member_id}
Update Member Role
curl --request PATCH \
  --url https://api.altostrat.io/workspaces/{workspace_id}/members/{member_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "role": "owner"
}'
{
  "user_id": "<string>",
  "workspace_id": "<string>",
  "role": "owner",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Auth0 JWT token for user authentication.

Path Parameters

workspace_id
string
required

The unique identifier for the workspace.

Example:

"ws_abc123"

member_id
string
required

The unique identifier for the member (Auth0 user ID).

Example:

"auth0|507f1f77bcf86cd799439011"

Body

application/json

Response

200 - application/json

Member role updated successfully.

The response is of type object.