Zum Inhalt springen

Print the margin code of a sheet again

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

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

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 no margin band is deep enough on this printer (margin_id_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"
}
}