---
title: "Create a workspace membership"
method: POST
path: "/v3/workspace_memberships"
tags: ["Workspaces"]
---

# Create a workspace membership

`POST /v3/workspace_memberships`

Create a workspace membership.

## Request body

- WorkspaceMembershipCreate
  - `workspace` string — Uniquely identify a workspace.
  - `user` integer — Uniquely identify a user.

## Response `201`

Successfully created a workspace membership.

- WorkspaceMembership
  - `identifier` string — Uniquely identify a membership.
  - `workspace` string — Uniquely identify a workspace.
  - `user` User
    - `id` integer — Uniquely identify a user.
    - `name` string
    - `username` string
    - `email` string
    - `avatar` string, nullable — URL of the user's avatar.

## Other responses

- `400` — Bad request. If it is a validation error will contain a list of each invalid field
- `401` — Authorisation error
- `default` — UnexpectedError

---

[API](https://skmtc.net/affinda/apis/affinda-api-2.md) · [All operations](https://skmtc.net/affinda/apis/affinda-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/affinda/affinda-api-2/versions/6772e50cb58e/schema)
