Method: Infusionsoft::Client::Data#data_update

Defined in:
lib/infusion-api/client/data.rb

#data_update(table, id, data) ⇒ Integer

Updates the specified record (indicated by ID) with the data provided.

Examples:

{ :FirstName => 'John', :Email => '[email protected]' }

Parameters:

  • table (String)
  • id (Integer)
  • data (Hash)

    this is the fields and values you would like to update

Returns:

  • (Integer)

    id of the record updated



35
36
37
# File 'lib/infusion-api/client/data.rb', line 35

def data_update(table, id, data)
  response = get('DataService.update', table, id, data)
end