v20

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-011984401.2 MB
My Organizations

Set an organization member's 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.

patch/orgs/{identifier}/members/{userId}/role

Path parameters

identifierstring required

Organization slug or Convex organization ID.

Organization slug or Convex organization ID.

userIdstring required

Convex user ID of the member whose role is changing.

Convex user ID of the member whose role is changing.

Request body

role'ADMIN' | 'MANAGER' | 'MEMBER' required

The new role for the member. The owner role is changed via ownership transfer.

Response

Member role updated.

successtrue required
timestampstring required

Response generation time (ISO 8601).