Attach Dataset File

Attach dataset file

post
/v1/dataset/{datasetId}/file/{fileId}/attach

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

datasetIdstring* Required

The ID of the dataset

fileIdstring* Required

The ID of the file

Request Body * Required

Request Body Schema: application/json

typestring

The dataset file attachment type

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

-H "Authorization: Bearer $CHATBOTKIT_API_SECRET" \

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

--data-binary @- << EOF {
"type":"string"
}
EOF
{
"id":"string"
}
The dataset file that was attached successfully