Files
Update File
Update file
post
/v1/file/{fileId}/update
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
fileIdstring* Required
Request Body * Required
Request Body Schema: application/json
aliasstring
The unique alias for the instance
namestring
The associated name
descriptionstring
The associated description
metaobject
Meta data information
blueprintIdstring
The ID of the blueprint
visibilitystring
The file visibility
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.file.update(
fileId,{)"alias":"string","name":"string","description":"string","meta":"object","blueprintId":"string",}"visibility":"string"
{"id":"string"}The file was updated successfully