---
title: "Set an organization member's role"
method: PATCH
path: "/orgs/{identifier}/members/{userId}/role"
tags: ["My Organizations"]
---

# Set an organization member's role

`PATCH /orgs/{identifier}/members/{userId}/role`

Sets an organization member's role to ADMIN, MANAGER, or MEMBER. The caller (key owner) must be the organization owner. The owner role cannot be assigned or removed this way - use ownership transfer instead. Requires orgs.roster:read-write.

## Path parameters

- `identifier` string, required — Organization slug or Convex organization ID.
- `userId` string, required — Convex user ID of the member whose role is changing.

## Request body

- SetOrgMemberRoleBody — Set an organization member's role.
  - `role` 'ADMIN' | 'MANAGER' | 'MEMBER', required — The new role for the member. The owner role is changed via ownership transfer.

## Response `200`

Member role updated.

- SetOrgMemberRoleResponse
  - `success` true, required
  - `timestamp` string, required — Response generation time (ISO 8601).

## Other responses

- `400` — Bad request (invalid body, cursor, limit, or date).
- `401` — Missing or invalid API key.
- `403` — API key lacks the required permission.
- `404` — Resource not found.
- `429` — Rate limited.
- `500` — Internal server error.

---

[API](https://skmtc.net/teambattles/apis/teambattles-api.md) · [All operations](https://skmtc.net/teambattles/apis/teambattles-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/teambattles/teambattles-api/versions/2ffe8fb53b7d/schema)
