Update a Team's Member

Updates a team member's roles. Requires edit-team-member permission.

HTTP MethodURLRequires Auth



Body Parameters

KeyExample ValueDescription

teamId* or teamName*

ByehQjC44FwMeiLbX or team1

The team ID or the team name. You must enter either one of these parameters.


[{ "userId": "8dugqGhuRvCBLdZft", "roles": ["member"] }]

The users (IDs and roles) to update in the team.

Example Call

curl  -H 'X-Auth-Token: _2u_4MzRroRcnqc59GYUY_Kwgr9HgtZ9HCKn-2aIvMJ' \
      -H 'X-User-Id: FL2fZL4ERhwA3gWiS' \
      -H "Content-type: application/json" \
      'http://localhost:3000/api/v1/teams.updateMember' \
      -d '{ 
            "teamName": "team1", 
            "member": { "userId": "LrTDRE27fWPEvaAwC", "roles": ["owner"] } }'

Example Response

  "success": true

Last updated

Rocket.Chat versions receive support for six months after release.