Disable Greylisting for specified domains

This function disables Greylisting on a cPanel account's selected domains.

SecurityBasicAuth
Request
query Parameters
domains
required
string

The domain on which to disable Greylisting.

Note:

To disable Greylisting on multiple domains, use the domains parameter multiple times.

Examples:
Multiple domains.
domains=domain=example.com domain=example1.com domain=example2.com
A single domain.
domains=example.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/cPGreyList/disable_domains
Request samples
uapi --output=jsonpretty \
  --user=username \
  cPGreyList \
  disable_domains \
  domains='example.com'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "disable_domains",
  • "module": "cPGreyList",
  • "result": {
    • "data": [
      • {
        • "dependencies": [
          • "this.com",
          • "that.com",
          • "theother.com"
          ],
        • "domain": "example.com",
        • "enabled": 0,
        • "searchhint": "this, that, the other",
        • "type": "main"
        }
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}