821 B
821 B
DELETE /printerjob/{id}
Protected. Requires a valid session cookie (credentials: 'include').
Cancel and delete printer job
Cancels and deletes a print job. If the job was pending or processing, sends a cancellation event to the connected printer agent before deletion.
Path parameters
| Param | Required | Type | Description |
|---|---|---|---|
id |
yes | integer |
Response 200
Job cancelled and deleted
{
"success": true,
"deletedJob": {
"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.