Batches, limits and partial success
Request limits, refused requests and per-item results.
- Up to 500 items per request, 10 MB per request body (a larger body answers
413withcode: "PAYLOAD_TOO_LARGE"),externalIdup to 512 characters. - 100 requests per minute per key. Every answer carries
X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Reset; above the limit the answer is429withcode: "RATE_LIMITED"andRetry-Afterin seconds. - A malformed request is refused as a whole. If any item breaks the contract (missing or unknown field, wrong type, more than 500 items), the answer is
400withcode: "VALIDATION_ERROR"and nothing is written.errors[].pathpoints at the item and field, for examplejson.events.3.payload.dates.0.venue.newwith the messageUnrecognized key(s) in object: 'adress'. - A well-formed batch is processed item by item. The answer is
200with one result per item: successful submissions incandidates, edits counted inupdated, failures inerrorswithindex, yourexternalId, acodeand a message. The other items are processed regardless; send failed items again after fixing them.
Item code | Meaning |
|---|---|
NOT_RESOLVED | An edit by externalId before the submission was decided. |
RECORD_NOT_FOUND | The record of an edit no longer exists. |
NOT_RECORD_OWNER | You may not change this record (see Changing and deleting records). |
PAYLOAD_WITH_EDIT_FIELDS | payload together with id, properties or translations in one item. |
AMBIGUOUS_EXTERNAL_ID | More than one submission matches the id; contact us. |
INVALID_ITEM | The item failed a check of its content. |
INTERNAL_ERROR | An error on our side; send the item again later. |