Alle Drucker auflisten
const url = 'https://example.com/api/v1/admin/printers?include_disabled=false';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?include_disabled=false' \ --header 'X-Label-Hub-Key: <X-Label-Hub-Key>'Gibt alle Drucker zurück. Deaktivierte Drucker werden standardmäßig ausgeblendet. Mit ?include_disabled=true werden auch deaktivierte Drucker zurückgegeben.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “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" } ]}