code: func (hs *HTTPServer) UpdateTeamPreferences(c *m.ReqContext, dtoCmd dtos.UpdatePrefsCmd) Response {
  	teamId := c.ParamsInt64(":teamId")
  	orgId := c.OrgId
  
  	if err := teamguardian.CanAdmin(hs.Bus, orgId, teamId, c.SignedInUser); err != nil {
  		return Error(403, "Not allowed to update team preferences.", err)
  	}
  
  	return updatePreferencesFor(orgId, 0, teamId, &dtoCmd)
  }
docs: // PUT /api/teams/:teamId/preferences