team
team

Change Member Role

Change member role (owner only).

Only the company owner can change roles. Cannot change your own role or assign the owner role (ownership transfer is a separate operation).

patch/api/v1/team/members/{user_id}/role

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/api/v1/team/members/{user_id}/role
  • Auth: none declared

Path parameters

user_idinteger required

Headers

Authorizationstring

Request body

role'owner' | 'admin' | 'member' | 'viewer' required

Company roles for team management.

Validated at API layer via Pydantic, stored as VARCHAR in DB.

Response

Successful Response

successboolean required
dataunknown
messagestring nullable
errorstring nullable
metaobject nullable

Changes

No recorded changes to this operation across all 1 revision of this API.