Update a contact

Change the fields you send on an existing contact.

PATCHhttps://app.usenotix.dev/api/v1/contactBooks/{contactBookId}/contacts/{contactId}

Needs a full access key. Sending access keys cannot call this. Key permissions lists the extra rules some calls have.

Change the fields you send on an existing contact.

Path parameters

contactBookIdstringrequired
contactIdstringrequired

Body parameters

firstNamestring

At most 256 characters.

lastNamestring

At most 256 characters.

propertiesmap of string
subscribedboolean

Set false to unsubscribe the contact. Setting true for a contact who unsubscribed, complained, bounced or has not confirmed double opt-in is refused with 422: only the contact can re-subscribe, through their own link.

Headers

Authorizationstringrequired

Bearer followed by your API key.

Errors

422

Refused: only the contact can re-subscribe, through their own link. Nothing in the request was applied.

Every error has the same shape. See all error codes.

curl -X PATCH "https://app.usenotix.dev/api/v1/contactBooks/<contactBookId>/contacts/<contactId>" \
  -H "Authorization: Bearer $NOTIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "firstName": "Acme",
  "lastName": "Acme",
  "properties": {},
  "subscribed": true
}'
Response200
{
  "contactId": "cm1x8f3k20001qz7v5b9d2e4a"
}
Open in ClaudeOpen in ChatGPT