960 B
960 B
DELETE /shipment/{id}/file/{fileId}
Protected. Requires a valid session cookie (credentials: 'include').
Delete shipment file attachment
Removes a file attachment from the shipment and deletes the underlying file.
Path parameters
| Param | Required | Type | Description |
|---|---|---|---|
id |
yes | integer | Shipment ID |
fileId |
yes | integer | File ID or attachment ID |
Signals
On success, emits SSE signals: shipment, order (see GET /events).
Response 204
Attachment deleted
No content
Errors
| Status | Description |
|---|---|
| 400 | Invalid parameters or no company selected — {"error":"…"} |
| 401 | Unauthorized — {"error":"…"} |
| 403 | Not authorized — {"error":"…"} |
| 404 | Shipment or attachment not found — {"error":"…"} |
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.