Update suppression list
Description
Renames a suppression list.
Request URL
Method: POST
https://example.com/api/v1.1/suppresses/update
Request parameters
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Да | API token |
format | string | "json" | Нет | Response data format By default – json |
id | int | 1 | Да | Suppression list ID |
name | string | "Suppression list v.2" | Да | Suppression list new name |
Request example
- JSON
- XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 2,
"name": "New suppression list"
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<id>2</id>
<name>Suppression list v.2</name>
</xml>
Response example
- JSON
- XML
{
"data": {
"saved_id": 2
},
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data>
<saved_id>2</saved_id>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>
Response parameters
Parameter | Type | Description |
---|---|---|
error | int | Error code |
error_text | string | Error text |