Dataset Records
Create Dataset Record
Create record
post
/v1/dataset/{datasetId}/record/create
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
datasetIdstring* Required
Request Body * Required
Request Body Schema: application/json
textstring
The text of the record
sourcestring
The source of the record
metaobject
Meta data information
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.dataset.record.create(
datasetId,{)"text":"string","source":"string",}"meta":"object"
{"id":"string"}
The record was created successfully