Skip to content
gist.link ↗

updateLocation

Mutation Shop API — POST https://shop.api.gist.link/graphql

Update a location. ADMIN.

shop:mutation:updateLocation

The calling IAM key must hold this permission (or a wildcard that covers it: shop:mutation:* or shop:*) and the access token must have been minted with audience=shop. See Permissions.

type Mutation {
updateLocation(id: String!, input: LocationInput!): Location!
}
Argument Type Required Description
id String! Yes —
input LocationInput! Yes —

Location! — see the Shop types reference.

Terminal window
curl https://shop.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation UpdateLocation($id: String!, $input: LocationInput!) { updateLocation(id: $id, input: $input) { id uuid name created_at updated_at } }",
"variables": {
"id": "example",
"input": {
"name": "Example"
}
}
}
JSON