Skip to main content

Restore Duplicate Product Images

POST 

/api/products/duplicate-images/restore

Undo a Remove Duplicate Product Images run: put back every image it removed, with its original id, order and flags. Only the user who started the run can undo it, and only once. An image is skipped when its product was deleted or the product already has that image again.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Body fields:

  • tracked_job_log_id (integer, required): the job id returned by Remove Duplicate Product Images

Errors (422): unknown job or not a duplicate-image removal; started by another user; already undone; nothing was removed.

Requires permission: products.update

Request​

Responses​

OK

Response Headers
    Content-Type