Skip to main content

Request regeneration of a flag's NPDB PDF

POST 

/flags/:id/npdb-pdf/regenerate

Enqueues a regeneration of the NPDB PDF backing the given npdb-data flag and returns 202 once the task is accepted. Intended as the recovery action for a terminally FAILED render (the drawer's Regenerate button); the render worker is the arbiter of the outcome — a READY or freshly in-flight document makes the task a no-op, so the call is safe to repeat. The client mints one idempotency key per logical request and reuses it on retries: the key correlates retries in server logs, and duplicate submissions are absorbed by the render worker's claim table — a retry can at most re-render the same digest-identical content, never a different document. The regenerated document becomes visible through the flag details response's npdbPdf block, which reports GENERATING while the render is in flight.

Request​

Responses​

Accepted — the regeneration task is enqueued