Print the margin code of a sheet again
const url = 'https://example.com/api/v1/sheets/example/margin-id';const options = { method: 'POST', headers: {'X-Label-Hub-Key': '<X-Label-Hub-Key>', 'Content-Type': 'application/json'}, body: '{"printer":"example","tray":"example"}'};
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/sheets/example/margin-id \ --header 'Content-Type: application/json' \ --header 'X-Label-Hub-Key: <X-Label-Hub-Key>' \ --data '{ "printer": "example", "tray": "example" }'Queues a page that prints only the sheet code in the margin of a margin sheet whose code is printed: no cell is reserved and no label is printed. The band is chosen again for this printer and tray. id_printed stays as it is.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Sheet code, e.g. L4736-0002.
Sheet code, e.g. L4736-0002.
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
object
Example generated
{ "job_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}These credentials may not use the printer.
Sheet not found.
The sheet is discarded (sheet_discarded), it is not a printed margin sheet or its margin code is in flight (id_placement_mismatch), the printer is a tape printer (media_kind_mismatch), disabled (printer_disabled), unknown to the queue (printer-unavailable) or its device changed (printer-identity-mismatch).
Invalid request, an unknown tray (tray_unknown), or no margin band is deep enough on this printer (margin_id_does_not_fit).