v124

OpenAPI 3.1.0MITraw.githubusercontent.com2026-08-01957351.2 MB
Workspaces

Bulk add members to a workspace

Add multiple organization members to a workspace. Members are assigned the same role they hold in the organization. Management key required.

post/workspaces/{id}/members/add

Path parameters

idstring required

The workspace ID (UUID) or slug

Example:production

The workspace ID (UUID) or slug

Request body

user_idsstring[] required

List of user IDs to add to the workspace. Members are assigned the same role they hold in the organization.

Example request

{
  "user_ids": [
    "user_abc123",
    "user_def456"
  ]
}

Response

Members added successfully

added_countinteger required

Number of workspace memberships created or updated

Example response

{
  "added_count": 1,
  "data": [
    {
      "created_at": "2025-08-24T10:30:00Z",
      "id": "660e8400-e29b-41d4-a716-446655440000",
      "role": "member",
      "user_id": "user_abc123",
      "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
    }
  ]
}