# Update member

Changes a member's role, team or extra permission grants. Console session or API key with members:manage; only grantable roles are accepted, only an owner can make an owner, and the last owner can't be demoted (409).

`PATCH /v1/org/members/{mid}`

Changes a member's role, team or extra permission grants. Console session or API key with members:manage; only grantable roles are accepted, only an owner can make an owner, and the last owner can't be demoted (409).

Requires permission `members:manage`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `mid` | path | yes | Membership id (mem_...). |

## Request body

```json
{
  "role": "finance",
  "team_id": "team_01jd2x3k4m5n6p7q8r9s0t1v2w",
  "grants": [
    "string"
  ]
}
```

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **403**: Authenticated but not allowed: missing permission, passkey step-up required, or denied by policy.
- **404**: The resource does not exist or belongs to another organization.
- **409**: Conflicts with the current state, for example a reused Idempotency-Key or an illegal state change.

Example 200 response:

```json
{
  "member": {
    "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "user": {
      "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
      "email": "owner@example.com",
      "name": "Example",
      "telegram_linked": true
    },
    "role": "finance",
    "role_label": "string",
    "team": {
      "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
      "name": "Example"
    },
    "grants": [
      "string"
    ],
    "passkeys": 1,
    "created_at": "2026-11-16T12:00:00Z",
    "last_active_at": "2026-11-16T12:00:00Z"
  }
}
```
