Contacts

Patch contact fields

PATCH
/api/contacts/{id}

Partial-updates the contact: resolves pipeline stage / status pairs, normalizes phone numbers (rejecting provisioned org SMS numbers and, with 400 INVALID_CONTACT_METHOD, phone numbers and secondary emails that are not in the stored format after normalization, including in conflictingPhoneNumbers / conflictingEmails; a malformed primary email fails the request contract as 400 VALIDATION_ERROR; values already stored in the same field on the contact are not re-checked and are kept exactly as stored), records pipeline transitions, logs manual events with field-level diffs, and emits contact_updated. Used by the inline contact-edit panel.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/api/contacts/string" \  -H "Content-Type: application/json" \  -d '{    "status": "Qualified",    "pipelineStage": "64f0a1b2c3d4e5f6a7b8c9d2"  }'
{  "success": true,  "data": {    "contact": {      "_id": "64f0a1b2c3d4e5f6a7b8c9d0",      "firstName": "Jane",      "lastName": "Doe",      "status": "New",      "email": [        {          "value": "jane@example.com",          "isPrimary": true        }      ],      "phoneNumber": [],      "conflictingPhoneNumbers": [        "+15879207825"      ],      "channelTypes": [        "email"      ]    },    "message": "Contact added successfully",    "outcome": "sent_to_review",    "dedupApplied": true,    "reviewCandidates": [      {        "contactId": "6a4fe7db96a0ad3cd583bb11",        "firstName": "John",        "lastName": "Doe",        "score": 55      }    ],    "warnings": [      {        "code": "CONTACT_METHOD_QUARANTINED",        "message": "The phone number +15879207825 is already linked to John Doe. It was saved as a conflicting phone number on this contact and queued for dedup review. To claim it, resend it on an update with a verifiedAt timestamp.",        "meta": {          "field": "phoneNumber",          "value": "+15879207825",          "conflictingContactId": "6a4fe7db96a0ad3cd583bb11",          "conflictingContactName": "John Doe"        }      }    ]  }}