Add elements in bulk
POST/v1/lookup-lists/:lookupListId/elements/bulk-add
Adds an array of elements to an existing Lookup list and sets the expiration date for the lookup. Please ensure to change the region in the URL to match your account's region.
Request
Path Parameters
GUID of the lookup list.
Query Parameters
Optional. The expiration date and time of the lookup list as UNIX epoch milliseconds. When this parameter is left empty, the lookup list does not expire.
- application/json
Body
arrayrequired
- Array [
- ]
Possible values: non-empty
and <= 80 characters
A single field value.
Possible values: <= 200 characters
Optional. A place to add a note or additional details about the value. For example, if the value is an IP address, the comment can identify the server.
Optional. The expiration date and time of the lookup list as UNIX epoch milliseconds. When this parameter is left empty, the lookup list does not expire.
Responses
- 200
successful operation
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, PARTIAL_FAILED
, FAILED
]
Returns the status of the request.
Total number of new elements added to the Lookup list.
Total number of elements merged with duplicate values in the existing list. (In other words, the number of existing elements that were updated by the request.)
{
"status": "SUCCESS",
"numOfAddedElements": 32,
"numOfMergedElements": 42
}