Files
2026-11-01 00:24:43 +01:00

976 B

PUT /agentprinter/order

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

Reorder agent printers

Reorders agent printers for a specific printer agent within the selected company.

Body (JSON)

Field Required Type Description
printeragentId no integer Optional agent id. If omitted, reorders all printers in the company.
agentprinterIds yes integer[]
{
  "printeragentId": 1,
  "agentprinterIds": [
    1
  ]
}

Signals

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

Response 200

Applied order

{
  "agentprinterIds": [
    1
  ]
}

Errors

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

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