Skip to main content

Bulk Replace Warehouse Mappings

PUT 

/api/magento2/integration-instances/:magento2IntegrationInstance/warehouse-mappings

Bulk-replaces warehouse mappings for the instance in a single transaction.

Authenticated. Requires a Bearer token.

Request body (mappings[]):

  • source_code (string, required) — must exist in magento2_inventory_sources_cache for this instance. Refresh from the Locations tab first if the source is missing.
  • warehouse_id (integer or null, required) — must exist in warehouses. null removes the mapping for that source.

Duplicate source_code entries in the same payload are rejected (422).

Returns the freshly-rebuilt index payload so the UI can re-render without an extra GET.

Request

Responses

OK

Response Headers
    Content-Type