پرش به مطلب اصلی

Remove From Blacklist API

POST /removeFromBlacklist

Description

This API endpoint allows removing an IP address from the blacklist. Removing an IP address from the blacklist will restore its access to certain resources or services.

Request Body

The request utilizes GraphQL to perform the removeFromBlacklist mutation.

Mutation:

mutation removeFromBlacklist ($ipAddress: String!) {
removeFromBlacklist (ipAddress: $ipAddress)
}

Variables:

{
"ipAddress": "<IP_Address>"
}
  • ipAddress (String): The IP address to be removed from the blacklist.

Response:

  • Success (200 OK):

    • The response confirms that the IP address has been successfully removed from the blacklist.
    {
    "data": {
    "removeFromBlacklist": null
    }
    }
  • Error (4XX/5XX):

    • If there is an issue with removing the IP address, such as the IP address not being in the blacklist or server errors, the response will include an appropriate error message and status code.

Note:

Ensure that the IP address you wish to remove is currently on the blacklist. The response will confirm the removal of the IP address from the blacklist.