Retry a failed job
const url = 'https://example.com/api/v1/jobs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/retry';const options = {method: 'POST', headers: {'X-Label-Hub-Key': '<X-Label-Hub-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/jobs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/retry \ --header 'X-Label-Hub-Key: <X-Label-Hub-Key>'Clones a failed (or failed_restart / cancelled) job into a new queued job with a fresh UUID. The original job is untouched and remains as an immutable history entry. The new job is handed to the print queue immediately — no restart needed. Returns 409 when the original job is still in an active state (queued or printing) or its printer is not available, and 422 when the stored payload cannot be re-rendered (e.g. webhook-created jobs). Page jobs: a calibration page is re-submitted from its payload, so retry prints the same page again with its original calibration snapshot and date; a fresh check print with the current calibration is a new calibration-page request. A sheet page is retried onto the same cells of the same sheet as a new job, with a fresh calibration snapshot and the margin ID and feed mark decided again for the printer. It answers 409 job_not_retryable for a done job (or an ID-only job whose ID was printed since), 409 cells_unconfirmed while a cell of the job waits for confirmation, 409 cells_taken (with the cell numbers) when a cell is no longer free, 409 printer_disabled for a disabled printer (a calibration page too), 422 tray_unknown when the tray was removed or disabled since, and 409 sheet_discarded for a discarded sheet; nothing is reserved or created in any of these cases.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Successful Response
Serialised view of a Job DB row.
object
object
Example generated
{ "created_at": "example", "error": "example", "finished_at": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "payload": {}, "printer_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "result": {}, "started_at": "example", "state": "example", "template_key": "example", "updated_at": "example"}Validation Error
object
object
object
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}