Einzelnen Drucker abrufen
const url = 'https://example.com/api/v1/admin/printers/example';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/admin/printers/example \ --header 'X-Label-Hub-Key: <X-Label-Hub-Key>'Gibt einen Drucker per Slug zurück. 404 wenn kein Drucker mit diesem Slug existiert.
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Path Parameters
Abschnitt betitelt „Path Parameters“Responses
Abschnitt betitelt „Responses“Successful Response
Lesbare Darstellung eines Druckers.
Enthält alle DB-Felder — keine internen Implementierungsdetails.
trays is the tray list of a page printer and null for tape printers.
object
object
object
Stored label layout per tape width in mm (#258), keyed by the width as a string; a missing width uses the tape default (62 mm across/compact, else along)
object
A stored layout default for one tape width of one printer.
None fields fall back to the built-in default for the tape (62 mm: across, compact;
every other width: along).
object
How the label content runs on endless tape.
The built-in QL 62 mm across-width layouts (docs/design/ql-layout-presets).
object
A configured tray of a page printer.
Example
{ "layout_defaults": { "additionalProperty": { "orientation": "across", "preset": "compact" } }}Validation Error
object
object
object
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}