---
title: "Change a pending invitation role without resending the invitation"
method: PUT
path: "/team-management/pending-member-role"
tags: ["team-management"]
---

# Change a pending invitation role without resending the invitation

`PUT /team-management/pending-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/pending-member-role`
- Auth: HTTP bearer

## Request body

- SetPendingMemberRoleDto
  - `team_id` string, uuid, required
  - `email` string, email, required
  - `role` 'admin' | 'teacher' | 'member', required

## Response `200`

The stored invitation role

## Other responses

- `400`: Teacher role requested on a team that is not a school
- `404`: No pending or failed invitation for this team and email
- `409`: The invitation was accepted before the role could be changed

---

[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)
