Warehouses

Delete a warehouse

Deletes a specific Warehouse and its associated stock. Before deleting, ensure any related operators and ongoing purchases are handled using the 'associations' parameter. If 'associations' is not provided and the warehouse has linked operators or purchases, the deletion will fail to prevent data loss. Important: To avoid deleting the stock, you must transfer it to another warehouse before deleting this one.

delete/stocks/warehouses/{warehouseId}

Request

  • Base URL: https://api.infraspeak.com/v3
  • URL: https://api.infraspeak.com/v3/stocks/warehouses/{warehouseId}
  • Auth: HTTP bearer

Path parameters

warehouseIdstring required

The unique identifier of the warehouse within the system. This ID is immutable and assigned upon creation.

Query parameters

associations'operators' | 'purchases'

A comma-separated list of dependencies (related resources).

destinationWarehouseIdinteger

The ID of the target warehouse to which associated resources (operators or purchases) should be moved when deleting the current warehouse.

Response

No content

Changes

No recorded changes to this operation across all 1 revision of this API.