---
title: "PATCH /product-inventory/available/by-product-variant-ids"
method: PATCH
path: "/product-inventory/available/by-product-variant-ids"
tags: ["Inventory"]
---

# PATCH /product-inventory/available/by-product-variant-ids

`PATCH /product-inventory/available/by-product-variant-ids`

## Request

- Base URL: `https://www.faire.com/external-api/v2`
- URL: `https://www.faire.com/external-api/v2/product-inventory/available/by-product-variant-ids`
- Auth: API key in header `X-FAIRE-OAUTH-ACCESS-TOKEN` and API key in header `X-FAIRE-APP-CREDENTIALS`
- TypeScript: <https://skmtc.dev/faire/apis/faire-external-api/docs/product-inventory/available/by-product-variant-ids/patch.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint updates available inventory levels by given product variant IDs.

## Request body

- UpdateAvailableInventoryRequestV2
  - `inventories` UpdateAvailableInventoryRequestV2ProductVariantInventory[]
    - `sku` string
    - `product_variant_id` string
    - `available_quantity` integer

## Response `200`

Successful response

- UpdateAvailableInventoryResponseV2
  - `inventories` object

## Other responses

- `400`: Bad Request -- Your request is invalid.
- `401`: Unauthorized -- Your API key is wrong.
- `404`: Not found -- The requested resource could not be found.
- `405`: Method Not Allowed -- You tried to access an entity with an invalid method.
- `429`: Too Many Requests.
- `500`: Internal Server Error -- We had a problem with our server. Try again later.
- `503`: Service Unavailable -- We're temporarily offline for maintenance. Please try again later.

---

[API](https://skmtc.dev/faire/apis/faire-external-api.md) - [All operations](https://skmtc.dev/faire/apis/faire-external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/faire/apis/faire-external-api/revisions/19558399745c?raw)
