---
title: "Change Member Role"
method: PATCH
path: "/v1/orgs/members/{user_id}"
tags: ["Organizations"]
---

# Change Member Role

`PATCH /v1/orgs/members/{user_id}`

## Request

- Base URL: `https://api.fettle.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fettle.sh/v1/orgs/members/{user_id}`
- Auth: API key in header `Authorization`

Change a member's role (ADMIN, MEMBER, or VIEWER).

## Path parameters

- `user_id` string, uuid, required

## Headers

- `X-Organization-Id` string, uuid, nullable

## Request body

- MemberRoleUpdate: Request body for changing a member's role (OWNER rejected).
  - `role` 'OWNER' | 'ADMIN' | 'MEMBER' | 'VIEWER', required: Membership role of a user within an organization. Distinct from the dormant global ``UserRole`` (account-level template seam). OWNER ⊇ ADMIN plus exclusive actions (delete org, transfer ownership); those exclusive endpoints are enforced in A2. MEMBER = operational CRUD; VIEWER = read-only. Member name == value (UPPER) to match the project enum convention and the persisted DB labels.

## Response `200`

Successful Response

- SuccessResponse
  - `success` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fettle/apis/fettle-sh.md) · [All operations](https://skmtc.dev/fettle/apis/fettle-sh/llms.txt) · [OpenAPI document](https://skmtc.dev/fettle/apis/fettle-sh/revisions/f32c8a18606f?raw)
