location_update

Arguments

ArgumentTypeRequiredDefaultDescription
dataUpdateLocationInput!Yes

Return Type

LocationOutput

Mutation

mutation location_update(
  $data: UpdateLocationInput!
) {
  location_update(
    data: $data
  ) {
    request_id
    complexity
    location {
      ...LocationFragment
    }
  }
}

Variables

{
  "data": {
    "location_id": "TG9jYXRpb246MTIzNA==",
    "zone": "A",
    "location_type_id": "TG9jYXRpb25UeXBlOjEyMzQ=",
    "pickable": true,
    "sellable": true,
    "is_cart": true,
    "pick_priority": 1,
    "dimensions": {length: 12.5, width: 8.0, height: 4.0},
    "temperature": "ambient"
  }
}

Response

{
  "data": {
    "location_update": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "location": {id: "TG9jYXRpb246MTIzNA==", name: "A01-01-01"}
    }
  }
}