Difference between revisions of "API:Contact:Update"

From docs
Jump to: navigation, search
Line 2: Line 2:
 
== Update Contact ==
 
== Update Contact ==
  
'''URL:''' <nowiki>https://app.callproof.com/contact/update/</nowiki>
+
'''URL:''' <nowiki>https://app.callproof.com/api/contact/update/</nowiki>
  
 
'''Method:''' POST
 
'''Method:''' POST

Revision as of 20:45, 18 September 2014

Update Contact

URL: https://app.callproof.com/api/contact/update/

Method: POST

Required Fields:

  • key - API Key
  • secret - API Key Secret
  • contact[id] - Contact ID

Optional Fields:

  • contact[contact_type] - Contact custom contact type (https://app.callproof.com/contact_types/)
  • contact[company_name] - Contact company name
  • contact[first_name] - Contact first name
  • contact[last_name] - Contact last name
  • contact[title] - Contact title (e.g. CEO)
  • contact[email] - Contact email address (e.g. fred@aol.com)
  • contact[account] - Contact account number (e.g. 123456)
  • contact[invoice] - Contact invoice number (e.g. 123456)
  • contact[website] - Contact website URL (e.g. http://example.com/)
  • contact[address] - Contact address
  • contact[address2] - Contact address2
  • contact[city] - Contact city
  • contact[state] - Contact two letter state name (e.g. TN, FL, CA)
  • contact[zip] - Contact zip code
  • contact[country] - Contact country
  • contact[latitude] - Contact latitude
  • contact[longitude] - Contact longitude
  • contact[unknown] - Set to '1' if Contact is unknown
  • contact[do_not_sms] - Set to '1' if Contact should not be sent SM messages
  • contact[last_contacted] - Contact last contacted date/time (e.g. '2014-08-10 12:34:56')
  • contact[default_phone][phone_number] - Contact default phone number (e.g. 6158675309)
  • contact[default_phone][type] - Contact default phone type (cell, home, office, fax, headquartes, other)

Data Returned:

  • results - Contact as provided
  • errors - Array of errors produced by the request
  • code - HTTP request status