36 lines
779 B
Markdown
36 lines
779 B
Markdown
# `DELETE /agentprinter/{id}`
|
|
|
|
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
|
|
|
Delete agent printer
|
|
|
|
Deletes an agent printer from the selected company.
|
|
|
|
## Path parameters
|
|
|
|
| Param | Required | Type | Description |
|
|
|-------|----------|------|-------------|
|
|
| `id` | yes | integer | |
|
|
|
|
## Signals
|
|
|
|
On success, emits SSE signal: `agentprinter` (see [`GET /events`](../events.md)).
|
|
|
|
## Response `204`
|
|
|
|
Agent printer deleted
|
|
|
|
_No content_
|
|
|
|
## Errors
|
|
|
|
| Status | Description |
|
|
|--------|-------------|
|
|
| 400 | Invalid ID or no company selected — `{"error":"…"}` |
|
|
| 401 | Unauthorized — `{"error":"…"}` |
|
|
| 404 | Agent printer not found — `{"error":"…"}` |
|
|
|
|
---
|
|
|
|
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|