Mutation
mutation UpdateThreadFieldSchema($input: UpdateThreadFieldSchemaInput!) {
updateThreadFieldSchema(input: $input) {
threadFieldSchema {
id
label
key
description
order
type
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadFieldSchemaId": "id"
}
}Response
{
"data": {
"updateThreadFieldSchema": {
"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
updateThreadFieldSchema
Updates an existing thread field schema. All fields except key and type are mutable. String fields use wrapper inputs (e.g. { value: "..." }) to distinguish a deliberate null from an omitted value. Requires the threadFieldSchema:edit permission.
MUTATION
updateThreadFieldSchema(input: UpdateThreadFieldSchemaInput!): UpdateThreadFieldSchemaOutput!Arguments
input
required
Returns
threadFieldSchema
error
Mutation
mutation UpdateThreadFieldSchema($input: UpdateThreadFieldSchemaInput!) {
updateThreadFieldSchema(input: $input) {
threadFieldSchema {
id
label
key
description
order
type
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadFieldSchemaId": "id"
}
}Response
{
"data": {
"updateThreadFieldSchema": {
"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?

