{"id":41134,"date":"2022-04-21T02:02:40","date_gmt":"2022-04-21T01:02:40","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=41134"},"modified":"2022-04-21T02:02:57","modified_gmt":"2022-04-21T01:02:57","slug":"assign-bt-roles-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/api-guide\/assign-bt-roles-api\/?lang=ko","title":{"rendered":"BT \uc5ed\ud560 API \ud560\ub2f9"},"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>\ud2b9\uc815 \ubd07\uc758 \uc0ac\uc6a9\uc790 \uc9d1\ud569\uc5d0 \ubd07 \uc5ed\ud560\uc744 \ud560\ub2f9\ud569\ub2c8\ub2e4<\/p>\n<p class=\"note\">\uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc624\uc9c1 \ubd07 \uad00\ub9ac\uc790 \ucf58\uc194\uc5d0\uc11c \uc0dd\uc131\ub41c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub9cc\ub4e4\uc5b4\uc9c4 JWT\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc571\uc740 <em>\uc5ed\ud560 \uad00\ub9ac<\/em> \uc544\ub798\uc5d0 \uc788\ub294 <em>\uc5ed\ud560 \uad00\ub9ac<\/em>\uc758 \uad00\ub9ac\uc790 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n<p><b>POST <\/b><code>https:\/\/{{host}}\/api\/public\/btroles\/assignments\/<\/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\">\ucffc\ub9ac \ub9e4\uac1c \ubcc0\uc218<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th>\ub9e4\uac1c \ubcc0\uc218<\/th>\n<th>\ud544\uc218\/\uc120\ud0dd \uc0ac\ud56d<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<tr>\n<td>host<\/td>\n<td>\ud544\uc218<\/td>\n<td>\ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai)<\/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\">\ubcf8\ubb38 \ub9e4\uac1c \ubcc0\uc218<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th>\ub9e4\uac1c \ubcc0\uc218<\/th>\n<th>\ud544\uc218\/\uc120\ud0dd \uc0ac\ud56d<\/th>\n<th>\uc124\uba85<\/th>\n<\/tr>\n<tr>\n<td>roleId<\/td>\n<td>\ud544\uc218<\/td>\n<td>\uc0ac\uc6a9\uc790 \ub610\ub294 \uadf8\ub8f9\uc744 \ud560\ub2f9\ud560 \ubd07 \uc5ed\ud560\uc758 ID\uc785\ub2c8\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>botId<\/td>\n<td>\ud544\uc218<\/td>\n<td>\ubd07 \uc5ed\ud560\uc744 \ud560\ub2f9\ud560 \ubd07\uc758 ID\uc785\ub2c8\ub2e4<\/td>\n<\/tr>\n<tr>\n<td>addUsers \ub610\ub294 addOrgUserIds<\/td>\n<td>\uc120\ud0dd \uc0ac\ud56d<\/td>\n<td>\ubd07 \uc5ed\ud560\uc744 \ud560\ub2f9\ud560 \uc0ac\uc6a9\uc790 \uc774\ub984 \ub610\ub294 \uc870\uc9c1 \uc0ac\uc6a9\uc790 ID \ubaa9\ub85d<\/td>\n<\/tr>\n<tr>\n<td>removeUsers \ub610\ub294 removeOrgUserIds<\/td>\n<td>\uc120\ud0dd \uc0ac\ud56d<\/td>\n<td>\ubd07 \uc5ed\ud560\uc744 \uc81c\uac70\ud560 \uc0ac\uc6a9\uc790 \uc774\ub984 \ub610\ub294 \uc870\uc9c1 \uc0ac\uc6a9\uc790 ID \ubaa9\ub85d<\/td>\n<\/tr>\n<tr>\n<td>addGroups<\/td>\n<td>\uc120\ud0dd \uc0ac\ud56d<\/td>\n<td>\ubd07 \uc5ed\ud560\uc744 \ud560\ub2f9\ud560 \uadf8\ub8f9 \uc774\ub984 \ubaa9\ub85d<\/td>\n<\/tr>\n<tr>\n<td>removeGroups<\/td>\n<td>\uc120\ud0dd \uc0ac\ud56d<\/td>\n<td>\ubd07 \uc5ed\ud560\uc744 \uc81c\uac70\ud560 \uadf8\ub8f9 \uc774\ub984 \ubaa9\ub85d<\/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\">\uad8c\ud55c \ubd80\uc5ec<\/span><\/h3>\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<h3><span class=\"ez-toc-section\" id=\"i-4\">\ucf58\ud150\uce20 \uc720\ud615 \uc751\ub2f5<\/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\">\uc0d8\ud50c \uc694\uccad<\/span><\/h3>\n<pre>curl -X POST \\\r\n  https:\/\/{{host}}\/api\/public\/btroles\/assignments\/' \\\r\n  -H 'Content-Type: application\/json' \\\r\n  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \\\r\n  -d '[{\r\n\"roleId\":\"5bee8fv6729d35741e05aba4\",\r\n\"botId\":\"{{botId}}\",\r\n\"addUsers\":[\"\"],\r\n\"removeUsers\":[\"\"],\r\n\"addGroups\": [\"G2\"],\r\n\"removeGroups\":[\"\"]\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>\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\">\uc0d8\ud50c \uc751\ub2f5<\/span><\/h3>\n<pre>[\r\n    {\r\n        \"status\": \"success \"\r\n    }\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":"\ud2b9\uc815 \ubd07\uc758 \uc0ac\uc6a9\uc790 \uc9d1\ud569\uc5d0 \ubd07 \uc5ed\ud560\uc744 \ud560\ub2f9\ud569\ub2c8\ub2e4 \uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc624\uc9c1 \ubd07 \uad00\ub9ac\uc790 \ucf58\uc194\uc5d0\uc11c \uc0dd\uc131\ub41c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub9cc\ub4e4\uc5b4\uc9c4 JWT\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc571\uc740 \uc5ed\ud560 \uad00\ub9ac \uc544\ub798\uc5d0 \uc788\ub294 \uc5ed\ud560 \uad00\ub9ac\uc758 \uad00\ub9ac\uc790 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. POST https:\/\/{{host}}\/api\/public\/btroles\/assignments\/ \ucffc\ub9ac \ub9e4\uac1c \ubcc0\uc218 \ub9e4\uac1c \ubcc0\uc218 \ud544\uc218\/\uc120\ud0dd \uc0ac\ud56d \uc124\uba85 host \ud544\uc218 \ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai) \ubcf8\ubb38 \ub9e4\uac1c \ubcc0\uc218 \ub9e4\uac1c \ubcc0\uc218 \ud544\uc218\/\uc120\ud0dd \uc0ac\ud56d...","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-41134","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\/41134","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=41134"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41134\/revisions"}],"predecessor-version":[{"id":41135,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41134\/revisions\/41135"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=41134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=41134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=41134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}