> ## 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.

# CreateWarehouseZone

> Creates a new warehouse zone.

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** `CreateWarehouseZone(request: CreateWarehouseZoneCommandRequestInput!): CreateWarehouseZoneCommandResponse!`

## Arguments

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

## Returns

`CreateWarehouseZoneCommandResponse!`

**`zoneId`**: `ID!`

The ID of the newly created warehouse zone.

## Examples

```graphql Mutation
mutation CreateWarehouseZone($request: CreateWarehouseZoneCommandRequestInput!) {
  CreateWarehouseZone(request: $request) {
    zoneId
  }
}
```

```json Variables
{
  "request": {
    "warehouseId": "id",
    "code": "string",
    "zoneType": 1
  }
}
```

```json Response
{
  "data": {
    "CreateWarehouseZone": {
      "zoneId": "id"
    }
  }
}
```
