Skip to content

Print the sheet code on the back of the liner

POST
/api/v1/sheets/{code}/back-side
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.

code
required
Code

Sheet code, e.g. L4736-0002.

string
<= 24 characters /^[A-Z][A-Z0-9]{1,9}-[0-9]{4,}$/

Sheet code, e.g. L4736-0002.

Media typeapplication/json
SheetBackPrint

The printer and tray of a back-side job.

object
printer
required
Printer

Printer slug or UUID (a page printer).

string
>= 1 characters <= 100 characters
tray
Tray

Tray of the job; left out: the printer’s default.

Any of:
string
>= 1 characters <= 100 characters

Example generated

{
"printer": "example",
"tray": "example"
}

Successful Response

Media typeapplication/json
PageJobQueued
object
job_id
required
Job Id
string format: uuid

Example generated

{
"job_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

These credentials may not use the printer.

Media typeapplication/json
object
detail
required
object
error_code
required
string
error_detail
Any of:
object
key
additional properties
any
error_message
required
string

Example generated

{
"detail": {
"error_code": "example",
"error_detail": {},
"error_message": "example"
}
}

Sheet not found.

Media typeapplication/json
object
detail
required
object
error_code
required
string
error_detail
Any of:
object
key
additional properties
any
error_message
required
string

Example generated

{
"detail": {
"error_code": "example",
"error_detail": {},
"error_message": "example"
}
}

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).

Media typeapplication/json
object
detail
required
object
error_code
required
string
error_detail
Any of:
object
key
additional properties
any
error_message
required
string

Example generated

{
"detail": {
"error_code": "example",
"error_detail": {},
"error_message": "example"
}
}

Invalid request, an unknown tray (tray_unknown), or the code does not fit a free strip on the back (back_strip_does_not_fit).

Media typeapplication/json
object
detail
required
object
error_code
required
string
error_detail
Any of:
object
key
additional properties
any
error_message
required
string

Example generated

{
"detail": {
"error_code": "example",
"error_detail": {},
"error_message": "example"
}
}