Update a contact

     

Request Path Parameters
Parameter Type Required Description
org_id number Yes The unique identifier of your organization
id number Yes The unique identifier of the contact

     

Request Body Parameter
Attribute Type Required
first_name string Yes
last_name string Yes
email string Yes
phone_number string No
job_title string No

Example Request & Response


$ curl https://api.custerem.com/<org_id>/contacts/<id>/ \
-X PUT \
-H 'Authorization: X-API-KEY <Your API Key>' \
-H 'Content-Type: application/json' \
-d '{
    "first_name": "Hayri",
    "last_name": "Cicek",
    "email": "hayri.cicek@custerem.com",
    "phone_number": "+46",
    "job_title": "Software Developer",
}'

 

204 No Content

{
    "id": 6,
    "first_name": "Hayri Cicek",
    "last_name": "Cicek",
    "phone_number": "+46",
    "email": "hayri.cicek@custerem.com",
    "job_title": "Software Developer",
    "contact_company": 31
}

 

400 Bad Request

{
    "first_name": [
        "This field may not be blank."
    ]
}

 

404 Not Found

{
    "status_code": 404,
    "message": "Contact with id 44 not found"
}