/collection/imports/{id}/commitFor an import sent with review that waits in review: import it, with your choices. List the rows to leave out (exclude) and the rows to import as another of the issues they could be (issueId: the row’s match or one of its alternatives); every other row is imported as matched. notFound: add_to_catalog adds the books the catalog doesn’t have (rows with canAddToCatalog) as new issues; not with API keys yet. Answers 202 with the import, now importing: poll it as before.
collector.commitCollectionImport()collection:writeIdempotency-KeyX-Request-Ididstring (uuid)requiredobject
rowsarray of objectYour choices, one entry a row at most. Rows not listed are imported as matched.
at most 25000 items · default []
rowintegerrequiredThe row’s number (1 is the first after the header).
1–25000
excludebooleanLeave the row out of the import.
issueIdstring (uuid)Import the row as this issue: its match, or one of its alternatives.
notFoundenumRows the catalog has no issue for: skipped, or (when the row names a series and an issue number: canAddToCatalog) added to the catalog as new issues. Not for API keys yet.
default "skip"
skipadd_to_catalogneedsReviewenumRows more than one series could match that you didn’t choose for: held back, or imported as the best guess. Defaults to what you asked for with the import.
skipimportdefaultStatusenumRows without a status column become copies you own, or wishes. Defaults to what you asked for with the import.
ownedwishlist202AcceptedThe import, importing.
object
invalid_requestinvalid_jsoninvalid_idempotency_key
invalid_request: The query or body doesn’t match the schema (see errors[]).
invalid_json: The body isn’t JSON.
invalid_idempotency_key: The Idempotency-Key isn’t 1–255 visible ASCII characters.
unauthorized: Not signed in (no session or token, or an expired one).
key_not_allowed: notFound: add_to_catalog with an API key: adding books to the catalog isn’t open to keys yet.
not_found: Nothing at that address.
import_not_found: No import of yours with that id.
idempotency_in_progressimport_not_in_reviewimports_busy
idempotency_in_progress: The first request with this key is still running.
import_not_in_review: The import isn’t waiting for review: sent without review, or already committed, cancelled or over.
imports_busy: Three of your imports are still running.
payload_too_large: The body is over 4,194,304 bytes, this operation’s limit.
idempotency_key_reusedinvalid_choice
idempotency_key_reused: This key was used for a different request.
invalid_choice: A row that isn’t in the import, or an issue that isn’t one of the row’s.
rate_limitedtemporarily_blocked
rate_limited: Over the caller’s limit: the per-minute burst or the per-day quota (RateLimit headers; wait Retry-After seconds).
temporarily_blocked: Too many refused requests in a row: blocked for a while (Retry-After says how long).
internal: Something went wrong on our side (quote the requestId).
not_migrated: The database update this needs isn’t applied yet.