Mutation
mutation CreateChatApp($input: CreateChatAppInput!) {
createChatApp(input: $input) {
chatApp {
id
name
logo {
id
fileName
fileSize {
__typename
}
fileExtension
fileMimeType
visibility
}
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
updatedAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"name": "string"
}
}Response
{
"data": {
"createChatApp": {
"chatApp": {
"id": "id",
"name": "string",
"logo": {
"id": "id",
"fileName": "string",
"fileSize": {
"__typename": "FileSize"
},
"fileExtension": "string",
"fileMimeType": "string",
"visibility": "PRIVATE"
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createChatApp
Create a new chat app, which represents a source of chat messages (e.g. a specific in-product
widget or integration). Optionally supply a logo using a previously uploaded workspace file ID.
The logo must be a public, image-type workspace file.
Requires the chatApp:create permission and the live-chat billing entitlement.
MUTATION
createChatApp(input: CreateChatAppInput!): CreateChatAppOutput!Arguments
input
required
Returns
chatApp
error
Mutation
mutation CreateChatApp($input: CreateChatAppInput!) {
createChatApp(input: $input) {
chatApp {
id
name
logo {
id
fileName
fileSize {
__typename
}
fileExtension
fileMimeType
visibility
}
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
updatedAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"name": "string"
}
}Response
{
"data": {
"createChatApp": {
"chatApp": {
"id": "id",
"name": "string",
"logo": {
"id": "id",
"fileName": "string",
"fileSize": {
"__typename": "FileSize"
},
"fileExtension": "string",
"fileMimeType": "string",
"visibility": "PRIVATE"
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

