---
title: "Adds a new member to a project."
method: POST
path: "/v1/projects/{idOrName}/members"
tags: ["projectMembers"]
---

# Adds a new member to a project.

`POST /v1/projects/{idOrName}/members`

Adds a new member to the project.

## Path parameters

- `idOrName` string, required — The ID or name of the Project.

## Query parameters

- `teamId` string
- `slug` string

## Request body

- union
  - object
    - `uid` string, required — The ID of the team member that should be added to this project.
    - `username` string — The username of the team member that should be added to this project.
    - `email` string, email — The email of the team member that should be added to this project.
    - `role` 'ADMIN' | 'PROJECT_VIEWER' | 'PROJECT_DEVELOPER', required — The project role of the member that will be added.
  - object
    - `uid` string — The ID of the team member that should be added to this project.
    - `username` string, required — The username of the team member that should be added to this project.
    - `email` string, email — The email of the team member that should be added to this project.
    - `role` 'ADMIN' | 'PROJECT_VIEWER' | 'PROJECT_DEVELOPER', required — The project role of the member that will be added.
  - object
    - `uid` string — The ID of the team member that should be added to this project.
    - `username` string — The username of the team member that should be added to this project.
    - `email` string, email, required — The email of the team member that should be added to this project.
    - `role` 'ADMIN' | 'PROJECT_VIEWER' | 'PROJECT_DEVELOPER', required — The project role of the member that will be added.

## Response `200`

Responds with the project ID on success.

- object — Responds with the project ID on success.
  - `id` string, required

## Other responses

- `400` — One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- `401` — The request is not authorized.
- `403` — You do not have permission to access this resource.
- `410`
- `500`

---

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