SmartGare
API referenceEndpoints

Keep the settings wanted of a printer

Keeps the settings the station wants the printer at the address to have, in place of any kept before: a value left out is no longer kept. Nothing reaches the printer until the settings are sent. Answers the settings as kept. **Required permission:** `referential.printer-settings:write`

PUT/referential/v1/printer-settings/desired

Keeps the settings the station wants the printer at the address to have, in place of any kept before: a value left out is no longer kept. Nothing reaches the printer until the settings are sent. Answers the settings as kept.

Required permission: referential.printer-settings:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*KeepDesiredPrinterSettingsRequest

Response Body

*/*

curl -X PUT "https://example.com/referential/v1/printer-settings/desired" \  -H "Content-Type: application/json" \  -d '{    "address": "string",    "orientation": 0  }'
{  "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"}