Set notification preferences
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
The contact's consent and preferences now.
unauthenticated - missing, invalid, revoked or expired token
missing_ability, product_suspended or product_token_required
not_found - not yours, or does not exist
validation_failed - fields are invalid; see errors.
rate_limited - over 300 requests/minute for this product
Errors always look like {"error": {"code", "message"}} - see Errors and status codes.