Anchor to section titled 'undefined'

locationActivate
mutation

Requires write_locations access scope.

Activates a location.


Anchor to locationId
locationId
required

The ID of a location to activate.


Was this section helpful?

The location that was activated.

The list of errors that occurred from executing the mutation.


Was this section helpful?

Examples

Hide code
Copy
mutation {
  locationActivate(locationId: "gid://shopify/Location/658095763") {
    location {
      id
      isActive
    }
  }
}
Hide code
Response
JSON
{
  "locationActivate": {
    "location": {
      "id": "gid://shopify/Location/658095763",
      "isActive": true
    }
  }
}