---
title: "Update Member Role"
method: PATCH
path: "/v1/organizations/{organizationSlug}/members/{username}"
---

# Update Member Role

`PATCH /v1/organizations/{organizationSlug}/members/{username}`

Update the role of an organization member. Only organization admins or owners can perform this action.

## Path parameters

- `organizationSlug` string, required
- `username` string, required

## Request body

- object
  - `role` 'admin' | 'member' | 'viewer', required — The new role to assign to the member.

## Response `200`

Successful response

- object
  - `member` object
    - `username` string — The username of the updated member.
    - `email` string — The email of the updated member.
    - `role` 'admin' | 'member' | 'viewer' — The new role of the updated member.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.dev/turso/apis/turso-platform-api.md) · [All operations](https://skmtc.dev/turso/apis/turso-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/turso/turso-platform-api/revisions/6c99e4c88978/schema)
