---
title: "Replaces the Inventory resource."
method: PUT
path: "/inventories/{id}"
tags: ["Inventory"]
---

# Replaces the Inventory resource.

`PUT /inventories/{id}`

## Request

- Base URL: `https://example.myintranetapps.com/api`
- URL: `https://example.myintranetapps.com/api/inventories/{id}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/bossinsights/apis/boss-insights/docs/inventories/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Replaces the Inventory resource.

## Path parameters

- `id` string, required

## Request body

- Inventory
  - `id` string
  - `product_name` string
  - `total_quantity` integer
  - `sku` string, nullable
  - `modified` string, date-time, nullable
  - `fulfillable_quantity` string, nullable
  - `integration` string: The key of the integration source e.g. "quickbooks", or "xero"
  - `productName` string
  - `totalQuantity` integer
  - `fulfillableQuantity` unknown

## Response `200`

Inventory resource updated

- Inventory
  - `id` string
  - `product_name` string
  - `total_quantity` integer
  - `sku` string, nullable
  - `modified` string, date-time, nullable
  - `fulfillable_quantity` string, nullable
  - `integration` string: The key of the integration source e.g. "quickbooks", or "xero"
  - `productName` string
  - `totalQuantity` integer
  - `fulfillableQuantity` unknown

## Other responses

- `400`: Invalid input
- `404`: Resource not found
- `422`: Unprocessable entity

---

[API](https://skmtc.dev/bossinsights/apis/boss-insights.md) - [All operations](https://skmtc.dev/bossinsights/apis/boss-insights/llms.txt) - [OpenAPI document](https://skmtc.dev/bossinsights/apis/boss-insights/revisions/d08a107895ad?raw)
