Files
dashback/docs/api/routes/printerjob/_id/cancel.md
2026-11-01 03:33:14 +01:00

742 B

POST /printerjob/{id}/cancel

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

Cancel printer job

Marks a print job as cancelled and notifies the connected agent in real time.

Path parameters

Param Required Type Description
id yes integer

Response 200

Printer job cancelled

{
  "success": true,
  "printerjob": {
    "id": 1,
    "agentprinterId": 1,
    "printeragentId": 1,
    "type": "zpl",
    "state": "pending",
    "data": "…",
    "createdAt": "2026-08-10T00:00:00.000Z",
    "completedAt": "2026-08-10T00:00:00.000Z"
  }
}

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