Update a contact

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
FieldTypeDescription
idrequiredstring · path—
Request body4 fields
FieldTypeDescription
first_nameobject—
last_nameobject—
unsubscribedboolean—
custom_fieldsobject—
Response · 200 fields11 fields
FieldTypeDescription
objectrequiredstring—
idrequiredstring—
emailrequiredobject—
first_namerequiredobject—
last_namerequiredobject—
unsubscribedrequiredboolean—
unsubscribed_atrequiredobject—
unsubscribe_reasonrequiredobject—
custom_fieldsrequiredobject—
created_atrequiredstring—
updated_atrequiredstring—
200401404422

Search docs and guides

Search the docs and product guides.