« Back to Documentation Overview

add_suppression

Section: Suppressions
Version: 1.5.0


Add suppression list to your account. This method registers named container for masks, which can be added using add_suppression_skiplist.
Conditions: name (mandatory) – Name of your suppression list, must be unique within account.


Parameters
stringAPI_KEY
object
stringnameWeird people
Return Value
stringSUPPRESSION_IDabc123
integeradded1

Example Request JSON

[
    "API_KEY",
    {
        "name": "Weird people"
    }
]

Example Response JSON

{
    "SUPPRESSION_ID": "abc123",
    "added": 1
}

Example Error Response JSON

{
    "code": -1,
    "message": "Name already used"
}
Method-specific Errors
Name already used
API-wide Errors
API key verification failed API key verification failed
API client IP not allowed API client IP not allowed
Invalid params Attribute params must be reference to hash