SmartGare
API referenceEndpoints

Read the settings kept for a printer

Answers the settings kept for the printer at the address, each value only where it is kept, with who kept them and when; a printer nothing was kept for reads its address and an orientation of 0 alone. The bridge is not asked. **Required permission:** `referential.printer-settings:read`

GET/referential/v1/printer-settings/desired

Answers the settings kept for the printer at the address, each value only where it is kept, with who kept them and when; a printer nothing was kept for reads its address and an orientation of 0 alone. The bridge is not asked.

Required permission: referential.printer-settings:read

AuthorizationBearer <token>

In: header

Query Parameters

address*string

The printer's bridge address, capability@place or capability[role]@place. One printer per read.

Match^([a-z][a-z0-9]*(?:-[a-z0-9]+)*)(?:\[([a-z][a-z0-9]*(?:-[a-z0-9]+)*)\])?@([A-Za-z0-9_.:-]+)$

Response Body

*/*

curl -X GET "https://example.com/referential/v1/printer-settings/desired?address=string"
{  "address": "string",  "darkness": 0,  "label_length_mm": 0,  "label_width_mm": 0,  "method": "THERMAL_TRANSFER",  "orientation": 0,  "pdf_direct": true,  "speed": 0,  "updated_at": "2019-08-24T14:15:22Z",  "updated_by": "string"}