---
title: "Update Stock by Product and Location"
method: PUT
path: "/products_locations.json"
tags: ["Products Locations"]
---

# Update Stock by Product and Location

`PUT /products_locations.json`

## Request

- Base URL: `https://api.jumpseller.com/v1`
- URL: `https://api.jumpseller.com/v1/products_locations.json`
- Auth: one of:
  - HTTP basic
  - API key in query parameter `login` and API key in query parameter `authtoken`
  - OAuth 2
    - Authorization code: `https://accounts.jumpseller.com/oauth/authorize`
    - Token URL: `https://accounts.jumpseller.com/oauth/token` scopes: `write_products`

## Request body

- ProductsLocations
  - `location_id` integer, required
  - `product_id` integer, required
  - `variant_id` integer
  - `stock_unlimited` boolean, required
  - `stock` integer, required

## Response `200`

Stock location updated successfully.

- MessageObject
  - `message` string

## Other responses

- `404`: A required parameter is missing, or the Product, Variant or Location was not found.
- `500`: Error while updating stock.

## Changes

- **2026-10-15** `53dc9f2c1329`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/jumpseller/apis/jumpseller-api/changes/products_locations.json/put.md)

---

[API](https://skmtc.dev/jumpseller/apis/jumpseller-api.md) - [All operations](https://skmtc.dev/jumpseller/apis/jumpseller-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpseller/apis/jumpseller-api/revisions/09f991a20d74?raw)
