---
title: "Assign team member to a sub-team (works for sub-teams only)"
method: PUT
path: "/teams/{subteamId}/members/assign/{memberId}"
tags: ["Teams"]
---

# Assign team member to a sub-team (works for sub-teams only)

`PUT /teams/{subteamId}/members/assign/{memberId}`

## Request

- Base URL: `/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/v1/teams/{subteamId}/members/assign/{memberId}`
- Auth: API key in header `Authorization` and API key in header `x-smyth-team-id`
- TypeScript: <https://skmtc.dev/smythos/apis/smyth-api/docs/teams/:subteamId/members/assign/:memberId/put.ts> (a function with typed inputs; its response is checked against the schema)

Assign team member

## Path parameters

- `subteamId` string, required
- `memberId` string, required

## Request body

- object
  - `roleId` number

## Response `200`

assigned team member

- ResponseMessage
  - `message` string

---

[API](https://skmtc.dev/smythos/apis/smyth-api.md) - [All operations](https://skmtc.dev/smythos/apis/smyth-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smythos/apis/smyth-api/revisions/1475e078fb4a?raw)
