---
title: "Edit Warehouse"
method: POST
path: "/v1/merchant/warehouse/{WAREHOUSE_PK}"
tags: ["Merchant API"]
---

# Edit Warehouse

`POST /v1/merchant/warehouse/{WAREHOUSE_PK}`

## Request

- Base URL: `http://{{base_url}}`
- URL: `http://{{base_url}}/v1/merchant/warehouse/{WAREHOUSE_PK}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/extensiv/apis/integration-manager-api-formerly-cartrover/docs/v1/merchant/warehouse/:WAREHOUSE_PK/post.ts> (a function with typed inputs; its response is checked against the schema)

Edit specified warehouse info. Any fields left off will be unchanged.

### Array Request Fields
|     Field Name     |     Data Type     |     Length     |     Required?     |     Description     |
|---------------------------|-------------------|----------------|-------------------|-----------------------------------------------------------------|
|    inventory_warehouse    |    String    |    45    |    Y    |    Name of Warehouse in CartRover    |
|    wms_warehouse_name    |    String    |  | N |    Optional Name of Warehouse in WMS   |
|    wms_warehouse_id    |    String    |  | N |    Optional ID of Warehouse in WMS    |
|    default    |    Boolean    |  | N |    Default false. Make this warehouse the default warehouse?    |
|    disabled    |    Boolean    |  | N |    Default false. Setting true will disable this warehouse.    |

### Array Response Fields
|    Field     |    Data Type     |    Length     |    Description       |
|---------------------------|------------------|---------------|---------------------------------------------------------------------------------------------------------------|
|    inventory_warehouse    |    String    |  |    Warehouse Name within CartRover    |
|    wms_warehouse_name    |    String    |  |    Optional Warehouse Name provided by WMS    |
|    wms_warehouse_id    |    String    |  |    Optional Warehouse ID provided by WMS    |
|    extra_params    |    Array    |  |    List of "addresses" and "contacts" for   this warehouse.    |
|    disabled    |    Boolean    |  |    True if this warehouse is disabled. Disabled warehouses are not used for inventory sync in CartRover.    |
|    is_default    |    Boolean    |  |    True if this is the default warehouse.    |
|    restock_level    |    Int    |  |    Global requested restock level if inventory drops below   this level for any item    |

If successful, the warehouse will be returend in the same format as the List Warehouses API call.

## Path parameters

- `WAREHOUSE_PK` string, required

## Headers

- `Content-Type` string

## Request body `*/*`

- string

## Response `200`

OK

- object

---

[API](https://skmtc.dev/extensiv/apis/integration-manager-api-formerly-cartrover.md) - [All operations](https://skmtc.dev/extensiv/apis/integration-manager-api-formerly-cartrover/llms.txt) - [OpenAPI document](https://skmtc.dev/extensiv/apis/integration-manager-api-formerly-cartrover/revisions/125e6deac675?raw)
