Files
2026-10-16 12:35:04 +02:00

916 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 or articles have stock tracking enabled — {"error":"…"}

Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.