Skip to main content
POST
Update a user's role in an organization

Authorizations

Authorization
string
header
required

Personal Access Token (PAT) passed in the Authorization header (e.g., Bearer <pat>) for authenticated API requests. PATs are generated via /auth/generate-pat after authenticating through the magic link flow.

Body

application/json
org_id
string
required
Example:

"60c72b2f5f1b2c001c8e4b1a"

email
string<email>
required
role
enum<string>
required
Available options:
owner,
member
Example:

"owner"

Response

User role updated successfully

message
string
Example:

"User role updated successfully"