---
title: "Link Stock To Item"
method: POST
path: "/inventory/stocks/link-stock"
tags: ["provider", "inventory"]
---

# Link Stock To Item

`POST /inventory/stocks/link-stock`

## Request

- Base URL: `https://docs.decodahealth.com` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.decodahealth.com/inventory/stocks/link-stock`
- Auth: none declared. Required headers: `TENANT`, `API-KEY`
- TypeScript: <https://skmtc.dev/decodahealth/apis/decoda-api/docs/inventory/stocks/link-stock/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `TENANT` string, required
- `API-KEY` string, required

## Request body

- ItemStock[]
  - `itemId` string, required: ID of the item
  - `stockId` string, required: ID of the stock
  - `quantityUsed` number, required: Quantity of the item

## Response `200`

Successful Response

- ItemStock[]
  - `itemId` string, required: ID of the item
  - `stockId` string, required: ID of the stock
  - `quantityUsed` number, required: Quantity of the item

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/decodahealth/apis/decoda-api.md) - [All operations](https://skmtc.dev/decodahealth/apis/decoda-api/llms.txt) - [OpenAPI document](https://skmtc.dev/decodahealth/apis/decoda-api/revisions/4ab18c80f9e9?raw)
