WatificationDocs
Contacts

Update a contact

Changes the name, custom fields or lifecycle stage. Requires the contacts.write scope. Send null for name or lifecycleStageId to clear it. A field value of null clears that custom field. Every field key and stage is checked before any write, so a failed request changes nothing. Send at least one key. An unknown field key answers 404 CUSTOM_FIELD_NOT_FOUND; an unknown stage answers 404 LIFECYCLE_STAGE_NOT_FOUND.

Responses

StatusMeaning and codes
200The updated contact.
401undefined
403undefined
404undefined
422undefined
429undefined

Success and handled error responses send Cache-Control: no-store and X-Correlation-ID (the resolved/generated UUID). Errors use application/problem+json and the reusable ProblemDetails schema below. Retry-After: 1 is sent only for RATE_LIMITED. Request examples read your key from a server environment variable; replace all fictional values.

Schemas and examples

PATCH
/contacts/{contactId}

Authorization

ApiKey
headerAuthorizationBearer <token>

Server-side API key. publicId is 12 lowercase base32 characters (a-z, 2-7); secret is 43 base64url characters from 32 random bytes. Use Authorization: Bearer <complete key>. The API key determines the workspace; requests cannot select another workspace. All public routes share 20 requests per second per key. See API-key authentication.

Path Parameters

contactId*string

Contact ID.

Formatuuid

Header Parameters

X-Correlation-ID?string

Optional tracing ID. A UUID-shaped value is echoed in the response. Missing or invalid values are replaced with a generated UUID, not rejected.

Request Body

application/json
  1. body
Properties1 <= properties
name?|
Length1 <= length <= 100
fields?

Custom field values. A null value clears the field.

Propertiesproperties <= 50
lifecycleStageId?|
Formatuuid

Response Body

The updated contact.

application/json
  1. response

Contact snapshot returned by create, find, get and update, and embedded in contact webhooks.

id*string
Formatuuid
name*string|null
phone*|

Phone number in E.164 form with a leading +, or null when the contact has no phone.

email*string|null
lifecycleStage*|null
labels*array<>
fields*

Custom field values keyed by field key, only for fields that have a value. Every value is text; booleans are "Yes" or "No".