Add entries
Add up to 100 records to a list.
Overview
The add entries method adds up to 100 records to a list in one request. Each record is identified either by its ID or bymatch criteria on the list’s
object. Both forms can be mixed in one request.
The request returns HTTP 200 whenever the body is valid, even if some records
could not be added. Each item in data reports the outcome for one record, in
request order:
Examples
Add records by ID and by match
Add records by ID and by match
Usage
match works the same way as the request body of
find unique record. It must include
at least one unique attribute of the list’s object, such as email for a
person or domain for a company.
The request fails as a whole only when:
- The body is malformed, including a record listed twice or a
matchthat is not valid for the list’s object (HTTP 400) - The list does not exist (HTTP 404)
- The caller does not have manage access to the list (HTTP 403)
Authorizations
Path Parameters
ID of the list. String UUIDv4 value.
Body
Request body for adding records to a list.
A match that finds no record is reported as record_not_found; no record
is created. A match that is not valid for the list's object fails the
request with HTTP 400.
Records are applied in request order: when two records resolve to the same
record (such as an ID and a match for that record), the later one is
reported as already_in_list.
Records to add, at most 100 per request. Each record must appear only once in the request.
1 - 100 elementsIdentifies a record to add to or remove from a list, either by ID or by match criteria. Both forms can be mixed in one request.
- Option 1
- Option 2
Response
Response for an add request. Returned with HTTP 200 whenever the request
itself was valid, even if some or all records could not be added; inspect
summary and each item's status for per-record outcomes.
Response for an add request. Returned with HTTP 200 whenever the request
itself was valid, even if some or all records could not be added; inspect
summary and each item's status for per-record outcomes.
success One result per requested record, in request order.
The record was added to the list.
- Option 1
- Option 2
- Option 3
- Option 4
Counts of add outcomes by status. total equals the number of records in
the request and the sum of the other counts.