Change a member role
PUT/api/workspaces/:id/members/:memberId
Changes an existing member's role and returns the updated membership. The new role takes effect immediately for every document in the workspace: admin gives owner access, editor write access, and viewer read access, though creators keep owner access to their own documents. No email is sent. Only workspace admins may do this; everyone else, including non-members, gets 403. Changing the role of an inactive member returns 400. Demoting the last admin returns 400, and a membership that is not in this workspace returns 404.
Request
Responses
- 200
- 400
- 403
- 404
Updated member.
Request failed.
Request failed.
Request failed.