Capabilities of a tape or page printer (cache only)
const url = 'https://example.com/api/v1/printers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/capabilities';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/printers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/capabilities \ --header 'X-Label-Hub-Key: <X-Label-Hub-Key>'Resolution, media, trays with their calibration and accepted document formats. Served from the status cache: the printer is never contacted, so a printer that has not been probed yet answers 200 with media and captured_at null. No connection detail is part of the answer. A page printer that never answered a probe is reported as unknown (media, document_formats and captured_at null). A tape width without a geometry entry also gives media null. A stale reading or an unpolled printer is reported as unknown too (media null, stale true, captured_at kept). Only enabled trays carry a calibration.
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Path Parameters
Abschnitt betitelt „Path Parameters“Printer id.
Printer id.
Responses
Abschnitt betitelt „Responses“Successful Response
Served from the status cache; the printer is never contacted.
object
None while nothing is known (page printer that never answered), when no tape is loaded, or when the loaded tape width has no geometry entry (tape).
object
object
object
object
Dots per inch across the print head.
Dots per inch along the tape.
True when the cached reading is older than the status bound or the printer is not polled: media is then null (unknown), captured_at stays so a client can show the age. Same rule as stale on the status endpoint.
Page printers only.
object
Stored calibration; None while the tray has none or is disabled.
One enabled tray; the values are None while the tray has no calibration (identity).
object
object
Example
{ "kind": "tape", "stale": false}No driver is registered for the tape printer’s model (printer_model_unknown).
Validation Error
object
object
object
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}