909 B
909 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 |
yes | integer | |
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.