---
title: "Inventory - Upsert"
method: PUT
path: "/inventory/upsert"
tags: ["inventory"]
---

# Inventory - Upsert

`PUT /inventory/upsert`

/inventory/upsert

## Request body

- object
  - `location_name` string
  - `item_id` string
  - `on_hand` number
  - `alert` number
  - `notes` string

## Response `200`

OK

## Other responses

- `400` — Malformed request. Check that you have the correct parameters and that they are formatted correctly.
- `401` — Unauthorized. Did you forget to include your API key?

## Changes

- **2024-04-22** `08cd9cfa14dd` — 1 breaking, 5 warning, 2 info
  - added required request body
  - deleted the `query` request parameter `alert`
  - deleted the `query` request parameter `item_id`
  - deleted the `query` request parameter `location_name`
  - …4 more
- **2024-04-19** `46ceda528000` — 2 breaking, 11 info
  - removed the request body
  - removed the media type `application/json` for the response with the status `200`
  - api operation id `put_inventory_upsert` removed and replaced with ``
  - added the new optional `query` request parameter `alert`
  - …9 more

[Change history](https://skmtc.dev/skulabs/apis/skulabs-api/changes/inventory/upsert/put.md)

---

[API](https://skmtc.dev/skulabs/apis/skulabs-api.md) · [All operations](https://skmtc.dev/skulabs/apis/skulabs-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/skulabs/skulabs-api/revisions/08cd9cfa14dd/schema)
