Disable Greylisting for specified domains

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

Authorizations:
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

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

Request samples

uapi --user=username cPGreyList disable_domains domains='example.com'

Response samples

Content type
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
    }
}