/collection/imports/{id}/undoRemoves the copies an import created that haven’t been edited since, with their photos, on every plan. Copies you added photos to stay unless includePhotographed is true. The body is optional. A very large import may answer done: false: call again to continue.
collector.undoCollectionImport()collection:writeX-Request-Ididstring (uuid)requiredThe import’s id.
at most 64 characters
object
includePhotographedbooleandefault false
200OKWhat this request removed, and what’s left.
object
idstring (uuid)requiredThe import.
removedintegerrequiredCopies removed by this request.
removedTotalintegerrequiredCopies removed by the whole undo so far.
remainingintegerrequiredCopies still to remove: call again while done is false.
donebooleanrequiredkeptEditedintegerrequiredCopies kept because they were edited after the import.
keptPhotographedintegerrequiredCopies kept because you added photos to them.
photosRemovedintegerrequiredinvalid_request: The query or body doesn’t match the schema (see errors[]).
invalid_json: The body isn’t JSON.
unauthorized: Not signed in (no session or token, or an expired one).
not_found: Nothing at that address.
import_not_found: No import of yours with that id.
import_already_undoneundo_window_passed
import_already_undone: The import was already undone.
undo_window_passed: Imports can be undone for a limited time only.
payload_too_large: The body is over 1,048,576 bytes, this operation’s limit.
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_available: Undo isn’t available until a database update is applied.