Update Dataset

Update dataset

post
/v1/dataset/{datasetId}/update

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

datasetIdstring* Required

Request Body * Required

Request Body Schema: application/json

namestring

The new name for the dataset

descriptionstring

The new description for the dataset

recordMaxTokensnumber

The total number of tokens to for each record

searchMinScorenumber

The minimum score to filter search results by

searchMaxRecordsnumber

The total number of records to return during search

searchMaxTokensnumber

The total number of tokens to use during search

matchInstructionstring

An instruction to include before found records

mismatchInstructionstring

An instruction to include if no records where found

separatorsstring

A list of separators to use when tokenizing text

visibilitystring

The dataset visibility

metaobject

Meta data information

curl -X POST "https://api.chatbotkit.com/v1/dataset/{datasetId}/update" \

-H "Authorization: Bearer $CHATBOTKIT_API_SECRET" \

-H "Content-Type: application/json" \

--data-binary @- << EOF {
"name":"string",
"description":"string",
"recordMaxTokens":"number",
"searchMinScore":"number",
"searchMaxRecords":"number",
"searchMaxTokens":"number",
"matchInstruction":"string",
"mismatchInstruction":"string",
"separators":"string",
"visibility":"string",
"meta":"object"
}
EOF
{
"id":"string"
}
The dataset was updated successfully