Files
dashback/docs/api/routes/printer/order.md
2026-10-09 19:02:15 +02:00

905 B

PUT /printer/order

Protected. Requires a valid session cookie (credentials: 'include').

Reorder printers

Reorders printers for the selected company. printerIds must include all existing printer IDs exactly once.

Body (JSON)

Field Required Type Description
printerIds yes integer[]
{
  "printerIds": [
    1
  ]
}

Signals

On success, emits SSE signal: printer (see GET /events).

Response 200

Applied printer order

{
  "printerIds": [
    1
  ]
}

Errors

Status Description
400 Invalid printer order or no company selected — {"error":"…"}
401 Unauthorized — {"error":"…"}
403 Not authorized — {"error":"…"}

Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.