Files
dashback/docs/api/routes/warehouse/delete.md
2026-10-09 19:02:15 +02:00

876 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

Signals

On success, emits SSE signal: warehouse (see GET /events).

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.