---
title: "Update a member’s role"
method: PATCH
path: "/organizations/{organizationId}/members/{memberPrincipalId}"
tags: ["Organizations"]
---

# Update a member’s role

`PATCH /organizations/{organizationId}/members/{memberPrincipalId}`

## Request

- Base URL: `https://api.cactal.ai/v1`
- URL: `https://api.cactal.ai/v1/organizations/{organizationId}/members/{memberPrincipalId}`
- Auth: HTTP bearer

Sets the member’s organization role. Requires a role with member management (owner or admin). Assigning `owner` transfers ownership: only the current owner can do this, the target member becomes the owner, and the caller is demoted to `admin`; transferring ownership to yourself is rejected. The current owner cannot be demoted directly (409) — transfer ownership by promoting another member instead.

## Path parameters

- `organizationId` string, required
- `memberPrincipalId` string, required

## Request body

- object
  - `role` 'owner' | 'admin' | 'full_editor' | 'content_editor', required

## Response `200`

The member’s new role together with the previous one.

- object
  - `principalId` string, required: Principal ID of the updated member.
  - `role` 'owner' | 'admin' | 'full_editor' | 'content_editor', required: Role the member now holds.
  - `previousRole` 'owner' | 'admin' | 'full_editor' | 'content_editor', required: Role the member held before this change.

## Other responses

- `400`: Validation failed. The response `message` names the first invalid field.
- `401`: Missing, invalid, expired, or revoked API key.
- `403`: The authenticated principal lacks the required capability.
- `404`: The resource does not exist or is outside the principal’s access scope.
- `409`: The request conflicts with the current state of the resource.
- `429`: Rate limit exceeded. Retry after the number of seconds in the `Retry-After` header.

---

[API](https://skmtc.dev/cactal/apis/cactal-api.md) · [All operations](https://skmtc.dev/cactal/apis/cactal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cactal/apis/cactal-api/revisions/9cd0fb5eacdd?raw)
