Update a contact book

Change a contact book's details.

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

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

Change a contact book's details. Turning double opt-in on needs a sender, doubleOptInFrom in the request or one already on the book, on one of your verified domains; otherwise 422.

Path parameters

contactBookIdstringrequired

Body parameters

namestring
emojistring
propertiesmap of string
doubleOptInEnabledboolean

Turning it on needs a sender: doubleOptInFrom in this request, or one already on the book.

doubleOptInFromstring

The confirmation email's from address, on one of your verified domains. It cannot be cleared while double opt-in is on.

Can be null.

doubleOptInSubjectstring
doubleOptInContentstring
variablesstring[]

Headers

Authorizationstringrequired

Bearer followed by your API key.

Errors

403

Forbidden - API key doesn't have access to this contact book

404

Contact book not found

422

Double opt-in would be on with no sender, or doubleOptInFrom is not on one of your verified domains. Nothing was changed.

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

curl -X PATCH "https://app.usenotix.dev/api/v1/contactBooks/<contactBookId>" \
  -H "Authorization: Bearer $NOTIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Acme",
  "emoji": "string",
  "properties": {},
  "doubleOptInEnabled": true,
  "doubleOptInFrom": "News <hello@yourdomain.com>",
  "doubleOptInSubject": "Your receipt for order 4471",
  "doubleOptInContent": "string",
  "variables": [
    "string"
  ]
}'
Response200
{
  "id": "clx1234567890",
  "name": "Newsletter Subscribers",
  "teamId": 1,
  "properties": {
    "customField1": "value1"
  },
  "variables": [
    "registrationCode",
    "company"
  ],
  "emoji": "📙",
  "createdAt": "string",
  "updatedAt": "string"
}
Open in ClaudeOpen in ChatGPT