Mutation
mutation ImportAccountFieldSchemasFromService($input: ImportAccountFieldSchemasFromServiceInput!) {
importAccountFieldSchemasFromService(input: $input) {
accountFieldSchemas {
id
source
externalFieldId
label
type
options
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"serviceIntegrationKey": "string"
}
}Response
{
"data": {
"importAccountFieldSchemasFromService": {
"accountFieldSchemas": [
{
"id": "id",
"source": "string",
"externalFieldId": "id",
"label": "string",
"type": "STRING_TYPE",
"options": [
"string"
]
}
],
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
importAccountFieldSchemasFromService
Fetches account field schemas from a connected external service (identified by serviceIntegrationKey) and upserts them into Plain. The service must already be authorized and connected. Returns the full list of schemas that were imported.
MUTATION
importAccountFieldSchemasFromService(input: ImportAccountFieldSchemasFromServiceInput!): ImportAccountFieldSchemasFromServiceOutput!Arguments
input
accountFieldSchemas
error
Mutation
mutation ImportAccountFieldSchemasFromService($input: ImportAccountFieldSchemasFromServiceInput!) {
importAccountFieldSchemasFromService(input: $input) {
accountFieldSchemas {
id
source
externalFieldId
label
type
options
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"serviceIntegrationKey": "string"
}
}Response
{
"data": {
"importAccountFieldSchemasFromService": {
"accountFieldSchemas": [
{
"id": "id",
"source": "string",
"externalFieldId": "id",
"label": "string",
"type": "STRING_TYPE",
"options": [
"string"
]
}
],
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

