Create suppression list
Description
Creates a new suppression list.
Request URL
Method POST
https://example.com/api/v1.1/suppresses/add
Request parameters
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
format | string | "json" | No | Response data format. By default – json |
name | string | "New suppression list" | Yes | New suppression list name |
Request example
- JSON
- XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"name": "New suppression list"
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<name>New suppression list</name>
</xml>
Response example
- JSON
- XML
{
"data": {
"saved_id": 1
},
"error": 0,
"error_text": "Successful operation"
}
<result>
<data>
<saved_id>1</saved_id>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</result>
Response parameters
Parameter | Type | Decription |
---|---|---|
error | int | Error code |
error_text | string | Error text |
saved_id | int | ID of a new suppression list |