---
title: "Change a membership's role or active flag (admin)"
method: PATCH
path: "/v1/members/{id}"
tags: ["members"]
---

# Change a membership's role or active flag (admin)

`PATCH /v1/members/{id}`

## Request

- Base URL: `https://api.sixminute.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sixminute.ai/v1/members/{id}`
- Auth: HTTP bearer

The last active admin cannot be demoted or deactivated: 409 `urn:six-minute:problem:last-admin`. Deactivating a member of a firm whose practice system each person signs in to deletes that member's own session there and their binding; nothing is sent to the practice system. Deactivating a member also deletes their calendar account with its stored events and marks, and asks the provider to revoke where it allows. This is also how a former member comes back. The interval is the firm's (`PATCH /v1/tenant/settings`).

## Path parameters

- `id` string, required

## Request body

- object
  - `role` 'timekeeper' | 'billing' | 'admin'
  - `active` boolean

## Response `200`

The membership after the patch.

- object
  - `id` string, required
  - `user_id` string, required
  - `role` 'timekeeper' | 'billing' | 'admin', required
  - `active` boolean
  - `narrative_language` 'nl' | 'en' | 'de' | 'fr' | 'es' | 'it' | 'pt' | 'pl' | 'sv' | 'da' | 'en-GB' | 'pt-PT', nullable
  - `entry_size` 'fewer' | 'balanced' | 'more', nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: The body, query or path did not validate; `errors` lists the fields.
- `401`: No bearer token, or one that does not verify or has expired.
- `403`: The token verified but may not do this: no organisation, not provisioned, wrong role, or a device problem.
- `404`: No such row for this tenant.
- `409`: The id or the email already belongs to something else.

---

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