---
title: "Locks a bin location for available stock, preventing it from being used for stock allocation."
method: POST
path: "/v2/warehouseassistant/bin-locations/lock-for-stock"
tags: ["BinLocationManagementCommand"]
---

# Locks a bin location for available stock, preventing it from being used for stock allocation.

`POST /v2/warehouseassistant/bin-locations/lock-for-stock`

## Headers

- `x-tenant-id` string, uuid, required
- `x-runas` string
- `x-companyid` string

## Request body

- JTLWawiWarenlagerverwaltungPublicApiDataTransferObjectsV2BinLocationManagementLockBinLocationForAvailableStockCommandRequest — Locks a bin location for available stock, preventing it from being used for stock allocation. - Request
  - `binLocationId` string, uuid

## Response `200`

Bin location was successfully locked for available stock.

## Other responses

- `500` — Internal server error.

---

[API](https://skmtc.net/jtl-software/apis/scx-authentication-api.md) · [All operations](https://skmtc.net/jtl-software/apis/scx-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jtl-software/scx-authentication-api/revisions/f979b1ea6951/schema)
