Manage User Subscriptions & Preferences
Update user preference (single)
POST https://api.fyno.io/v1/{WSID}/{version}/subscriptions/list/{subscription_id}/user
This API enables you to update the channel preference of a user for a particular subscription topic.
Note: If the channel configuration for a subscription topic is set to 'required', then the user preference for the channel cannot be updated.
Authorization
AuthorizationrequiredEnter your API Key. If you don't have it already, you can create one from the API Keys page within your Fyno account
Path Parameters
WSIDrequiredEnter your workspace ID. You can obtain this value from the API Keys page within your Fyno account.
versionrequiredSpecify the version for which you would like to manage the user profile.
livetestsubscription_idrequiredEnter the subscription ID to update the channel preference for the subscription topic. To update the user preference for all subscription topics at once (global preference), use 'all' instead of the subscription id.
Body
channelrequiredsmswhatsappemaildiscordslackteamspushvoiceinappwebpushdistinct_idrequiredstatusrequiredopted-inopted-outResponse
Subscription updated successfully
SXXXXXXXXXrequired