PingIntelligence

Delete Blacklist REST API

The Delete Blacklist REST API deletes active blacklists in ABS. The API checks if the client identifier is present in the active list or not before deleting.

Method: PUT

URL for the API: /v4/abs/attacklist/

Header Value

Access Key

x-abs-ak

<string>

Secret Key

x-abs-sk

<string>

Sample request to the API

{
      "ips": [],
      "cookies": {},
      "oauth_tokens": [],
      "api_keys": [],
      "usernames": [“user_70”]
}

Sample response from the API when the client identifiers from active blacklists are deleted

{
    "message": "The following attacks have been removed:",
    "attacklist": {
        "ips": [],
        "cookies": {},
        "oauth_tokens": [
            "SYU4R2ZZN1IDYI0L"
        ],
        "api_keys": [],
        "usernames": []
    },
    "status_code": "SUCCESS"
}

Sample response from the API when the deletion fails

{
    "status_code": "INVALID_JSON",
    "message": "Invalid json. Please ensure all input fields are present and have valid values"
}