---
title: "Atomically set an existing school member role"
method: PUT
path: "/team-management/member-role"
tags: ["team-management"]
---

# Atomically set an existing school member role

`PUT /team-management/member-role`

## Request

- Base URL: `https://api.focusbear.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.focusbear.io/team-management/member-role`
- Auth: HTTP bearer

## Request body

- SetSchoolMemberRoleDto
  - `team_id` string, uuid, required
  - `member_id` string, uuid, required
  - `role` 'admin' | 'teacher' | 'member', required

## Response `200`

The final stored school role

## Other responses

- `400`: Team is not a school (regular teams use assign-admin / remove-admin), or the target is not a registered member

---

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