Skip to content
PaalChat Docs

Set notification preferences

.md
PUT
https://whatsapp.paaltech.org/api/v1/businesses/{external_id}/contacts/{id}/preferences

Token ability: contacts.write ยท Authentication

What the contact wants: channels (whatsapp) and topics (fees, results, attendance, pta, marketing, system) on or off. Only the keys you send change. A template with a topic the contact turned off - or any template when WhatsApp is off - is refused with recipient_preference_off.

Path parameters

external_id string required

Your own ID for the business (Multi-SKUUL - the tenant ID).

Max 191 characters. Pattern ^[A-Za-z0-9._:-]+$.

id integer required

Body parameters

channels object

Example {"whatsapp":true}.

topics object

fees, results, attendance, pta, marketing, system.

Example {"fees":true,"marketing":false}.

Responses

200

The contact's consent and preferences now.

401

unauthenticated - missing, invalid, revoked or expired token

403

missing_ability, product_suspended or product_token_required

404

not_found - not yours, or does not exist

422

validation_failed - fields are invalid; see errors.

429

rate_limited - over 300 requests/minute for this product

Errors always look like {"error": {"code", "message"}} - see Errors and status codes.