Update a contact
Update a contact's attributes and custom field values.
Update a contact's attributes and custom field values.
Only the properties present in the request body are changed, so a partial body is enough
to change a single attribute. Sending a property as null clears it.
The response carries the contact's core attributes. Read back its tags, custom field
values, source and note with GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}.
API Token authentication
Profile uuid parameter
550e8400-e09b-41d4-a716-400055000000Contact uuid parameter
550e8400-e29b-41d4-a716-446655440000Fields to change on a contact. Omitted properties are left untouched.
john.doe@example.comJohnDoePhone number in E.164 format (leading "+" then 7-15 digits)
+14155552671subscribedPossible values: VIP customerSuccess response
550e8400-e29b-41d4-a716-446655440000JohnDoejohn.doe@example.com+14155552671subscribedPossible values: 2023-01-01T00:00:00Z2023-06-15T00:00:00ZUnauthenticated response
Validation error response
Error response
PATCH /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 217
{
"email": "john.doe@example.com",
"name": "John",
"surname": "Doe",
"phone": "+14155552671",
"subscription_status": "subscribed",
"note": "VIP customer",
"fields": [
{
"uuid": "text",
"value": "text",
"selected_option_uuids": [
"text"
]
}
]
}{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "John",
"surname": "Doe",
"email": "john.doe@example.com",
"phone": "+14155552671",
"subscription_status": "subscribed",
"subscribed_at": "2023-01-01T00:00:00Z",
"unsubscribed_at": "2023-06-15T00:00:00Z"
}Last updated
Was this helpful?