Support

updateLocation

View as Markdown

Update an existing location.

mutation

Requires commerce.product:write.

Update an existing location.

Required headers

HeaderRequiredDescription
x-store-idYesID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: extensions.code: "UNAUTHENTICATED".

Go to Authentication for credential setup.

Arguments

  • id String! required
  • input MutationUpdateLocationInput! required
    • address UpdateAddressInput optional
      • addressDetails AddressDetailsInput optional
        • addressType String optional
        • buildingName String optional
        • deliveryService String optional
        • geoCoordinates GeoCoordinatesInput optional
        • streetName String optional
        • streetNumber String optional
        • streetType String optional
        • subBuilding String optional
      • addressLine1 String optional
      • addressLine2 String optional
      • addressLine3 String optional
      • adminArea1 String optional
      • adminArea2 String optional
      • adminArea3 String optional
      • adminArea4 String optional
      • countryCode String optional
      • postalCode String optional
    • label String optional
    • metafields [UpsertMetafieldInput!] optional
      • key String! required
      • namespace String! required
      • type String! required
      • value String! required
    • name String optional
    • status String optional — The status of the location, one of ACTIVE, INACTIVE, ARCHIVED.

Possible returns

  • Location Location — A location represents the physical location of an inventory.

Last updated on

How is this guide?