Skip to content
gist.link ↗

saveAddress

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

Create (no uuid) or update a saved address. Service tokens allowed.

crm:mutation:saveAddress

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 {
saveAddress(input: SaveAddressInput!): Address!
}
Argument Type Required Description
input SaveAddressInput! 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 SaveAddress($input: SaveAddressInput!) { saveAddress(input: $input) { uuid name email } }",
"variables": {
"input": {
"address": {
"line1": "example",
"city": "example",
"country": "example"
}
}
}
}
JSON