Ana içeriğe geç

Change a member's role (admin only)

PUT 

/api/users/:userId/role

Changes a team member's role. ADMIN-ONLY. The workspace owner's seat cannot be demoted below admin, and the last active admin cannot be demoted (422 with a role field error).

Request​

Responses​

The updated member.