Update an existing customer contact with full or partial modifications. Supports add/update/delete semantics for contact methods (emails, phones) and overwriting of web/social links and location data.
Security
BearerAuth
See RFC 3986 for URI syntax.
Example:"https://avatar.example.com/john"
Email entries to add, update, or delete. Maximum 10 per contact. Duplicate email values (case-insensitive) are silently ignored.
Phone entries to add, update, or delete. Maximum 10 per contact. Duplicate phone values are silently ignored.
Web links keyed by subtype. One entry per subtype. Set a value to an empty string to delete that subtype entry.
- Production serverhttps://developer.setmore.com/api/v2/customers/{id}
curl -i -X PUT \
https://developer.setmore.com/api/v2/customers/eaafecfe-8c33-428a-88bd-ba4d012793aa \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"first_name": "John",
"last_name": "Doe",
"email_addresses": [
{
"value": "newemail@gmail.com",
"primary": true
},
{
"id": "em_102",
"deleted": true
}
],
"phone_numbers": [
{
"id": "ph_201",
"value": "+919399339900"
},
{
"id": "ph_202",
"deleted": true
}
],
"urls": {
"meeting": "https://meet.example.com/john-updated",
"scheduling": ""
},
"social": {
"facebook": "",
"instagram": "https://instagram.com/john"
},
"location": {
"address": "456 New Address",
"city": "Mumbai"
}
}'Response
{ "data": { "id": "eaafecfe-8c33-428a-88bd-ba4d012793aa", "first_name": "Henry", "last_name": "Doe", "phone_numbers": [ … ], "email_addresses": [ … ], "urls": { … }, "social": { … }, "location": { … }, "custom_fields": { … } } }