Update a contact
PUT/contacts/{id}
Updates the record of a specific contact.
Parameters |
id |
The unique id for the contact |
Request body |
Contact |
Example request
Content-Type: application/json; charset=utf-8
{
"emails": [
"[email protected]"
],
"name": {
"title": "Mr",
"firstname": "Testing",
"surname": "Customer"
},
"address": {
"addressline1": "20-22 Wenlock Road",
"addressline2": "",
"addressline3": "",
"towncity": "London",
"stateprovince": "London",
"postalcode": "N1 7GU",
"country": "GB"
},
"contactnumbers": [
"02030869860"
],
"customernumber": "12345678",
"accountnumber": "",
"preferences": {
"email": {
"optoutreason": null,
"optoutdate": null
},
"post": {
"optoutreason": null,
"optoutdate": null
},
"sms": {
"optoutreason": "optout",
"optoutdate": null
},
"phone": {
"optoutreason": null,
"optoutdate": null
}
}
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"id": "5abd47ff9b04b3079c25baa2",
"created": "2018-03-29T22:23:11.0692722+01:00",
"emails": [
"[email protected]"
],
"name": {
"title": "Mr",
"firstname": "Testing",
"surname": "Customer"
},
"address": {
"addressline1": "20-22 Wenlock Road",
"addressline2": "",
"addressline3": "",
"towncity": "London",
"stateprovince": "London",
"postalcode": "N1 7GU",
"country": "GB"
},
"contactnumbers": [
"02030869860"
],
"customernumber": "12345678",
"accountnumber": "",
"preferences": {
"email": {
"optoutreason": null,
"optoutdate": null
},
"post": {
"optoutreason": null,
"optoutdate": null
},
"sms": {
"optoutreason": "optout",
"optoutdate": null
},
"phone": {
"optoutreason": null,
"optoutdate": null
}
}
}