Conversations

Downvote Conversation

Downvote conversation

post
/v1/conversation/{conversationId}/downvote

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

conversationIdstring* Required

The ID of the conversation

Request Body * Required

Request Body Schema: application/json

valueinteger

The value of the downvote

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.conversation.downvote(

conversationId,
{
"value":"integer"
}
)
{
"id":"string"
}
The message was downvoted successfully