Gets the status of the ML utterances import request made through Import ML Utterances API.
To use this API, app needs the Bot Builder API scope of Utterances Import.
OR the Admin API Scope of Utterances Import under Test and Train.
GET https://{{host}}/api/public/bot/{{BotID}}/mlimport/status/{{MLutteranceID}}
Path Parameters
Parameter | Required/Optional | Description |
---|---|---|
host | Required | Environment URL, for example, https://bots.kore.ai |
BotID | Required | The Stream ID of the bot from which to import the ML Utterances. |
MLutteranceID | required | The ID that is generated on calling the ML Utterances Import API. It is in the following format: Bir-xxxxxxx-xxx-xxxx-xxxxx-xxxxxxxxxx. |
Authorization
Invoke the API with JWT in the header with the following syntax:
auth: {{JWT}}
Response content type
application/json
Sample Request
curl -X GET \ https://{{host}}/api/public/bot/{{BotID}}/mlimport/status/{{MLutteranceID}} \ -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \ -H 'content-type: application/json' \
Sample Response
{ "_id": "bir-7ec861ee-5e6b-5165-b505-8820a275afdf", "status": "success", "streamId": "st-6ecb5ba2-5e31-5a40-b918-8cbee40f3fdb", "createdBy": "u-5dad2ccd-b271-5c00-a338-2e6e25e1ec91", "requestType": "MLimport", "statusLogs": [], "createdOn": "2019-06-27T12:03:30.748Z", "__v": 0, "message": "File imported completed. 1 utterances copied successfully" }