Skip to content
gist.link ↗

linkExternalRef

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

Idempotent link of an external record to a contact/company.

crm:mutation:linkExternalRef

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 {
linkExternalRef(input: LinkExternalRefInput!): ExternalRef!
}
Argument Type Required Description
input LinkExternalRefInput! Yes —

ExternalRef! — 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 LinkExternalRef($input: LinkExternalRefInput!) { linkExternalRef(input: $input) { uuid kind url } }",
"variables": {
"input": {
"app": "example",
"kind": "example",
"externalId": "example"
}
}
}
JSON