Add domain list entry
POST/domains/:domain/lists/:listname
Add an entry to a domain blocklist or safelist.
Request
Path Parameters
The domain name.
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
- application/json
Body
required
The value of the entry. The type of the entry is automatically determined based on the value.
Responses
- 201
- 400
- 403
- 404
- 500
Successfully created the entry.
- application/json
- Schema
- Example (from schema)
Schema
The value of this entry. The meaning of this value depends on the item_type.
The item type.
Which list this entry is on, e.g. safelist or blocklist.
{
"item": "string",
"item_type": "string",
"action": "string"
}
Bad Request, returned in the case that an error occurs while converting an A-label domain to a U-label domain name, or that the list item is not a valid ip address, email address or domain.
- application/json
- Schema
- Example (from schema)
Schema
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}
Returned in the case that the domain is associated with an api key that is different than the one in the request, the domain is associated with a different customer, or the domain in the request is an alias domain.
- application/json
- Schema
- Example (from schema)
Schema
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}
The domain does not exist.
- application/json
- Schema
- Example (from schema)
Schema
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}