/admin/variant-proposals/{id}/undoAn import suggestion’s match, automatic (by its cover barcode or by elimination) or a moderator’s: it’s pending again and the edition is as it was. An undone automatic placement isn’t repeated. A collector’s proposal, within 7 days of its review: a new variant’s edition is removed (refused once anything else uses it: other copies, stores, codes, edits) and the collector’s copies point at the proposal again; a correction’s values, the locks it overwrote and its cover are put back while the variant still has what it wrote; a decline reopens it. A barcode moved on approval goes back to the variant that gave it up, with its locks (refused once that variant’s add-on changed since); after use_existing, the copies still on that variant point at the proposal again. A photo’s stored renditions are kept and stay the proposal’s (photoStored). Audited.
collector.undoAdminVariantSuggestion()admin:moderation:writeIdempotency-KeyX-Request-Ididstring (uuid)requiredobject
notestringat most 1000 characters
200OKThe proposal or suggestion, pending again.
object
invalid_requestinvalid_jsoninvalid_idempotency_keyidempotency_key_requireddry_run_unsupported
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.
idempotency_key_required: An admin write made with an API key came without the header that makes it safe to retry.
dry_run_unsupported: This operation has no dry run, so ?dryRun=true is refused and nothing changes.
not_found: Not an admin (moderator): the same 404 as a missing route.
idempotency_in_progressnot_assignednot_reviewedundo_window_closedundo_blockedundo_conflictundo_unsupported
idempotency_in_progress: The first request with this key is still running.
not_assigned: Only a suggestion matched to a variant can be undone.
not_reviewed: It hasn’t been reviewed: nothing to undo.
undo_window_closed: Reviews can be undone for 7 days.
undo_blocked: The record changed (or was merged) since the review: change it in the catalog editor instead.
undo_conflict: Putting it back would clash with another record.
undo_unsupported: A correction approved before undo was recorded for variants: change the variant in the catalog editor.
payload_too_large: The body is over 1,048,576 bytes, this operation’s limit.
idempotency_key_reused: This key was used for a different request.
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 tool needs a database update that hasn’t been applied yet.