curl --request POST \
--url https://api.pal.ai/v1/messages/{id}/feedback \
--header 'Content-Type: application/json' \
--data '"thumbsUp"'{
"id": "<string>",
"content": "<string>",
"role": "user",
"type": "<string>",
"parentMessageId": "<string>",
"searchResultSet": {
"documents": [
{
"id": "<string>",
"title": "<string>",
"contentPreview": "<string>",
"url": "<string>"
}
],
"sections": [
{
"id": "<string>",
"applicationId": "<string>",
"heading": "<string>",
"text": "<string>",
"documentId": "<string>",
"indexOrder": "<string>",
"indexId": "<string>",
"indexName": "<string>",
"indexInfo": "<string>",
"deletedAt": "<string>",
"updatedAt": "<string>",
"createdAt": "<string>"
}
]
},
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"conversationId": "<string>",
"feedback": "thumbsUp",
"": "<string>"
}Adds feedback to a message.
curl --request POST \
--url https://api.pal.ai/v1/messages/{id}/feedback \
--header 'Content-Type: application/json' \
--data '"thumbsUp"'{
"id": "<string>",
"content": "<string>",
"role": "user",
"type": "<string>",
"parentMessageId": "<string>",
"searchResultSet": {
"documents": [
{
"id": "<string>",
"title": "<string>",
"contentPreview": "<string>",
"url": "<string>"
}
],
"sections": [
{
"id": "<string>",
"applicationId": "<string>",
"heading": "<string>",
"text": "<string>",
"documentId": "<string>",
"indexOrder": "<string>",
"indexId": "<string>",
"indexName": "<string>",
"indexInfo": "<string>",
"deletedAt": "<string>",
"updatedAt": "<string>",
"createdAt": "<string>"
}
]
},
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"conversationId": "<string>",
"feedback": "thumbsUp",
"": "<string>"
}The message ID the feedback belongs to.
OK
user, system, assistant Show child attributes
Show child attributes