---
title: "Regenerate Thumbnails Endpoint"
method: POST
path: "/regenerateThumbnails"
---

# Regenerate Thumbnails Endpoint

`POST /regenerateThumbnails`

Maintenance: regenerate (overwrite) correctly-oriented thumbnails at the canonical key
`thumbnails/{project_id}/{image_id}`. Fixes STALE/rotated thumbnail objects that were
written by an older pipeline before EXIF orientation was baked in. Reuses the same
load_downscaled_rgb path as /generateThumbnail (orientation baked into pixels).

Body: {"projectId": <id>} to regenerate every non-deleted image in a project, or
{"imageIds": [...]} for a specific set. Runs in the background; returns 202-style
{"success": true, "queued": N}. Idempotent — safe to re-run.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/pavoot/apis/fastapi.md) · [All operations](https://skmtc.dev/pavoot/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pavoot/fastapi/revisions/16997cca6697/schema)
