location_create

Arguments

ArgumentTypeRequiredDefaultDescription
dataCreateLocationInput!Yes

Return Type

LocationOutput

Mutation

mutation location_create(
  $data: CreateLocationInput!
) {
  location_create(
    data: $data
  ) {
    request_id
    complexity
    location {
      ...LocationFragment
    }
  }
}

Variables

{
  "data": {
    "warehouse_id": "abc123",
    "name": "abc123",
    "zone": "abc123",
    "location_type_id": "abc123",
    "pickable": true,
    "sellable": true,
    "staging": true,
    "is_cart": true,
    "pick_priority": 987,
    "dimensions": DimensionsInput,
    "temperature": "abc123"
  }
}

Response

{
  "data": {
    "location_create": {
      "request_id": "abc123",
      "complexity": 987,
      "location": Location
    }
  }
}