API to update user preferences across all channels.
cURL
curl --request PATCH \ --url https://hub.suprsend.com/v1/user/{distinct_id}/preference/channel_preference/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "channel_preferences": [ { "channel": "email", "is_restricted": false } ] }'
{ "channel_preferences": [ { "channel": "email", "is_restricted": true }, { "channel": "inbox", "is_restricted": false } ] }
Show child attributes
Was this page helpful?