Skip to main content
POST
Update team member role

Overview

Update a team member’s role within a tenant. This allows you to promote members to admins or demote admins to members.

Authorization

  • User must be authenticated with a valid Bearer token
  • User must have ADMIN role in the specified tenant

Validation Rules

  • role: Required, must be either “ADMIN” or “MEMBER”

Example Usage

Error Responses

User Not Found (404)

Not a Member (400)

Validation Error (422)

Authorizations

Authorization
string
header
required

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

Path Parameters

tenantId
integer
required

Tenant ID

userId
integer
required

Body

application/json
role
enum<string>
required
Available options:
ADMIN,
MEMBER

Response

200

Role updated