Skip to content
gist.link ↗

setDefaultAddress

Mutation CRM API — POST https://crm.api.gist.link/graphql

purpose: shipping | billing. Moves the owner’s default for that purpose to this address.

crm:mutation:setDefaultAddress

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

type Mutation {
setDefaultAddress(uuid: ID!, purpose: String!): Address!
}
Argument Type Required Description
uuid ID! Yes —
purpose String! Yes —

Address! — see the CRM types reference.

Terminal window
curl https://crm.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation SetDefaultAddress($uuid: ID!, $purpose: String!) { setDefaultAddress(uuid: $uuid, purpose: $purpose) { uuid name email } }",
"variables": {
"uuid": "01a01234-abcd-7000-9000-0123456789ab",
"purpose": "example"
}
}
JSON