---
title: "Update a Warehouse"
method: PUT
path: "/wms/warehouses/{warehouse_id}"
tags: ["wms", "Warehouses"]
---

# Update a Warehouse

`PUT /wms/warehouses/{warehouse_id}`

## Request

- Base URL: `https://production.trackstarhq.com`
- URL: `https://production.trackstarhq.com/wms/warehouses/{warehouse_id}`
- Auth: none required

Get the required, optional, and integration specific fields by calling the [integrations](/api-reference/mgmt/integrations) endpoint.

## Path parameters

- `warehouse_id` string, required

## Headers

- `x-trackstar-api-key` string, required
- `x-trackstar-access-token` string, required
- `Idempotency-Key` string

## Request body

- union
  - object
    - `trackstar_tags` unknown[], nullable: A list of custom tags associated with the resource. A tag can be either a string or a dictionary with one key-value pair.
      - unknown
    - `name` string: The name of the warehouse.
    - `code` string, nullable: The warehouse code.
    - `address` SandboxCreateWarehouseAddress
      - `address1` string, required
      - `address2` string
      - `city` string, required
      - `state` string
      - `postal_code` string, required
      - `country` string, required
  - object
    - `trackstar_tags` unknown[], nullable: A list of custom tags associated with the resource. A tag can be either a string or a dictionary with one key-value pair.
      - unknown
    - `name` string: The name of the warehouse.
    - `code` string, nullable: The warehouse code.
    - `address` ShipFromAddress
      - `address1` string, nullable, required
      - `address2` string, nullable, required
      - `address3` string, nullable, required
      - `city` string, nullable, required
      - `state` string, nullable, required
      - `postal_code` string, nullable, required
      - `country` string, nullable, required

## Response `200`

Successful response

- WmsUpdateWarehouseResponse
  - `data` WmsWarehouseApiItemSchema
    - `id` string, required: The unique ID of the warehouse.
    - `created_date` string, date-time, required: The date the warehouse was created.
    - `updated_date` string, date-time, required: The date the warehouse was last updated.
    - `name` string, required: The name of the warehouse.
    - `code` string, nullable, required: The warehouse code.
    - `address` ShipFromAddress, required
      - `address1` string, nullable, required
      - `address2` string, nullable, required
      - `address3` string, nullable, required
      - `city` string, nullable, required
      - `state` string, nullable, required
      - `postal_code` string, nullable, required
      - `country` string, nullable, required
    - `trackstar_tags` unknown[], nullable, required: A list of custom tags associated with the resource. A tag can be either a string or a dictionary with one key-value pair.
      - unknown
    - `additional_fields` object, required: Integration-specific fields
    - `trackstar_created_date` string, date-time, required
    - `trackstar_updated_date` string, date-time, required
  - `id` string, required: The ID of the object that has been created or modified
  - `unused_fields` string[], required: Unused fields

## Other responses

- `404`: Not found
- `422`: Validation error

## Changes

- **2026-11-03** `f9f948f2a7b3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/trackstarhq/apis/trackstar-api/changes/wms/warehouses/:warehouse_id/put.md)

---

[API](https://skmtc.dev/trackstarhq/apis/trackstar-api.md) - [All operations](https://skmtc.dev/trackstarhq/apis/trackstar-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trackstarhq/apis/trackstar-api/revisions/08647f790594?raw)
