---
api: 'Business API'
---

# Assign a department to a team member

Assign a department to a specific team member.

For more information, see the guides: [Manage team members](https://developer.revolut.com/docs/guides/manage-accounts/teams/manage-team-members) and [Manage departments](https://developer.revolut.com/docs/guides/manage-accounts/teams/manage-departments).

## Endpoint

PUT `/team-members/{team_member_id}/department`

## Parameters

### path parameters

- `team_member_id` (string, required)
  The ID of the team member to assign the department to.

## Request body

### Attributes

- `department_id` (string)
    The ID of the department to assign to the team member.

## Returns

### 204

Department was assigned to the team member.

## Error responses

| HTTP status code | Description |
| --- | --- |
| 400 | Bad request  Returned when the specified department does not exist. |
| 401 | Unauthorized – authentication credentials are missing or invalid  Returned when the request was not fulfilled because authentication has failed or has not been provided. |
| 403 | Action forbidden - insufficient permissions to perform this action  Returned, for example, when you don't have permissions necessary to perform this action. |
| 404 | Not found  Returned when the team member that you're trying to update doesn't exist. |
