Skip to content
gist.link ↗

createDeal

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

The createDeal mutation on the CRM API.

crm:mutation:createDeal

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 {
createDeal(input: DealInput!): Deal!
}
Argument Type Required Description
input DealInput! Yes —

Deal! — 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 CreateDeal($input: DealInput!) { createDeal(input: $input) { uuid title currency status } }",
"variables": {
"input": {
"title": "Example",
"companyUuid": "01a01234-abcd-7000-9000-0123456789ab",
"contactUuid": "01a01234-abcd-7000-9000-0123456789ab"
}
}
}
JSON