---
search:
  tags:
    - TeamMembers
    - PATCH
seo:
  description: >-
    Session cookie required. Personal access tokens are not… Reference for the
    PATCH /api/v1/teams/{teamId}/members/{memberId} endpoint in the Charming
    API.
sidebar:
  label: Change a team member’s role
  badge: PATCH
title: Change a team member’s role
type: openapi-operation
---
Session cookie required. Personal access tokens are not accepted. Only an owner may grant the `owner` role; everything else is the Better Auth org plugin’s gate, relayed verbatim.

`PATCH /api/v1/teams/{teamId}/members/{memberId}`

**Request body** (`application/json`, required)

- `role` (string, required)

Request body example:

```json
{
  "role": "owner"
}
```

**Responses**

- `200` — Role changed.
- `400` — Invalid body or role.
- `401` — Sign-in required.
- `403` — Refused by the owner-mint guard or the plugin gate.

Response example, 200:

```json
{
  "ok": true
}
```

Found a bug or need a feature? [Tell us](/docs/capabilities/feedback) with `submit_feedback` or `POST /app/{id}/feedback`. Your feedback shapes what we build next.
