Mutation
mutation SetupTenantFieldSchemaMapping($input: SetupTenantFieldSchemaMappingInput!) {
setupTenantFieldSchemaMapping(input: $input) {
tenantFieldSchema {
id
source
externalFieldId
label
type
options
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"tenantFieldSchemaId": "id",
"mapsTo": "TIER"
}
}Response
{
"data": {
"setupTenantFieldSchemaMapping": {
"tenantFieldSchema": {
"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
setupTenantFieldSchemaMapping
Maps a tenant field schema to a built-in Plain concept such as TIER, enabling automatic tier assignment based on the field’s value. Only one schema can be mapped to a given concept at a time.
MUTATION
setupTenantFieldSchemaMapping(input: SetupTenantFieldSchemaMappingInput!): SetupTenantFieldSchemaMappingOutput!Arguments
input
required
tenantFieldSchema
error
Mutation
mutation SetupTenantFieldSchemaMapping($input: SetupTenantFieldSchemaMappingInput!) {
setupTenantFieldSchemaMapping(input: $input) {
tenantFieldSchema {
id
source
externalFieldId
label
type
options
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"tenantFieldSchemaId": "id",
"mapsTo": "TIER"
}
}Response
{
"data": {
"setupTenantFieldSchemaMapping": {
"tenantFieldSchema": {
"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?

