To initiate ML training of a bot.
To use this API, app needs the Admin API Scope of Train ML under Test and Train.
POST https://{{host}}/api/public/bot/{{BotID}}/ml/train
Query Parameters
| Parameter | Required/Optional | Description |
|---|---|---|
| host | Required | Environment URL, for example, https://bots.kore.ai |
| BotID | Required | Bot ID or Stream ID. You can access it from the General Settings page of the bot. |
Authorization
Invoke the API with JWT in the header as follows:
auth: {{JWT}}
Response Content Type
application/json
Sample Request
curl -X POST \
https://{{host}}/api/public/bot/{{BotId}}/ml/train \
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
Sample Response
[
{
"message": "Training Queued.",
"Training_ID": "5d14b03edba48abcb44375a1"
}
]