To create a conversation test suite by importing the test cases from a given file. This API returns dsId, the ID to check the import status.
Method |
POST |
Endpoint |
https://{{host}}/api/public/stream/{{streamId}}/conversation/testsuite/import |
Content Type |
application/json |
Authorization |
auth: {{JWT}}
See How to generate the JWT Token. |
API Scope |
- Bot Builder: Conversation Tests Management
- Admin Console: Conversation Tests Management
|
Sample Request
curl --location --request POST 'https://{{host}}/api/public/stream/{{streamId}}/conversation/testsuite/import' \
--header 'auth: {jwt-code}' \
--header 'bot-language: {language-code}'
--header 'Content-Type: application/json' \
--data-raw '{
"fileName": "6721ff68208caa4dffe35be4",
"name": "platinum",
"tags" : [],
"description" : "NewTesteCase",
"userEmailId" : "botowner@domain.com"
}'
Sample Response
{
"status": "IN_PROGRESS",
"dsId": "ds-f8xxxxx5-5xxa-5xx4-axx4-48xxxxxxxxx9"
}