Mutation
mutation ImportTenantFieldSchemas($input: ImportTenantFieldSchemasInput!) {
importTenantFieldSchemas(input: $input) {
result {
added
updated
skipped
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"tenantFieldSchemas": [
{
"externalFieldId": "string",
"type": "STRING_TYPE",
"label": "string",
"isDeleted": true
}
]
}
}Response
{
"data": {
"importTenantFieldSchemas": {
"result": {
"added": 1,
"updated": 1,
"skipped": 1
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
importTenantFieldSchemas
Upsert up to 50 tenant field schemas from an external system using their externalFieldId for idempotency. Set isDeleted: true on a schema to mark it as deleted in Plain. Returns an ImportResult with added, updated, and skipped counts.
MUTATION
importTenantFieldSchemas(input: ImportTenantFieldSchemasInput!): ImportTenantFieldSchemasOutput!Arguments
input
required
Returns
result
error
Mutation
mutation ImportTenantFieldSchemas($input: ImportTenantFieldSchemasInput!) {
importTenantFieldSchemas(input: $input) {
result {
added
updated
skipped
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"tenantFieldSchemas": [
{
"externalFieldId": "string",
"type": "STRING_TYPE",
"label": "string",
"isDeleted": true
}
]
}
}Response
{
"data": {
"importTenantFieldSchemas": {
"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?

