> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateBinLocation

> Creates a new bin location in a warehouse.

If a request with this mutation's Idempotency-Key was already completed, the response's `extensions` contains an `idempotency.{responseName}` entry with `wasReplayed: true`.



**mutation** `CreateBinLocation(request: CreateBinLocationCommandRequestInput!): CreateBinLocationCommandResponse!`

## Arguments

**`request`**: `CreateBinLocationCommandRequestInput!` (required)

## Returns

`CreateBinLocationCommandResponse!`

**`binLocationId`**: `ID!`

The ID of the newly created bin location.

## Examples

```graphql Mutation
mutation CreateBinLocation($request: CreateBinLocationCommandRequestInput!) {
  CreateBinLocation(request: $request) {
    binLocationId
  }
}
```

```json Variables
{
  "request": {
    "warehouseId": "id",
    "name": "string",
    "type": 1
  }
}
```

```json Response
{
  "data": {
    "CreateBinLocation": {
      "binLocationId": "id"
    }
  }
}
```
