---
title: "Update a warehouse"
method: PATCH
path: "/api/v1/sa/inventory/warehouses/{id}"
tags: ["Warehouses"]
---

# Update a warehouse

`PATCH /api/v1/sa/inventory/warehouses/{id}`

## Request

- Base URL: `https://app.sellerassistant.app` (the document declares no server; this is the origin it was published from)
- URL: `https://app.sellerassistant.app/api/v1/sa/inventory/warehouses/{id}`
- Auth: one of:
  - API key in query parameter `api_key`
  - API key in header `X-Api-Key`

A shared warehouse belongs to no team, so the team cannot change it and the call answers 404.

## Path parameters

- `id` integer, required

## Request body

- WarehouseForm: The create needs `name` and `website`. The update sends only the fields it changes.
  - `name` string: The name of the warehouse.
  - `website` string: Unique inside the team.
  - `location` string, nullable
  - `contacts` string, nullable
  - `config` object, nullable
  - `status` string
  - `is_primary` boolean

## Response `200`

The warehouse

- object
  - `data` Warehouse: Where goods go before Amazon. A shared warehouse belongs to no team, and the team can read it but not change it.
    - `id` integer
    - `name` string
    - `website` string, nullable
    - `location` string, nullable
    - `contacts` string, nullable
    - `config` object, nullable
    - `status` string, nullable
    - `is_primary` boolean: One team has one primary warehouse.
    - `is_shared` boolean: A shared warehouse is read only for the team.
    - `provider` string, nullable: The prep provider the warehouse syncs with.
    - `is_synced` boolean
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable

## Other responses

- `400`: Bad request - validation failed or invalid parameters
- `403`: Access denied - insufficient permissions, invalid API key, or the API request limit is used up (`public_api_key_limit`)
- `404`: Resource not found
- `429`: Too many requests - rate limit exceeded

---

[API](https://skmtc.dev/sellerassistant/apis/seller-assistant-public-api.md) · [All operations](https://skmtc.dev/sellerassistant/apis/seller-assistant-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sellerassistant/apis/seller-assistant-public-api/revisions/5b3ecdbcadb6?raw)
