Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (21 loc) · 1.46 KB

File metadata and controls

29 lines (21 loc) · 1.46 KB

Update a Team's Member

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

HTTP MethodURLRequires Auth
POST/api/v1/teams.updateMemberyes

Body Parameters

KeyExample ValueDescription
teamId* or teamName*ByehQjC44FwMeiLbX or team1The team ID or the team name. You must enter either one of these parameters.
members*[{ "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
}