1. Create a company linked to external provider
mutation createCompany {
createCompany(
name: "my first company",
domain: ""mycompany.com,
productId: "<productId>",
externalId: {
customId: "customId1",
zendeskId: "zendeskId1",
hubspotId: "hubspotId1",
intercomId: "intercomId1",
pipedriveId: "pipedriveId1",
snowflakeId: "snowflakeId1",
},
) {
id
}
}
2. Create a company with attributes
mutation createCompany {
createCompany(
name: "companyName"
productId: "<productId>"
externalId: {
zendesk: "zendeskId",
intercom: "intercomId",
...
}
arr: 100.4
numberOfEmployees: 200
attributes: [
{
attributeDefinitionId: "<SelectAttributeDefinitionId>"
value: {
select: "<valueId>" OR "value"
}
}, {
attributeDefinitionId: "<NumberAttributeDefinitionId>"
value: {
number: 10
}
}]
) {
id
}
}