---
title: "Add users to a team"
method: POST
path: "/v1/teams/{id}/users"
tags: ["Teams"]
---

# Add users to a team

`POST /v1/teams/{id}/users`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/teams/{id}/users`
- Auth: one of:
  - API key in header `GREPR-API-KEY`
  - OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Add users to a team.

## Path parameters

- `id` string, required

## Request body

- UsersUpdate
  - `leaderUserIds` string[], required
  - `memberUserIds` string[], required

## Response `200`

The list of users and roles that were successfully assigned.

- UsersUpdate
  - `leaderUserIds` string[], required
  - `memberUserIds` string[], required

## Other responses

- `401`: Unauthorized
- `404`: Not Found

---

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