---
title: "Replace Team Members List"
method: POST
path: "/teams/{team_id}/members"
tags: ["Teams"]
---

# Replace Team Members List

`POST /teams/{team_id}/members`

## Request

- Base URL: `https://dataops.nexla.io/nexla-api`
- URL: `https://dataops.nexla.io/nexla-api/teams/{team_id}/members`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nexla/apis/nexla-rest-api/docs/teams/:team_id/members/post.ts> (a function with typed inputs; its response is checked against the schema)

Replaces the list of members belonging to a team. Existing members will be removed from the team.

## Path parameters

- `team_id` integer, required

## Request body

- TeamMemberList
  - `members` TeamMemberResponseSchema[]
    - `id` integer: Unique ID of the user.
    - `email` string, email: Email ID of the user.
    - `admin` boolean: Reflects whether the user is an administrator of this team or not.

## Response `200`

Success

- TeamMemberList[]
  - `members` TeamMemberResponseSchema[]
    - `id` integer: Unique ID of the user.
    - `email` string, email: Email ID of the user.
    - `admin` boolean: Reflects whether the user is an administrator of this team or not.

## Other responses

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

---

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