{"id":41276,"date":"2022-04-21T08:56:15","date_gmt":"2022-04-21T07:56:15","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=41276"},"modified":"2022-04-21T08:56:43","modified_gmt":"2022-04-21T07:56:43","slug":"upload-file-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/api-guide\/upload-file-api\/?lang=ko","title":{"rendered":"\ud30c\uc77c API \uc5c5\ub85c\ub4dc"},"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>Botdefinition, botconfig \ubc0f botfunction \ud30c\uc77c\uacfc \ubd07 \uc544\uc774\ucf58\uc744 \ub85c\uceec \uc11c\ubc84\uc5d0 \uc5c5\ub85c\ub4dc\ud558\uace0 <a href=\"https:\/\/multisite.korebots.com\/uncategorised-ko-2\/import-bot-as-a-new-bot-api\/?lang=ko\" target=\"_blank\" rel=\"noopener noreferrer\">\ubd07 API \uac00\uc838\uc624\uae30<\/a>\uc5d0 \uc0ac\uc6a9\ub418\ub294 \ud30c\uc77c ID\ub97c \uac00\uc838\uc624\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ud30c\uc77c\uc744 \ubcc4\ub3c4\ub85c \uc5c5\ub85c\ub4dc\ud574\uc57c \ud569\ub2c8\ub2e4. <b>POST<\/b> <code>https:\/\/{{host}}\/api\/public\/uploadfile<\/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<h2><span class=\"ez-toc-section\" id=\"i\">\ucffc\ub9ac \ub9e4\uac1c \ubcc0\uc218<\/span><\/h2>\n<table style=\"height: 41px\" width=\"391\">\n<thead>\n<tr>\n<th>\ub9e4\uac1c \ubcc0\uc218<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400\">host<\/span><\/td>\n<td>\ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span class=\"ez-toc-section\" id=\"i-2\">\ubcf8\ubb38 \ub9e4\uac1c \ubcc0\uc218<\/span><\/h2>\n<p>\uc804\ub2ec\ud560 \ub9e4\uac1c \ubcc0\uc218\ub294 \ud544\uc694\ud55c \ud30c\uc77c ID\uc5d0 \ub530\ub77c \ub2ec\ub77c\uc9d1\ub2c8\ub2e4.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"_Id\"><span style=\"font-weight: 400\">\ubd07 \uc815\uc758 \ud30c\uc77c Id\uc758 \uacbd\uc6b0<\/span><\/span><\/h3>\n<table>\n<thead>\n<tr>\n<th>\ub9e4\uac1c \ubcc0\uc218<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400\">file<\/span><\/td>\n<td>Bottdefinition.json \uc5c5\ub85c\ub4dc<\/td>\n<\/tr>\n<tr>\n<td>fileContext<\/td>\n<td>bulkImport<\/td>\n<\/tr>\n<tr>\n<td>fileExtension<\/td>\n<td>json<\/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=\"_ID\"><span style=\"font-weight: 400\">\ubd07 \uc124\uc815 \ud30c\uc77c ID\uc758 \uacbd\uc6b0<\/span><\/span><\/h3>\n<table>\n<thead>\n<tr>\n<th>\ub9e4\uac1c \ubcc0\uc218<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400\">file<\/span><\/td>\n<td><span style=\"font-weight: 400\">Bottconfig.json \uc5c5\ub85c\ub4dc<\/span><\/td>\n<\/tr>\n<tr>\n<td>fileContext<\/td>\n<td>bulkImport<\/td>\n<\/tr>\n<tr>\n<td>fileExtension<\/td>\n<td>json<\/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=\"Bot_Id\"><span style=\"font-weight: 400\">Bot \uae30\ub2a5 \ud30c\uc77c Id\uc758 \uacbd\uc6b0<\/span><\/span><\/h3>\n<table>\n<thead>\n<tr>\n<th>\ub9e4\uac1c \ubcc0\uc218<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400\">file<\/span><\/td>\n<td><span style=\"font-weight: 400\">Bot \uae30\ub2a5 \ud30c\uc77c \uc5c5\ub85c\ub4dc<\/span><\/td>\n<\/tr>\n<tr>\n<td>fileContext<\/td>\n<td>bulkImport<\/td>\n<\/tr>\n<tr>\n<td>fileExtension<\/td>\n<td>js<\/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=\"Bot_Id-2\"><span style=\"font-weight: 400\">Bot \uc544\uc774\ucf58 \ud30c\uc77c Id\uc758 \uacbd\uc6b0<\/span><\/span><\/h3>\n<table>\n<thead>\n<tr>\n<th>\ub9e4\uac1c \ubcc0\uc218<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400\">file<\/span><\/td>\n<td><span style=\"font-weight: 400\">\ubd07 \uc544\uc774\ucf58 \uc5c5\ub85c\ub4dc<\/span><\/td>\n<\/tr>\n<tr>\n<td>fileContext<\/td>\n<td>bulkImport<\/td>\n<\/tr>\n<tr>\n<td>fileExtension<\/td>\n<td>json<\/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=\"ML_Id\"><span style=\"font-weight: 400\">ML \ubc1c\ud654 \ud30c\uc77c Id\uc758 \uacbd\uc6b0<\/span><\/span><\/h3>\n<table>\n<thead>\n<tr>\n<th>\ub9e4\uac1c \ubcc0\uc218<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400\">file<\/span><\/td>\n<td><span style=\"font-weight: 400\">ML \ubc1c\ud654 \ud30c\uc77c(.json \ub610\ub294 CSV) \uc5c5\ub85c\ub4dc<\/span><\/td>\n<\/tr>\n<tr>\n<td>fileContext<\/td>\n<td>bulkImport<\/td>\n<\/tr>\n<tr>\n<td>fileExtension<\/td>\n<td><span style=\"font-weight: 400\">json \ub610\ub294 csv<\/span><\/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<h2><span class=\"ez-toc-section\" id=\"i-3\">\uad8c\ud55c \ubd80\uc5ec<\/span><\/h2>\n<p>\ub2e4\uc74c \uad6c\ubb38\uc744 \ud3ec\ud568\ud55c \ud5e4\ub354\uc5d0 JWT\ub97c \ud3ec\ud568\ud55c API\ub97c \ud638\ucd9c\ud569\ub2c8\ub2e4. <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<h2><span class=\"ez-toc-section\" id=\"i-4\">\ucf58\ud150\uce20 \uc720\ud615 \uc751\ub2f5<\/span><\/h2>\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<h2><span class=\"ez-toc-section\" id=\"i-5\">\uc0d8\ud50c \uc694\uccad<\/span><\/h2>\n<pre>curl -X POST \\\r\n  https:\/\/{{host}}\/api\/public\/uploadfile \\\r\n  -H 'auth: YOUR_JWT_ACCESS_TOKEN' \\\r\n  -H 'content-type: multipart\/form-data' \\\r\n  -F file=@botDefinition.json \\\r\n  -F fileContext=bulkImport \\\r\n  -F fileExtension=json<\/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<h2><span class=\"ez-toc-section\" id=\"i-6\">\uc0d8\ud50c \uc751\ub2f5<\/span><\/h2>\n<pre>{\r\n    \"fileId\": \"5c077d28d28e06c112681656\",\r\n    \"hash\": \"c275df72765efb7de332e7d54300cb12de66b78e\"\r\n}<\/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":"Botdefinition, botconfig \ubc0f botfunction \ud30c\uc77c\uacfc \ubd07 \uc544\uc774\ucf58\uc744 \ub85c\uceec \uc11c\ubc84\uc5d0 \uc5c5\ub85c\ub4dc\ud558\uace0 \ubd07 API \uac00\uc838\uc624\uae30\uc5d0 \uc0ac\uc6a9\ub418\ub294 \ud30c\uc77c ID\ub97c \uac00\uc838\uc624\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ud30c\uc77c\uc744 \ubcc4\ub3c4\ub85c \uc5c5\ub85c\ub4dc\ud574\uc57c \ud569\ub2c8\ub2e4. POST https:\/\/{{host}}\/api\/public\/uploadfile \ucffc\ub9ac \ub9e4\uac1c \ubcc0\uc218 \ub9e4\uac1c \ubcc0\uc218 \uc124\uba85 host \ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai) \ubcf8\ubb38 \ub9e4\uac1c \ubcc0\uc218 \uc804\ub2ec\ud560 \ub9e4\uac1c \ubcc0\uc218\ub294 \ud544\uc694\ud55c \ud30c\uc77c ID\uc5d0 \ub530\ub77c \ub2ec\ub77c\uc9d1\ub2c8\ub2e4. \ubd07 \uc815\uc758 \ud30c\uc77c Id\uc758 \uacbd\uc6b0 \ub9e4\uac1c \ubcc0\uc218 \uc124\uba85 file...","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-41276","post","type-post","status-publish","format-standard","hentry","category-api-guide"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=41276"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41276\/revisions"}],"predecessor-version":[{"id":41277,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41276\/revisions\/41277"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=41276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=41276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=41276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}