func (c *Client) UpdateService(i *UpdateServiceInput) (*Service, error) {
	if i.ID == "" {
		return nil, ErrMissingID
	}

	path := fmt.Sprintf("/service/%s", i.ID)
	resp, err := c.PutForm(path, i, nil)
	if err != nil {
		return nil, err
	}

	var s *Service
	if err := decodeBodyMap(resp.Body, &s); err != nil {
		return nil, err
	}
	return s, nil
}
// UpdateService updates the service with the given input.
UpdateService updates the service with the given input.
// UpdateService updates the service with the given input .
func (c *Client) UpdateService(i *UpdateServiceInput) (*Service, error) {
	if i.ID == "" {
		return nil, ErrMissingID
	}
	path := fmt.Sprintf("/service/%s", i.ID)
	resp, err := c.PutForm(path, i, nil)
	if err != nil {
		return nil, err
	}
	var s *Service
	if err := decodeBodyMap(resp.Body, &s); err != nil {
		return nil, err
	}
	return s, nil
}
func ( c * Client ) UpdateService ( i * UpdateServiceInput ) ( * Service , error ) { if i . ID == " " { return nil , ErrMissingID } path := fmt . Sprintf ( " " , i . ID ) resp , err := c . PutForm ( path , i , nil ) if err != nil { return nil , err } var s * Service if err := decodeBodyMap ( resp . Body , & s ) ; err != nil { return nil , err } return s , nil }
UpdateService updates the service with the given input.
UpdateService updates the service with the given input .