---
title: "Change a member's role"
method: PATCH
path: "/v1/org/members/{id}/role"
tags: ["Organizations"]
---

# Change a member's role

`PATCH /v1/org/members/{id}/role`

## Request

- Base URL: `https://api.chainmemory.ai`
- URL: `https://api.chainmemory.ai/v1/org/members/{id}/role`
- Auth: API key in header `x-api-key`

## Path parameters

- `id` integer, required

## Request body

- object
  - `role` string, required: owner, admin, developer or viewer

## Response `200`

Role changed

## Other responses

- `400`: invalid role
- `404`: member not found
- `409`: cannot demote the last owner

---

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