code: func (hs *HTTPServer) AddTeamMember(c *m.ReqContext, cmd m.AddTeamMemberCommand) Response {
  	cmd.OrgId = c.OrgId
  	cmd.TeamId = c.ParamsInt64(":teamId")
  
  	if err := teamguardian.CanAdmin(hs.Bus, cmd.OrgId, cmd.TeamId, c.SignedInUser); err != nil {
  		return Error(403, "Not allowed to add team member", err)
  	}
  
  	if err := hs.Bus.Dispatch(&cmd); err != nil {
  		if err == m.ErrTeamNotFound {
  			return Error(404, "Team not found", nil)
  		}
  
  		if err == m.ErrTeamMemberAlreadyAdded {
  			return Error(400, "User is already added to this team", nil)
  		}
  
  		return Error(500, "Failed to add Member to Team", err)
  	}
  
  	return JSON(200, &util.DynMap{
  		"message": "Member added to Team",
  	})
  }
docs: // POST /api/teams/:teamId/members