Skip to main content

Add domain list entry

POST 

/domains/:domain/lists/:listname

Add an entry to a domain blocklist or safelist.

Request

Path Parameters

    domain hostnamerequired

    The domain name.

    listname stringrequired

    Possible values: [blocklist, safelist, blacklist, whitelist]

    The name of the list to add an entry to. One of 'safelist' or 'blocklist'. 'whitelist' and 'blacklist' are deprecated

Body

required

    itemstringrequired

    The value of the entry. The type of the entry is automatically determined based on the value.

Responses

Successfully created the entry.

Schema

    itemstring

    The value of this entry. The meaning of this value depends on the item_type.

    item_typestring

    The item type.

    actionstring

    Which list this entry is on, e.g. safelist or blocklist.