Tape batches that wait for an action
const url = 'https://example.com/api/v1/batches/runs/held';const options = {method: 'GET', 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 GET \ --url https://example.com/api/v1/batches/runs/held \ --header 'X-Label-Hub-Key: <X-Label-Hub-Key>'The tape runs (#277) that wait for a confirmation or stopped, oldest first, for the printers the caller may use; printer_id narrows it to one printer. An API key without admin scope, and a browser session signed in with one, sees only the runs that key submitted; SSO users and admin keys see all. Their actions are continue, reprint and discard on the batch, allowed to the same callers (another key gets 404).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
A tape batch that is printing, waits for a confirmation, or stopped (#277).
Positions are 1-based in print order (job_ids).
object
Labels of an unknown group the user confirmed as printed (a reprint).
The sub-job printing or waiting, 1-based.
The job of every label, in print order.
awaiting_confirmation: the next sub-job starts after POST .../continue. stopped: a group failed; the labels after it were not started. With stop_kind unknown the group’s outcome is unknown (an error while sending, or the status check after the group: on a PT the SNMP noPaper bit at tape end; whether a QL-820NWB reports a DK roll end is not verified); with refused the printer refused before anything was sent (wrong tape, no tape, cover open, unreachable). POST .../reprint picks it up, POST .../discard gives it up. Held runs are kept in memory: a hub restart fails every label that waited for a confirmation (tape_run_interrupted), and a stopped run cannot be reprinted after it.
Where each sub-job starts in job_ids (0-based); a reprint re-splits.
Example
[ { "state": "printing", "stop_kind": "unknown" }]Validation Error
object
object
object
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}