// Update a team by its ID.
Update a team by its ID.
// Update a team by its ID .
func (s *teams) Update(ctx context.Context, teamID string, options TeamUpdateOptions) (*Team, error) {
	if !validStringID(&teamID) {
		return nil, errors.New("invalid value for team ID")
	}
	options.ID = ""
	u := fmt.Sprintf("teams/%s", url.QueryEscape(teamID))
	req, err := s.client.newRequest("PATCH", u, &options)
	if err != nil {
		return nil, err
	}
	t := &Team{}
	err = s.client.do(ctx, req, t)
	if err != nil {
		return nil, err
	}
	return t, nil
}
func ( s * teams ) Update ( ctx context . Context , teamID string , options TeamUpdateOptions ) ( * Team , error ) { if ! validStringID ( & teamID ) { return nil , errors . New ( " " ) } options . ID = " " u := fmt . Sprintf ( " " , url . QueryEscape ( teamID ) ) req , err := s . client . newRequest ( " " , u , & options ) if err != nil { return nil , err } t := & Team { } err = s . client . do ( ctx , req , t ) if err != nil { return nil , err } return t , nil }
Update a team by its ID.
Update a team by its ID .
// Make sure we don't send a user provided ID.