---
title: "Add member to team role"
method: POST
path: "/v1/teams/{teamId}/roles/{roleId}/members"
tags: ["Team Roles", "team"]
---

# Add member to team role

`POST /v1/teams/{teamId}/roles/{roleId}/members`

## Request

- Base URL: `https://placeholder/v1`
- URL: `https://placeholder/v1/v1/teams/{teamId}/roles/{roleId}/members`
- Auth: none required
- TypeScript: <https://skmtc.dev/northflank/apis/northflank-api/docs/v1/teams/:teamId/roles/:roleId/members/post.ts> (a function with typed inputs; its response is checked against the schema)

Adds a user to a platform role in a team.

## Path parameters

- `teamId` string, required: ID of the team
- `roleId` string, required: ID of the team role

## Request body

- object
  - `userId` string, required: ID of the user to add to this role.

## Response `200`

The operation was performed successfully.

---

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