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.
products:writeGrant 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
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.