Updating contact information in the API requires specific syntax depending on whether you are using REST or SOAP. Use this table to find the syntax for your command.
Understanding How The API Works »
REST Syntax | Associated API Topics |
SOAP Syntax | Create Contact (API) |
Get Contacts (API) | |
Delete Contact (API) |
REST Syntax
Click to view all REST Resources |
Contact/ PUT — Updates data for an existing contact.
HTTP Action — PUT URI — https://api.dynect.net/REST/Contact/<nickname>/ |
Arguments — Click for More Info
string string string string string string string string string string string string string A phone number can have the form: (0) (country-code) (local number) (ext extension) string string string NOTE: Any arguments that aren’t specified will cause that value not to be changed. |
Response — Click for More Info
string string string string string string string string string string string string string string string string |
SOAP Syntax
Click to view all SOAP Commands |
UpdateContact — Updates an existing contact’s information. |
Arguments — Click for More Info
string
address — The contact’s street address.
string string string string string string string string string string string string string string string string string |
Response — Click for More Info
|
Example Request — Click for More Info
{ 'nickname' => 'nick1', 'new_nickname' => 'nick2', 'first_name' => 'fname1', 'last_name' => 'lname1,', 'email' => 'dyn@example.com', 'notify_email' => 'notify@example.com', 'pager_email' => 'page@example.com', 'address' => 'address1', 'address_2' => 'address2', 'city' => 'Manchester', 'state' => 'NH', 'post_code' => '03103', 'country' => 'US', 'phone' => '5554445555', 'fax' => '5557775555', 'website' => 'http://www.dyn.com', 'organization' => 'Dynamic Network Services, Inc.', 'token'=> 'zaq12wsxcDe34rf89gt56nh', } |