Unsuspend all suspended subscriptions
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
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
format | string | "json" | No | Response data format. By default – json |
db_id | int | 1 | Yes | Database ID |
channel | int | "email" | No | Channel type |
resource_id | int | 1 | No | Resource 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
- JSON
- XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"db_id": 1
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<db_id>1</db_id>
</xml>
Response example
- JSON
- XML
{
"error": 0,
"error_text": "Successful operation",
"updated": 5428
}
<xml>
<error>0</error>
<error_text>Successful operation</error_text>
<updated>5428</updated>
</xml>
Response parameters
Parameter | Type | Description |
---|---|---|
error | int | Error code |
error_text | string | Error text |
updated | int | Number of subscriptions unsuspended |