Omni Link
Update subscriber preference
Authorization
bearerAuth AuthorizationBearer <token>
JWT access token returned by Signing In (POST /auth/v1/tokens/).
In: header
Path Parameters
subscriberId*string
templateId*string
Request Body
application/json
channel?
The subscriber preferences for every ChannelTypeEnum for the workflow assigned.
enabled?boolean
Sets if the workflow is fully enabled for all channels or not for the subscriber.
Response Body
application/json
curl -X PATCH "https://example.com/v1/subscribers/string/preferences/string" \ -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 } } }}