code: func (hs *HTTPServer) UpdateTeam(c *m.ReqContext, cmd m.UpdateTeamCommand) Response {
  	cmd.OrgId = c.OrgId
  	cmd.Id = c.ParamsInt64(":teamId")
  
  	if err := teamguardian.CanAdmin(hs.Bus, cmd.OrgId, cmd.Id, c.SignedInUser); err != nil {
  		return Error(403, "Not allowed to update team", err)
  	}
  
  	if err := hs.Bus.Dispatch(&cmd); err != nil {
  		if err == m.ErrTeamNameTaken {
  			return Error(400, "Team name taken", err)
  		}
  		return Error(500, "Failed to update Team", err)
  	}
  
  	return Success("Team updated")
  }
docs: // PUT /api/teams/:teamId