Add element to a lookup list
POST/v1/lookup-lists/:lookupListId/elements
Adds a new element to an existing lookup list. An element is a field value and comment (helpful description that does not affect the lookup functionally). Please ensure to change the region in the URL to match your account's region.
Request
Path Parameters
GUID of the lookup list.
- application/json
Body
required
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
ID of the element in the Lookup list.
Possible values: non-empty
and <= 80 characters
A single field value. You should ensure that the lookup list contains a list of values all mapped to the same field.
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.
{
"id": 0,
"value": "54.53.1.1",
"comment": "ABC Server",
"expirationDate": 0
}