Bots

Update Bot

Update bot

post
/v1/bot/{botId}/update

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

botIdstring* Required

Request Body * Required

Request Body Schema: application/json

namestring

The associated name

descriptionstring

The associated description

metaobject

Meta data information

visibilitystring

The bot visibility

botIdstring

The ID of the bot this configuration is using

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.bot.update(

botId,
{
"name":"string",
"description":"string",
"meta":"object",
"visibility":"string",
"botId":"string"
}
)
{
"id":"string"
}
The bot was updated successfully