location_bulk_create
Creates up to 1300 warehouse locations from a list of names or a naming pattern. Names that already exist are skipped, so it is safe to retry.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
data | CreateLocationsBulkInput! | Yes |
Return Type
Mutation
mutation location_bulk_create(
$data: CreateLocationsBulkInput!
) {
location_bulk_create(
data: $data
) {
request_id
complexity
created_count
skipped_count
skipped_names
}
}Variables
{
"data": {
"warehouse_id": "V2FyZWhvdXNlOjEyMzQ=",
"zone": "\"A\". Defaults to the same zone new locations get when zone is omitted from location_create.",
"location_type_id": "TG9jYXRpb25UeXBlOjEyMzQ=",
"location_type": "Bin",
"segments": [[{literal: "A"}, {from: 1, to: 30, padding: 2}, {values: ["A", "B", "C", "D", "E"]}, {from: 1, to: 8, padding: 2}] with separator "-" generates "A-01-A-01" through "A-30-E-08".],
"names": ["RSC 01", "RSC 02", "Receiving - 1"],
"separator": "-",
"pickable": true,
"sellable": true,
"staging": true,
"is_cart": true,
"pick_priority": 1,
"dimensions": {length: 12.5, width: 8.0, height: 4.0},
"temperature": "ambient"
}
}Response
{
"data": {
"location_bulk_create": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"created_count": 45,
"skipped_count": 3,
"skipped_names": ["A-01-01-A-01"]
}
}
}