1. Home
  2. API v2.0
  3. Contacts
  4. Edit Contact

Edit Contact

Method: /contacts/[id].[format]

Fields:

Name Data Type Description
first_name String Person’s first name
last_name String Person’s last name
job_title String Job Title or Position
phone String Phone Number
cell String Cell Phone Number
fax String Fax Number
email_1 String Primary Email Address
email_2 String Secondary Email Address

Syntax

https://[subdomain].salesbinder.com/api/2.0/contacts/[id].json

HTTP Request Type: PUT

Example JSON Data to Submit

{
   "contact":{
      "phone":"604-777-7777"
   }
}

Success

If you have been successful in updating a contact, the response will return the updated data object along with a “message” value of “Saved” as seen below.

Example JSON Returned Response

{
    "message": "Saved",
    "contact": {
        "id": "7bf86438-a9ec-4685-9d33-de936c8b43c8",
        "customer_id": "",
        "first_name": "John",
        "last_name": "Doe",
        "job_title": "Owner",
        "phone": "604-777-7777",
        "cell": "778-222-2222",
        "fax": "",
        "email_1": "john.doe@gmail.com",
        "email_2": "",
        "auto_add_email": false,
        "weight": 0,
        "modified": "2016-11-11T01:25:24+00:00",
        "created": "2016-11-11T01:24:04+00:00"
    }
}

Example XML Data to Submit

<?xml version="1.0" encoding="UTF-8" ?>
<contact>
  <phone>604-777-7777</phone>
</contact>
Was this article helpful to you? Yes No