Skip to content
gist.link ↗

setDefaultShipFromLocation

Mutation Settings API — POST https://settings.api.gist.link/graphql

Make a location the org’s single default ship-from (clears any other). ROLE_ADMIN.

settings:mutation:setDefaultShipFromLocation

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

type Mutation {
setDefaultShipFromLocation(uuid: String!): Location!
}
Argument Type Required Description
uuid String! Yes —

Location! — see the Settings types reference.

Terminal window
curl https://settings.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation SetDefaultShipFromLocation($uuid: String!) { setDefaultShipFromLocation(uuid: $uuid) { uuid name kind email created_at updated_at } }",
"variables": {
"uuid": "example"
}
}
JSON