Contact
Edit Contact

Edit contact

Edit data of exisiting contact.

PUT/contacts/edit

Parameters

identifier - integer or string required
The attribute for finding the contact that will be edited. This can be the original contact name, email or id


data - object required
The contact's object with the new data.


More parameters

Same strucutre as creating contact.

You only need to pass the parameters that want to edit, not all of them.

Example using original contact email for identifier
{
    "identifier": "contact@salesly.app",
    "data" : {
        "name": "Lorem",
        "surname_2": "ipsum",
        "phone": "8888888",
    }
}

Response

status 200

The edited contact object.

Response
{
  "id": 1,
  "name": "Salesly",
  "surname": "Worker",
  "surname_2": null,
  "email": "worker@salesly.app",
  "phone": "938206362",
  "phone_2": null,
  "position": null,
  "skype": null,
  "linkedin": null,
  "comments": null,
  "gender": 0,
  "mailchimp_unsubscribed": null
}