Skip to main content
POST
/
workspaces
/
{workspace_id}
/
members
Add Workspace Member
curl --request POST \
  --url https://api.altostrat.io/workspaces/{workspace_id}/members \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user_id": "<string>",
  "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"

Body

application/json
user_id
string
required

Auth0 user ID of the user to add

role
enum<string>
required
Available options:
owner,
admin,
viewer

Response

201 - application/json

Member added successfully.

user_id
string

Auth0 user ID

workspace_id
string
role
enum<string>
Available options:
owner,
admin,
viewer
created_at
string<date-time>
updated_at
string<date-time>
I