Update a contact
PATCH/api/v1/contacts/{id}
PATCH /contacts/{id}
curl -X PATCH 'https://www.unitpost.com/api/v1/contacts/con_123' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0' \
-H 'Content-Type: application/json' \
-d '{
"unsubscribed": true
}'Response · 200
{
"object": "contact",
"id": "id_123",
"email": "customer@example.com",
"first_name": "string",
"last_name": "string",
"unsubscribed": false,
"unsubscribed_at": "2026-01-01T00:00:00.000Z",
"unsubscribe_reason": "USER",
"custom_fields": {},
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}Update a contact's standard or custom field values. Only the fields you send are changed; omitted fields are left as-is. The {id} accepts a contact id or email. To manage a contact's subscription preferences instead, use Set a contact's topic preference. Requires the contacts:write capability.
Parameters1 field
| Field | Type | Description |
|---|---|---|
idrequired | string · path | — |
Request body4 fields
| Field | Type | Description |
|---|---|---|
first_name | object | — |
last_name | object | — |
unsubscribed | boolean | — |
custom_fields | object | — |
Response · 200 fields11 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
idrequired | string | — |
emailrequired | object | — |
first_namerequired | object | — |
last_namerequired | object | — |
unsubscribedrequired | boolean | — |
unsubscribed_atrequired | object | — |
unsubscribe_reasonrequired | object | — |
custom_fieldsrequired | object | — |
created_atrequired | string | — |
updated_atrequired | string | — |
200401404422