Print the sheet code on the back of the liner
const url = 'https://example.com/api/v1/sheets/example/back-side';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/back-side \ --header 'Content-Type: application/json' \ --header 'X-Label-Hub-Key: <X-Label-Hub-Key>' \ --data '{ "printer": "example", "tray": "example" }'Queues the job that prints the code strip on the back of the sheet: “Print again” on the same sheet, or the activation of a sheet whose code goes on the back. An unprinted margin sheet switches to back_side in the same call. A manual sheet and a sheet whose code is printed (margin, cell) keep their placement and get an extra code on the back: back_side_state becomes pending. The job never sets id_printed or confirms the extra code; POST /api/v1/sheets/{code}/back-side/confirm does.
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), its code cannot go on the back (id_placement_mismatch: an unprinted cell sheet, or an unprinted margin sheet whose margin ID is in flight), 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 the code does not fit a free strip on the back (back_strip_does_not_fit).