/teams/:id/members/:memberId

Changes a team member's role to admin or member. Only a team admin or a workspace admin can call it. role is the only field that changes; other fields in the body are ignored. The response body is true.

Only members who have accepted their invite can be changed. A pending invite returns 404; to give an invitee a different role, remove the invite and add them again with the role you want.

An admin can make themselves a member only while another admin is on the team. Setting a member to the role they already have succeeds.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The team's _id.

string
required

The member's memberId from the team's member list. This is not the user id.

Body Params
string
enum
required

The member's new role on the team.

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json
Psst... like working with APIs? Come join us!