Add item to customer list
POST/lists/:listname
Add item to customer list
Request
Path Parameters
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
- application/json
Body
required
item stringrequired
The value of the entry. The type of the entry is automatically determined based on the value.
Responses
- 201
- 400
- 500
Successfully created the item
- application/json
- Schema
- Example (from schema)
Schema
item string
The value of this entry. The meaning of this value depends on the item_type.
item_type string
The item type.
action string
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 the list item is not a valid ip address, email address or domain.
- application/json
- Schema
- Example (from schema)
Schema
code integer
message string
errors string[]
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
code integer
message string
errors string[]
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}
Loading...