Page tree
Skip to end of metadata
Go to start of metadata

Description

Changes profile subscription status from "suspended" to "subscribed".

Does not affect any other subscription status.

Request URL

Method: POST

https://example.com/api/v1.1/subscriptions/unsuspend_all

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format.
By default – json
db_idint1YesDatabase ID
channelint"email"NoChannel type
resource_idint1NoResource ID

If "channel" parameter is specified, all channel subscriptions for a database will be unsuspended.
If "resource_id" parameter is specified, all resource subscriptions for a database will be unsuspended.
If both parameters are specified - resource and channel subscriptions will be unsuspended.
If none of these parameters are specified - all database subscriptions will be unsuspended.

Request example

{
    "db_id": 1,
    "token": "abcdefghijklmnqrstuvwxyz"
}

Response example

{
    "error": 0,
    "error_text": "Successful operation",
    "updated": 1
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
updatedintNumber of subscriptions unsuspended
  • No labels