Dataset Records

Update Dataset Record

Update a dataset record

post
/v1/dataset/{datasetId}/record/{recordId}/update

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

datasetIdstring* Required

recordIdstring* Required

Request Body * Required

Request Body Schema: application/json

textstring

The text to update the record with

sourcestring

The source to update the record with

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.update(

datasetId, recordId,
{
"text":"string",
"source":"string",
"meta":"object"
}
)
{
"id":"string"
}
The record was updated successfully