Mutation
mutation UpdateGeneratedReply($input: UpdateGeneratedReplyInput!) {
updateGeneratedReply(input: $input) {
generatedReply {
id
markdown
timelineEntryId
text
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"generatedReplyId": "id"
}
}Response
{
"data": {
"updateGeneratedReply": {
"generatedReply": {
"id": "id",
"markdown": "string",
"timelineEntryId": "id",
"text": "string",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
updateGeneratedReply
Record teammate feedback (thumbs up / thumbs down and an optional comment) on a generated reply. Use this to signal whether a suggestion was helpful so Plain can improve future suggestions. Requires the generatedReply:edit permission.
MUTATION
updateGeneratedReply(input: UpdateGeneratedReplyInput!): UpdateGeneratedReplyOutput!Arguments
input
required
Returns
generatedReply
error
Mutation
mutation UpdateGeneratedReply($input: UpdateGeneratedReplyInput!) {
updateGeneratedReply(input: $input) {
generatedReply {
id
markdown
timelineEntryId
text
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"generatedReplyId": "id"
}
}Response
{
"data": {
"updateGeneratedReply": {
"generatedReply": {
"id": "id",
"markdown": "string",
"timelineEntryId": "id",
"text": "string",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

