Skip to content
gist.link ↗

createCompany

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

The createCompany mutation on the CRM API.

crm:mutation:createCompany

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 {
createCompany(input: CompanyInput!): Company!
}
Argument Type Required Description
input CompanyInput! Yes —

Company! — 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 CreateCompany($input: CompanyInput!) { createCompany(input: $input) { uuid name domains website industry size tags ownerUserUuid } }",
"variables": {
"input": {
"name": "Example",
"domains": [
"example"
],
"website": "example"
}
}
}
JSON