Mutations
updateChatApp
Update the name or logo of an existing chat app. Only the fields provided in the input are changed.
Requires the chatApp:edit permission.
MUTATION
updateChatApp(input: UpdateChatAppInput!): UpdateChatAppOutput!Arguments
input
required
Returns
chatApp
error
Mutation
mutation UpdateChatApp($input: UpdateChatAppInput!) {
updateChatApp(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": {
"chatAppId": "id"
}
}Response
{
"data": {
"updateChatApp": {
"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?
⌘I
Mutation
mutation UpdateChatApp($input: UpdateChatAppInput!) {
updateChatApp(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": {
"chatAppId": "id"
}
}Response
{
"data": {
"updateChatApp": {
"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"
}
]
}
}
}
}
