Enable Greylisting for specified domains

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

SecurityBasicAuth
Request
query Parameters
domains
required
string

The domain on which to enable Greylisting.

Note:

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

Examples:
domains=domain=example.com&domain=example1.com&domain=example2.com
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/enable_domains
Request samples
uapi --output=jsonpretty \
  --user=username \
  cPGreyList \
  enable_domains \
  domains='example.com'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "enable_domains",
  • "module": "cPGreyList",
  • "result": {
    • "data": [
      • {
        • "dependencies": [
          • "example.com",
          • "example1.com",
          • "example2.com"
          ],
        • "domain": "example.com",
        • "enabled": 0,
        • "searchhint": "example, example1, example2",
        • "type": "main"
        }
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}