784 B
784 B
DELETE /warehouse/{id}
Protected. Requires a valid session cookie (credentials: 'include').
Delete warehouse
Deletes a warehouse if not in use in the ledger.
Path parameters
| Param | Required | Type | Description |
|---|---|---|---|
id |
yes | integer | Warehouse ID |
Response 204
Warehouse deleted
No content
Errors
| Status | Description |
|---|---|
| 400 | Invalid ID or no company selected — {"error":"…"} |
| 401 | Unauthorized — {"error":"…"} |
| 403 | Not authorized — {"error":"…"} |
| 404 | Warehouse not found — {"error":"…"} |
| 409 | Warehouse in use in ledger — {"error":"…"} |
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.