{"id":29478,"date":"2021-08-25T12:32:20","date_gmt":"2021-08-25T11:32:20","guid":{"rendered":"https:\/\/developer.kore.ai\/v8-1\/?p=29478"},"modified":"2021-08-25T12:33:06","modified_gmt":"2021-08-25T11:33:06","slug":"import-batch-test-suite-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v8-1\/docs\/bots\/api-guide\/import-batch-test-suite-api\/?lang=ja","title":{"rendered":"\u30d0\u30c3\u30c1\u30c6\u30b9\u30c8\u30b9\u30a4\u30fc\u30c8\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u306eAPI"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>\u7279\u5b9a\u306e\u30c6\u30b9\u30c8\u30b9\u30a4\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p class=\"note\">\u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u30a2\u30d7\u30ea\u306f\u30d0\u30c3\u30c1\u30c6\u30b9\u30c8\u306e\u7ba1\u7406\u306e\u30dc\u30c3\u30c8\u30d3\u30eb\u30c0\u30fc\u30b9\u30b3\u30fc\u30d7\u3001<br \/>\u307e\u305f\u306f\u30d0\u30c3\u30c1\u30c6\u30b9\u30c8\u306e\u7ba1\u7406\u306e\u7ba1\u7406\u8005API\u30b9\u30b3\u30fc\u30d7\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p><strong>POST<\/strong> <code>https:\/\/{host}\/api\/public\/bot\/{botId}\/testsuite\/import<\/code><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i\">\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf<\/span><\/h3>\n<table>\n<thead>\n<tr>\n<th>\u30d1\u30e9\u30e1\u30fc\u30bf<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">\u30db\u30b9\u30c8<\/span><\/td>\n<td>\u74b0\u5883URL\uff08\u4f8b\uff1a https:\/\/bots.kore.ai\uff09<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">BotID<\/span><\/td>\n<td>\u30dc\u30c3\u30c8ID\u307e\u305f\u306f\u30b9\u30c8\u30ea\u30fc\u30e0ID\u3002\u30dc\u30c3\u30c8\u306e [\u4e00\u822c\u8a2d\u5b9a] \u30da\u30fc\u30b8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-2\">\u672c\u6587\u30d1\u30e9\u30e1\u30fc\u30bf<\/span><\/h3>\n<table>\n<thead>\n<tr>\n<th>\u30d1\u30e9\u30e1\u30fc\u30bf<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>fileName<\/td>\n<td>\u30d0\u30c3\u30c1\u30c6\u30b9\u30c8\u306e\u8a73\u7d30\u3092\u542b\u3080\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>fileType<\/td>\n<td>JSON.<\/td>\n<\/tr>\n<tr>\n<td>importType<\/td>\n<td>\u65b0\u898f\/\u66f4\u65b0<\/td>\n<\/tr>\n<tr>\n<td>delimiter<\/td>\n<td>\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u533a\u5207\u308a\u6587\u5b57<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">\u8aac\u660e<\/span><\/td>\n<td>\u30c6\u30b9\u30c8\u30b9\u30a4\u30fc\u30c8\u306e\u8aac\u660e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-3\">\u8a8d\u8a3c<\/span><\/h3>\n<p>\u4ee5\u4e0b\u306e\u69cb\u6587\u3092\u4f7f\u7528\u3057\u3066\u3001JWT\u3092\u30d8\u30c3\u30c0\u30fc\u306b\u542b\u3080API\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p><code>auth: {{JWT}}<\/code><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-4\">\u5fdc\u7b54\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7<\/span><\/h3>\n<p><code>application\/json<\/code><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-5\">\u30b5\u30f3\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8<\/span><\/h3>\n<pre>curl --location --request POST \\ &apos;https:\/\/{host}\/api\/public\/stream\/{streamId}\/testsuite\/import&apos; \\ --header &apos;auth: {jwt-code}&apos; \\ --header &apos;bot-language: {language-code}&apos; \\ --header &apos;Content-Type: application\/json&apos; \\ --data-raw &apos;{ &quot;delimiter&quot;: &quot;,&quot;, &quot;description&quot;: &quot;fcgfddfg&quot;, &quot;fileName&quot;: &quot;5ff70b47a664d31999d9202c&quot;, &quot;fileType&quot;: &quot;json&quot;, &quot;importType&quot;: &quot;update&quot;, &quot;name&quot;: &quot;hgf&quot; }&apos;<\/pre>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-6\">\u30b5\u30f3\u30d7\u30eb\u5fdc\u7b54<\/span><\/h3>\n<pre>{ &quot;_id&quot;: &quot;ts-8304802f-6f85-5f67-8964-de04446c1c93&quot;, &quot;name&quot;: &quot;hgf&quot;, &quot;description&quot;: &quot;fcgfddfg&quot;, &quot;streamId&quot;: &quot;st-15864388-c33d-5caf-86a6-d17951ff3d5b&quot;, &quot;language&quot;: &quot;en&quot;, &quot;fileId&quot;: &quot;5ff70b47a664d31999d9202c&quot;, &quot;createdBy&quot;: &quot;u-49bd0ecd-18d1-53e1-988d-84d3004d79ea&quot;, &quot;createdOn&quot;: &quot;2021-01-05T17:43:43.927Z&quot;, &quot;modifiedOn&quot;: &quot;2021-01-07T13:48:14.169Z&quot;, &quot;__v&quot;: 0, &quot;fileName&quot;: &quot;sampleBatchtesting (2) (copy) (1).json&quot; }<\/pre>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"\u7279\u5b9a\u306e\u30c6\u30b9\u30c8\u30b9\u30a4\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002 \u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u30a2\u30d7\u30ea\u306f\u30d0\u30c3\u30c1\u30c6\u30b9\u30c8\u306e\u7ba1\u7406\u306e\u30dc\u30c3\u30c8\u30d3\u30eb\u30c0\u30fc\u30b9\u30b3\u30fc\u30d7\u3001\u307e\u305f\u306f\u30d0\u30c3\u30c1\u30c6\u30b9\u30c8\u306e\u7ba1\u7406\u306e\u7ba1\u7406\u8005API\u30b9\u30b3\u30fc\u30d7\u304c\u5fc5\u8981\u3067\u3059\u3002 POST https:\/\/{host}\/api\/public\/bot\/{botId}\/testsuite\/import \u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u8aac\u660e \u30db\u30b9\u30c8 \u74b0\u5883URL\uff08\u4f8b\uff1a https:\/\/bots.kore.ai\uff09 BotID \u30dc\u30c3\u30c8ID\u307e\u305f\u306f\u30b9\u30c8\u30ea\u30fc\u30e0ID\u3002\u30dc\u30c3\u30c8\u306e [\u4e00\u822c\u8a2d\u5b9a] \u30da\u30fc\u30b8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u672c\u6587\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u8aac\u660e fileName \u30d0\u30c3\u30c1\u30c6\u30b9\u30c8\u306e\u8a73\u7d30\u3092\u542b\u3080\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002 fileType JSON. importType \u65b0\u898f\/\u66f4\u65b0 delimiter \u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u533a\u5207\u308a\u6587\u5b57 \u8aac\u660e \u30c6\u30b9\u30c8\u30b9\u30a4\u30fc\u30c8\u306e\u8aac\u660e \u8a8d\u8a3c \u4ee5\u4e0b\u306e\u69cb\u6587\u3092\u4f7f\u7528\u3057\u3066\u3001JWT\u3092\u30d8\u30c3\u30c0\u30fc\u306b\u542b\u3080API\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002 auth: {{JWT}} \u5fdc\u7b54\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7 application\/json \u30b5\u30f3\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8 curl --location --request POST \\ &apos;https:\/\/{host}\/api\/public\/stream\/{streamId}\/testsuite\/import&apos; \\ --header &apos;auth: {jwt-code}&apos; \\ --header &apos;bot-language: {language-code}&apos; \\ --header &apos;Content-Type: application\/json&apos; \\ --data-raw &apos;{...","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-29478","post","type-post","status-publish","format-standard","hentry","category-api-guide"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/29478","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/comments?post=29478"}],"version-history":[{"count":2,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/29478\/revisions"}],"predecessor-version":[{"id":29480,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/29478\/revisions\/29480"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/media?parent=29478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/categories?post=29478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/tags?post=29478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}