Edit Contact
Update a contact by ID (partial update).
PATCH
/v2/contacts
Request Body
Writeable fields
| Field | Type | Status | Format | Notes |
|---|---|---|---|---|
| data | object | required | - | - |
| data.id | string (uuid) | required | uuid | Server-assigned UUID. |
| data.user_id | string (uuid) | optional | uuid | - |
| data.email | string | optional | Must remain unique per team. | |
| data.phone | string (phone) | optional | phone | E.164 format recommended. |
| data.company | string | optional | - | - |
| data.first_name | string | optional | - | - |
| data.last_name | string | optional | - | - |
| data.job_title | string | optional | - | - |
| data.notes | string | optional | - | - |
cURl example
curl -X PATCH 'https://lunarsend.com/api/v2/contacts' \
-H 'x-api-key: $LUNARSEND_API_KEY' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{
"id": "150c081d-5d5f-401d-abd1-727c35222054"
"phone": "+12025550123",
"notes": "Updated after discovery call"
}'Response
[
{
success: true,
data: {
email: "joe@example.com",
phone: "+12025550123",
company: null,
created_at: "2025-10-04T14:17:28.266864+00:00",
id: "150c081d-5d5f-401d-abd1-727c35222054",
user_id: "77f463d7-4107-1957-8b71-ab03acc319a2",
owner: "John",
last_activity: "2025-10-04T16:11:05.000000+00:00",
last_name: "Doe",
job_title: null,
notes: "Updated after discovery call",
first_name: "Joe",
},
},
]Response Fields
| Field | Type | Status | Format | Notes |
|---|---|---|---|---|
| status | enum successerror | read-only optional | - | - |
| error | string - Error description (only present on error) | read-only optional | - | - |
| data | object | required | - | - |
| data.id | string (uuid) | required | uuid | Server-assigned UUID. |
| data.user_id | string (uuid) | optional nullable | uuid | - |
| data.email | string | optional nullable | Must remain unique per team. | |
| data.phone | string (phone) | optional nullable | phone | E.164 format recommended. |
| data.company | string | optional nullable | - | - |
| data.first_name | string | optional nullable | - | - |
| data.last_name | string | optional nullable | - | - |
| data.job_title | string | optional nullable | - | - |
| data.owner | string | read-only optional nullable | - | Contact owner display name (server-assigned). |
| data.notes | string | optional nullable | - | - |
| data.last_activity | string (ISO 8601) | read-only optional nullable | date-time | Updated by the system. |
| data.created_at | string (ISO 8601) | read-only optional | date-time | Server-assigned. |