---
title: "Set Business Unit Members"
method: PUT
path: "/v2/business-units/{business_unit_id}/members"
tags: ["business-units"]
---

# Set Business Unit Members

`PUT /v2/business-units/{business_unit_id}/members`

## Request

- Base URL: `https://api.stuut.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stuut.ai/v2/business-units/{business_unit_id}/members`
- Auth: HTTP bearer

Update the business unit's membership so it matches the given users, and return the resulting
members. The list is the complete set, so anyone missing from it loses their membership — this
covers additions and removals in a single call.

- Pass one or more user IDs to restrict the unit to those people.
- Pass an empty list (`[]`) to remove all members, leaving the unit unrestricted.

Dropping a user's last membership makes them unscoped again, so they regain visibility of every
business unit. Requires organization admin.

## Path parameters

- `business_unit_id` string, required

## Request body

- SetBusinessUnitMembersRequest: Set which users are members of a business unit. Full replacement — the provided list becomes the complete membership. Passing an empty list removes all members, which leaves the unit unrestricted (visible to every user who isn't scoped to some other business unit).
  - `user_ids` string[]: IDs of the users who should be members of this business unit.

## Response `200`

Successful Response

- User[]
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, required
  - `id` string, required
  - `email` string, required
  - `name` string, required
  - `given_name` string, required
  - `family_name` string, required
  - `profile_picture` string, nullable, required
  - `role` 'admin' | 'member' | 'manager', required
  - `object` string, required: String representing the object's type. Objects of the same type share the same value.

## Other responses

- `422`: Validation Error

---

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