Mutation
mutation CreateImportSync($input: CreateImportSyncInput!) {
createImportSync(input: $input) {
importJobDefinition {
id
mode
entityTypes
metadata {
lists {
__typename
}
}
enabledAt {
unixTimestamp
iso8601
}
createdAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"serviceIntegrationKey": "string",
"filters": {}
}
}Response
{
"data": {
"createImportSync": {
"importJobDefinition": {
"id": "id",
"mode": "string",
"entityTypes": [
"string"
],
"metadata": {
"lists": [
{
"__typename": "ImportJobDefinitionList"
}
]
},
"enabledAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createImportSync
Create an import job definition that continuously syncs tenant field schemas, tenants, and customers from a connected external service (Attio, HubSpot, or Salesforce). Only one enabled import job definition can exist per service authorization at a time; calling this when one is already enabled returns an error. Use updateImportJobDefinition to disable an existing definition before creating a new one.
MUTATION
createImportSync(input: CreateImportSyncInput!): CreateImportSyncOutput!Arguments
input
required
Returns
importJobDefinition
error
Mutation
mutation CreateImportSync($input: CreateImportSyncInput!) {
createImportSync(input: $input) {
importJobDefinition {
id
mode
entityTypes
metadata {
lists {
__typename
}
}
enabledAt {
unixTimestamp
iso8601
}
createdAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"serviceIntegrationKey": "string",
"filters": {}
}
}Response
{
"data": {
"createImportSync": {
"importJobDefinition": {
"id": "id",
"mode": "string",
"entityTypes": [
"string"
],
"metadata": {
"lists": [
{
"__typename": "ImportJobDefinitionList"
}
]
},
"enabledAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

