Contacts
Update Contact
Update an existing contact by ID.
PUT /api/v1/contacts/:id
Update a contact by ID. Only provided fields are changed — omitted fields keep their current values.
Parameters
All fields are optional:
| Parameter | Type | Description |
|---|---|---|
email | string | Email address |
phone | string | null | Phone number (set to null to clear) |
firstName | string | null | First name |
lastName | string | null | Last name |
tags | string[] | Replaces existing tags |
customFields | object | Replaces existing custom fields |
emailSubscriptionStatus | "subscribed" | "unsubscribed" | Email subscription status |
whatsappSubscriptionStatus | "subscribed" | "unsubscribed" | WhatsApp subscription status |
Example
curl -X PUT /api/v1/contacts/uuid-here \
-H "x-api-key: mndr_..." \
-H "Content-Type: application/json" \
-d '{
"firstName": "Janet",
"tags": ["vip"]
}'{
"contact": {
"id": "uuid",
"email": "jane@example.com",
"firstName": "Janet",
"tags": ["vip"],
...
}
}