# Set team members

> Replace the membership. Send every member ID to keep, or an empty array to clear the team. Requires MEMBER GROUPS WRITE.

`PUT /v2/api/member_groups/{id}/members`

<Note>
**Required scope** `MEMBER_GROUPS_WRITE`
</Note>

Replace the membership. Send every member ID to keep, or an empty array to clear the team.

Use workspace member IDs such as `mem-abc123` in `team_member_ids`.

A membership change can change who receives live calls and grant new members access to the lines that ring the team. Find them with [List users](/docs/users/list-users), which returns `team_member_id`.
