---
title: "Update Product Stock"
method: POST
path: "/product/{product_uid}/update_stock"
---

# Update Product Stock

`POST /product/{product_uid}/update_stock`

## Request

- Base URL: `https://dc-region.zuperpro.com/api`
- URL: `https://dc-region.zuperpro.com/api/product/{product_uid}/update_stock`
- Auth: API key in header `x-api-key`

Direct, ABSOLUTE stock-level adjustment per location — unlike inward/outward/transfer which apply relative deltas, this overwrites quantity at each listed location and recomputes the product's total quantity as the sum across all locations. Supports multiple locations per call and can add brand-new location rows for the product. Rejects negative quantity unless the company allows negative stock balances.

## Path parameters

- `product_uid` string, required

## Request body

- object
  - `location_availability` object[], required
    - `location_uid` string, required
    - `quantity` number, required: Absolute value to set, not a delta.
    - `min_quantity` number
    - `remarks` string
    - `serial_nos` string[]
    - `purchase_price` number

## Response `200`

200

## Other responses

- `400`: 400
- `404`: 404

## Changes

- **2026-11-03** `3c21bc232e16`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zuper/apis/zuper-pro-api/changes/product/:product_uid/update_stock/post.md)

---

[API](https://skmtc.dev/zuper/apis/zuper-pro-api.md) - [All operations](https://skmtc.dev/zuper/apis/zuper-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zuper/apis/zuper-pro-api/revisions/3c21bc232e16?raw)
