Omni Link
Update subscriber global preferences
Authorization
bearerAuth AuthorizationBearer <token>
JWT access token returned by Signing In (POST /auth/v1/tokens/).
In: header
Path Parameters
subscriberId*string
Request Body
application/json
enabled?boolean
Enable or disable the subscriber global preferences.
preferences?array<>
The subscriber global preferences for every ChannelTypeEnum.
Response Body
application/json
curl -X PATCH "https://example.com/v1/subscribers/string/preferences" \ -H "Content-Type: application/json" \ -d '{}'{ "data": { "template": { "_id": "string", "name": "string", "critical": true, "triggers": [ "string" ] }, "preference": { "enabled": true, "channels": { "email": true, "sms": true, "in_app": true, "chat": true, "push": true, "fb": true, "wab": true, "voice": true } } }}