---
title: "Add a new workspace member for given workspace ID"
method: POST
path: "/workspaces/members/by-workspace/{workspaceId}/by-usernames"
tags: ["Workspaces - Members"]
---

# Add a new workspace member for given workspace ID

`POST /workspaces/members/by-workspace/{workspaceId}/by-usernames`

## Request

- Base URL: `https://api.octoperf.com`
- URL: `https://api.octoperf.com/workspaces/members/by-workspace/{workspaceId}/by-usernames`
- Auth: none declared

## Path parameters

- `workspaceId` string, required

## Query parameters

- `username` string, required

## Response `201`

Created

- WorkspaceMember
  - `id` string
  - `userId` string
  - `workspaceId` string
  - `enabled` boolean
  - `authorizations` WorkspaceAuthorization[]
    - unknown

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `429`: Too Many Requests

## Changes

- **2026-11-03** `637a8f8ce8cf`: 1 info
  - api operation id `D` removed and replaced with `T_2`
- **2026-10-30** `fc0ab021d8d3`: 1 info
  - api operation id `C_3` removed and replaced with `D`
- **2026-10-29** `6fb7a9d5eb1c`: 1 info
  - api operation id `k_3` removed and replaced with `C_3`
- **2026-10-28** `6fc0f4ece308`: 1 info
  - api operation id `g_3` removed and replaced with `k_3`
- **2026-10-27** `d04c0ffc592f`: 1 info
  - api operation id `c_2` removed and replaced with `g_3`

[Operation history](https://skmtc.dev/octoperf/apis/octoperf-api/changes/workspaces/members/by-workspace/:workspaceId/by-usernames/post.md)

---

[API](https://skmtc.dev/octoperf/apis/octoperf-api.md) - [All operations](https://skmtc.dev/octoperf/apis/octoperf-api/llms.txt) - [OpenAPI document](https://skmtc.dev/octoperf/apis/octoperf-api/revisions/637a8f8ce8cf?raw)
