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

# Change a member's role

`PATCH /v1/members/{id}`

## Request

- Base URL: `https://www.chatrail.dev`
- URL: `https://www.chatrail.dev/v1/members/{id}`
- Auth: API key in cookie `chatrail_session`

## Path parameters

- `id` string, required

## Request body

- object
  - `role` 'owner' | 'admin' | 'developer' | 'viewer' | 'billing', required

## Response `200`

The updated member.

## Other responses

- `403`: You cannot assign or act on that role.
- `409`: A workspace must keep an owner.

---

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