---
title: "Add a team member"
method: POST
path: "/teams/{id}/members"
tags: ["teams"]
---

# Add a team member

`POST /teams/{id}/members`

Add a user as a member of a team

## Path parameters

- `id` string, required

## Request body

- AddMemberRequest
  - `role` string
  - `user_id` string

## Response `201`

Created

- MessageResponse
  - `message` string

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `409` — Conflict
- `500` — Internal Server Error

## Changes

- **2026-03-26** `5d3393878bb6` — 1 info
  - endpoint added
- **2025-06-02** `0c070796939d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/marmotdata/apis/marmot-api/changes/teams/:id/members/post.md)

---

[API](https://skmtc.dev/marmotdata/apis/marmot-api.md) · [All operations](https://skmtc.dev/marmotdata/apis/marmot-api/llms.txt) · [OpenAPI document](https://skmtc.dev/marmotdata/apis/marmot-api/revisions/cadebfd78fef?raw)
