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

Latest commit

 

History

History
29 lines (21 loc) · 1.45 KB

File metadata and controls

29 lines (21 loc) · 1.45 KB

Add Members to Team

Requires add-team-member or edit-team-member permissions.

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

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 add to the team.

Example Call

curl  -H "X-Auth-Token: 8h2mKAwxB3AQrFSjLVKMooJyjdCFaA7W45sWlHP8IzO" \
      -H "X-User-Id: ew28FnZqipDpvKw3R" \
      -H "Content-type: application/json" \
      http://localhost:3000/api/v1/teams.addmembers \
      -d '{ 
            "teamId": "Isjsldk32sdkfA", 
            "members": [{ "userId": "aobEdbYhXfu5hkeqG", "roles": ["owner"]}] }'

Example Response

{
  "success": true
}