Mutation
mutation CreateThreadFieldSchema($input: CreateThreadFieldSchemaInput!) {
createThreadFieldSchema(input: $input) {
threadFieldSchema {
id
label
key
description
order
type
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"label": "string",
"key": "string",
"description": "string",
"order": 1,
"type": "STRING",
"enumValues": [
"string"
],
"isRequired": true,
"isAiAutoFillEnabled": true
}
}Response
{
"data": {
"createThreadFieldSchema": {
"threadFieldSchema": {
"id": "id",
"label": "string",
"key": "string",
"description": "string",
"order": 1,
"type": "STRING"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createThreadFieldSchema
Creates a new thread field schema, defining a custom field that can be attached to threads. The key must be unique within the workspace and cannot be changed after creation. Requires the threadFieldSchema:create permission.
MUTATION
createThreadFieldSchema(input: CreateThreadFieldSchemaInput!): CreateThreadFieldSchemaOutput!Arguments
input
required
Returns
threadFieldSchema
error
Mutation
mutation CreateThreadFieldSchema($input: CreateThreadFieldSchemaInput!) {
createThreadFieldSchema(input: $input) {
threadFieldSchema {
id
label
key
description
order
type
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"label": "string",
"key": "string",
"description": "string",
"order": 1,
"type": "STRING",
"enumValues": [
"string"
],
"isRequired": true,
"isAiAutoFillEnabled": true
}
}Response
{
"data": {
"createThreadFieldSchema": {
"threadFieldSchema": {
"id": "id",
"label": "string",
"key": "string",
"description": "string",
"order": 1,
"type": "STRING"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

