Skip to main content
PATCH
Update User Role

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string<uuid>
required

Body

application/json

Payload for changing a user's role.

role
string
required

One of: admin, office-admin, office-employee, crew-member

Response

Successful Response

User info for admin view — hides technical fields.

role is the cached WorkOS membership role, used purely to render the crew table. Never read it for authorization.

id
string<uuid>
required
email
string
required
firstName
string
required
lastName
string
required
role
string
required
state
string
required
lastLogin
string<date-time> | null
required
createdAt
string<date-time>
required