The list of errors that occurred from executing the mutation.
Was this section helpful?
Examples
Hide code
DescriptionCopy
mutation locationDeactivate {
locationDeactivate(locationId: "gid://shopify/Location/922479430") {
location {
id
isActive
}
locationDeactivateUserErrors {
message
code
field
}
}
}
Hide code
Response
JSON
{
"locationDeactivate": {
"location": {
"id": "gid://shopify/Location/922479430",
"isActive": true
},
"locationDeactivateUserErrors": [
{
"message": "Location could not be deactivated without specifying where to relocate inventory stocked at the location.",
"code": "HAS_ACTIVE_INVENTORY_ERROR",
"field": [
"locationId"
]
}
]
}
}