{"id":29304,"date":"2021-08-25T06:11:37","date_gmt":"2021-08-25T05:11:37","guid":{"rendered":"https:\/\/developer.kore.ai\/v8-1\/?p=29304"},"modified":"2021-08-25T06:12:43","modified_gmt":"2021-08-25T05:12:43","slug":"import-roles-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v8-1\/docs\/bots\/api-guide\/import-roles-api\/?lang=ja","title":{"rendered":"\u30ed\u30fc\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308bAPI"},"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>\u30dc\u30c3\u30c8\u307e\u305f\u306f\u7ba1\u7406\u8005\u30ed\u30fc\u30eb\u3092\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u901a\u5e38\u3001\u3042\u308b\u74b0\u5883\u304b\u3089\u5225\u306e\u74b0\u5883\u306b\u30ed\u30fc\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p class=\"note\">\u3053\u306eAPI\u306b\u306f\u3001\u30dc\u30c3\u30c8\u7ba1\u7406\u8005\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u306e\u307f\u4f5c\u6210\u3055\u308c\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305fJWT\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u3001\u30a2\u30d7\u30ea\u306f [<em>\u30ed\u30fc\u30eb\u7ba1\u7406<\/em>] \u306e [<em>\u30ed\u30fc\u30eb\u7ba1\u7406<\/em>] \u306e\u7ba1\u7406API\u30b9\u30b3\u30fc\u30d7\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002<\/p>\n<p><b>\u30dd\u30b9\u30c8 <\/b><code>https:\/\/{{host}}\/api\/public\/roles\/import?roleType=bot&amp;fullImport=true<\/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<tbody>\n<tr>\n<th><b>\u30d1\u30e9\u30e1\u30fc\u30bf<\/b><\/th>\n<th><b>\u5fc5\u9808\/\u4efb\u610f<\/b><\/th>\n<th><b>\u8aac\u660e<\/b><\/th>\n<\/tr>\n<tr>\n<td>\u30db\u30b9\u30c8<\/td>\n<td>\u5fc5\u9808<\/td>\n<td>\u74b0\u5883URL\uff08\u4f8b\uff1a https:\/\/bots.kore.ai\uff09<\/td>\n<\/tr>\n<tr>\n<td>roleType<\/td>\n<td>\u5fc5\u9808<\/td>\n<td>\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u30ed\u30fc\u30eb\u30bf\u30a4\u30d7\uff1a<\/p>\n<ul>\n<li><strong>admin<\/strong>\u307e\u305f\u306f<\/li>\n<li><strong>bot<\/strong><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>fullImport<\/td>\n<td>\u4efb\u610f<\/td>\n<td>\n<ul>\n<li><span style=\"font-family: inherit;font-size: inherit\">\u5168\u4f53\u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u5834\u5408\u306f<\/span><strong style=\"font-family: inherit;font-size: inherit\">\u300cTrue\u300d<\/strong><\/li>\n<li><span style=\"font-family: inherit;font-size: inherit\">\u5897\u5206\u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u5834\u5408\u306f\u300c<\/span><strong style=\"font-family: inherit;font-size: inherit\">False<\/strong><span style=\"font-family: inherit;font-size: inherit\">\u300d<\/span>\u3002<\/li>\n<\/ul>\n<\/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<tbody>\n<tr>\n<th><b>\u30d1\u30e9\u30e1\u30fc\u30bf<\/b><\/th>\n<th><b>\u5fc5\u9808\/\u4efb\u610f<\/b><\/th>\n<th><b>\u8aac\u660e<\/b><\/th>\n<\/tr>\n<tr>\n<td>fileId<\/td>\n<td>\u5fc5\u9808<\/td>\n<td>\u30a4\u30f3\u30dd\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306eID\uff08\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u63d0\u4f9b\uff09\u3067\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-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 <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 -X POST \\ &apos;https:\/\/{{host}}\/api\/public\/roles\/import?roleType=admin&amp;fullImport=true&apos; \\ -H &apos;Content-Type: application\/json&apos; \\ -H &apos;auth: {{YOUR_JWT_ACCESS_TOKEN}}&apos; \\ -d &apos;{ &quot;fileId&quot;:&quot;{{fileId}}&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>\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;mapping&quot;: { &quot;users&quot;: [], &quot;groups&quot;: [], &quot;bots&quot;: [] }, &quot;roleType&quot;: &quot;admin&quot;, &quot;rStatus&quot;: &quot;unpublished&quot;, &quot;isASystemRole&quot;: false, &quot;category&quot;: &quot;admin&quot;, &quot;audit&quot;: [], &quot;_userAndGroups&quot;: [], &quot;isDefault&quot;: false, &quot;_id&quot;: &quot;5bf132388c4f4e433d46783b&quot;, &quot;orgId&quot;: &quot;o-d52dc1a4-8ef6-5fbf-943a-b572b469ec3b&quot;, &quot;role&quot;: &quot;CustomAdmin1&quot;, &quot;createdDate&quot;: &quot;2018-11-18T09:34:48.501Z&quot;, &quot;createdBy&quot;: &quot;u-66bb4537-6a44-5127-b6e2-c97e4e66d5b7&quot;, &quot;modifiedDate&quot;: &quot;2018-11-18T09:34:48.501Z&quot;, &quot;modifiedBy&quot;: &quot;u-66bb4537-6a44-5127-b6e2-c97e4e66d5b7&quot;, &quot;permissions&quot;: { &quot;Invite&quot;: &quot;YES&quot;, &quot;Import Users \/ Sync&quot;: &quot;NO&quot;, &quot;Directory Sync&quot;: &quot;NO&quot;, &quot;Manage Users&quot;: &quot;NO&quot;, &quot;Manage User Settings&quot;: &quot;NO&quot;, &quot;Manage Groups&quot;: &quot;NO&quot;, &quot;Manage Custom Admin Roles&quot;: &quot;NO&quot;, &quot;Manage Built-In Admin Roles&quot;: &quot;NO&quot;, &quot;Manage Bot Roles&quot;: &quot;NO&quot;, &quot;Manage Deployment&quot;: &quot;NO&quot;, &quot;Enterprise Bots&quot;: &quot;NO&quot;, &quot;Consumer Bots&quot;: &quot;NO&quot;, &quot;Smart Bots&quot;: &quot;NO&quot;, &quot;Preferences&quot;: &quot;NO&quot;, &quot;Single Sign On&quot;: &quot;NO&quot;, &quot;Kore.ai Connector&quot;: &quot;NO&quot;, &quot;Enterprise Key&quot;: &quot;NO&quot;, &quot;API Scopes&quot;: &quot;NO&quot;, &quot;View and Run Audit Reports&quot;: &quot;NO&quot;, &quot;View and Run Bot Chat History&quot;: &quot;NO&quot; }, &quot;rDesc&quot;: &quot;&quot;, &quot;refId&quot;: &quot;a287e9fb-ea34-5835-a4c5-0c9a9d6136e0&quot;, &quot;_product&quot;: &quot;Bots&quot;, &quot;__v&quot;: 0 }, { &quot;mapping&quot;: { &quot;users&quot;: [], &quot;groups&quot;: [], &quot;bots&quot;: [] }, &quot;roleType&quot;: &quot;admin&quot;, &quot;rStatus&quot;: &quot;unpublished&quot;, &quot;isASystemRole&quot;: false, &quot;category&quot;: &quot;admin&quot;, &quot;audit&quot;: [], &quot;_userAndGroups&quot;: [], &quot;isDefault&quot;: false, &quot;_id&quot;: &quot;5bf132388c4f4e433d46783c&quot;, &quot;orgId&quot;: &quot;o-d52dc1a4-8ef6-5fbf-943a-b572b469ec3b&quot;, &quot;role&quot;: &quot;CA2&quot;, &quot;createdDate&quot;: &quot;2018-11-18T09:34:48.501Z&quot;, &quot;createdBy&quot;: &quot;u-66bb4537-6a44-5127-b6e2-c97e4e66d5b7&quot;, &quot;modifiedDate&quot;: &quot;2018-11-18T09:34:48.501Z&quot;, &quot;modifiedBy&quot;: &quot;u-66bb4537-6a44-5127-b6e2-c97e4e66d5b7&quot;, &quot;permissions&quot;: { &quot;Invite&quot;: &quot;NO&quot;, &quot;Import Users \/ Sync&quot;: &quot;NO&quot;, &quot;Directory Sync&quot;: &quot;YES&quot;, &quot;Manage Users&quot;: &quot;YES&quot;, &quot;Manage User Settings&quot;: &quot;NO&quot;, &quot;Manage Groups&quot;: &quot;NO&quot;, &quot;Manage Custom Admin Roles&quot;: &quot;NO&quot;, &quot;Manage Built-In Admin Roles&quot;: &quot;NO&quot;, &quot;Manage Bot Roles&quot;: &quot;YES&quot;, &quot;Manage Deployment&quot;: &quot;YES&quot;, &quot;Enterprise Bots&quot;: &quot;YES&quot;, &quot;Consumer Bots&quot;: &quot;YES&quot;, &quot;Smart Bots&quot;: &quot;YES&quot;, &quot;Preferences&quot;: &quot;NO&quot;, &quot;Single Sign On&quot;: &quot;NO&quot;, &quot;Kore.ai Connector&quot;: &quot;NO&quot;, &quot;Enterprise Key&quot;: &quot;NO&quot;, &quot;API Scopes&quot;: &quot;NO&quot;, &quot;View and Run Audit Reports&quot;: &quot;YES&quot;, &quot;View and Run Bot Chat History&quot;: &quot;YES&quot; }, &quot;rDesc&quot;: &quot;&quot;, &quot;refId&quot;: &quot;86ccb9c3-f63b-5a7e-be8b-dc9ee9748940&quot;, &quot;_product&quot;: &quot;Bots&quot;, &quot;__v&quot;: 0 } ]<\/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":"\u30dc\u30c3\u30c8\u307e\u305f\u306f\u7ba1\u7406\u8005\u30ed\u30fc\u30eb\u3092\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u901a\u5e38\u3001\u3042\u308b\u74b0\u5883\u304b\u3089\u5225\u306e\u74b0\u5883\u306b\u30ed\u30fc\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002 \u3053\u306eAPI\u306b\u306f\u3001\u30dc\u30c3\u30c8\u7ba1\u7406\u8005\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u306e\u307f\u4f5c\u6210\u3055\u308c\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305fJWT\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u3001\u30a2\u30d7\u30ea\u306f [\u30ed\u30fc\u30eb\u7ba1\u7406] \u306e [\u30ed\u30fc\u30eb\u7ba1\u7406] \u306e\u7ba1\u7406API\u30b9\u30b3\u30fc\u30d7\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002 \u30dd\u30b9\u30c8 https:\/\/{{host}}\/api\/public\/roles\/import?roleType=bot&amp;fullImport=true \u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u5fc5\u9808\/\u4efb\u610f \u8aac\u660e \u30db\u30b9\u30c8 \u5fc5\u9808 \u74b0\u5883URL\uff08\u4f8b\uff1a https:\/\/bots.kore.ai\uff09 roleType \u5fc5\u9808 \u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u30ed\u30fc\u30eb\u30bf\u30a4\u30d7\uff1a admin\u307e\u305f\u306f bot fullImport \u4efb\u610f \u5168\u4f53\u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u5834\u5408\u306f\u300cTrue\u300d \u5897\u5206\u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u5834\u5408\u306f\u300cFalse\u300d\u3002 \u672c\u6587\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u5fc5\u9808\/\u4efb\u610f \u8aac\u660e fileId \u5fc5\u9808 \u30a4\u30f3\u30dd\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306eID\uff08\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u63d0\u4f9b\uff09\u3067\u3059\u3002 \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 -X POST \\ &apos;https:\/\/{{host}}\/api\/public\/roles\/import?roleType=admin&amp;fullImport=true&apos; \\ -H &apos;Content-Type: application\/json&apos; \\ -H &apos;auth: {{YOUR_JWT_ACCESS_TOKEN}}&apos; \\ -d &apos;{...","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-29304","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\/29304","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=29304"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/29304\/revisions"}],"predecessor-version":[{"id":29305,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/29304\/revisions\/29305"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/media?parent=29304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/categories?post=29304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/tags?post=29304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}