Mutation
mutation ImportAccounts($input: ImportAccountsInput!) {
importAccounts(input: $input) {
result {
added
updated
skipped
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"accounts": [
{
"externalId": "string",
"name": "string"
}
]
}
}Response
{
"data": {
"importAccounts": {
"result": {
"added": 1,
"updated": 1,
"skipped": 1
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
importAccounts
Upsert up to 25 accounts from an external system using their externalId for idempotency. Optionally include account field values to sync custom fields alongside the account record. Returns an ImportResult with added, updated, and skipped counts.
MUTATION
importAccounts(input: ImportAccountsInput!): ImportAccountsOutput!Arguments
input
required
Returns
result
error
Mutation
mutation ImportAccounts($input: ImportAccountsInput!) {
importAccounts(input: $input) {
result {
added
updated
skipped
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"accounts": [
{
"externalId": "string",
"name": "string"
}
]
}
}Response
{
"data": {
"importAccounts": {
"result": {
"added": 1,
"updated": 1,
"skipped": 1
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

