{"id":29298,"date":"2021-08-25T06:00:49","date_gmt":"2021-08-25T05:00:49","guid":{"rendered":"https:\/\/developer.kore.ai\/v8-1\/?p=29298"},"modified":"2021-08-25T06:01:07","modified_gmt":"2021-08-25T05:01:07","slug":"update-user-access-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v8-1\/docs\/bots\/api-guide\/update-user-access-api\/?lang=ja","title":{"rendered":"\u30e6\u30fc\u30b6\u30fc\u30a2\u30af\u30bb\u30b9\u3092\u66f4\u65b0\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\u30d3\u30eb\u30c0\u30fc\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a5f\u80fd\u3092\u8ffd\u52a0\u307e\u305f\u306f\u524a\u9664\u3057\u3001\u65b0\u3057\u3044\u30dc\u30c3\u30c8\u3092\u4f5c\u6210\u3057\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>GET <\/b><code>https:\/\/{{host}}\/api\/public\/useraccess<\/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>\u30d1\u30e9\u30e1\u30fc\u30bf<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>\u30db\u30b9\u30c8<\/td>\n<td>\u74b0\u5883URL\uff08\u4f8b\uff1a https:\/\/bots.kore.ai\uff09<\/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>\u30d1\u30e9\u30e1\u30fc\u30bf<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>emailIds<\/td>\n<td>\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u5909\u66f4\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u30e1\u30fc\u30ebID\u306e\u914d\u5217\uff08\u4f8b\uff1a[&quot;joe@kore.com&quot;, &quot;amy@xyz.com&quot;]\uff09<\/td>\n<\/tr>\n<tr>\n<td>canCreateBot<\/td>\n<td>\u6307\u5b9a\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u304c\u3001\u30dc\u30c3\u30c8\u30d3\u30eb\u30c0\u30fc\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30dc\u30c3\u30c8\u3092\u4f5c\u6210\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002True\u307e\u305f\u306fFalse\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>isDeveloper<\/td>\n<td>\u6307\u5b9a\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u304c\u30dc\u30c3\u30c8\u30d3\u30eb\u30c0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002True\u307e\u305f\u306fFalse\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>hasDataTableAndViewAccess<\/td>\n<td>\u6307\u5b9a\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u304c\u30c6\u30fc\u30d6\u30eb\u3084\u30d3\u30e5\u30fc\u3092\u4f5c\u6210\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002True\u307e\u305f\u306fFalse\u3092\u8a2d\u5b9a\u3057\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-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 \\ https:\/\/{{host}}\/api\/public\/useraccess \\ -H &apos;Content-Type: application\/json&apos; \\ -H &apos;auth: YOUR_JWT_ACCESS_TOKEN&apos; \\ -d &apos;{ &quot;emailIds&quot;:[&quot;sample1@sampleemail.com&quot;], &quot;canCreateBot&quot;:true, &quot;isDeveloper&quot;:true, &quot;hasDataTableAndViewAccess&quot;: true }&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<ul>\n<li>\u6210\u529f\u4f8b\uff1a\n<pre>[ &ldquo;SUCCESS&rdquo; ]<\/pre>\n<\/li>\n<li>Invalid input combination: canCreateBot: true, isDeveloper: false\n<pre>{ &quot;errors&quot;: [ { &quot;msg&quot;: &quot;Invalid values in the body&quot;, &quot;code&quot;: 403 } ] }<\/pre>\n<\/li>\n<li>No email addresses provided: emailIds [ ] is empty\n<pre>{ &quot;errors&quot;: [ { &quot;msg&quot;: &quot;emailIds cannot be empty&quot;, &quot;code&quot;: 400 } ] }<\/pre>\n<\/li>\n<li>\u7121\u52b9\u306a\u30e1\u30fc\u30ebID\u3001\u307e\u305f\u306fDB\u306b\u5b58\u5728\u3057\u306a\u3044\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\uff08\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\u3082\u306e\uff09\n<pre>{ &quot;errors&quot;: [ { &quot;msg&quot;: &quot;One or more entered emails not found&quot;, &quot;code&quot;: 400 } ] }<\/pre>\n<\/li>\n<li>\u4ed6\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u5c5e\u3057\u3066\u3044\u308b1\u3064\u4ee5\u4e0a\u306e\u30e1\u30fc\u30ebID\n<pre>{ &quot;errors&quot;: [ { &quot;msg&quot;: &quot;Emails &lt;&gt; not associated with your account&quot;, &quot;code&quot;: 400 } ] }<\/pre>\n<\/li>\n<\/ul>\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\u30d3\u30eb\u30c0\u30fc\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a5f\u80fd\u3092\u8ffd\u52a0\u307e\u305f\u306f\u524a\u9664\u3057\u3001\u65b0\u3057\u3044\u30dc\u30c3\u30c8\u3092\u4f5c\u6210\u3057\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 GET https:\/\/{{host}}\/api\/public\/useraccess \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 \u672c\u6587\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u8aac\u660e emailIds \u30a2\u30af\u30bb\u30b9\u6a29\u3092\u5909\u66f4\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u30e1\u30fc\u30ebID\u306e\u914d\u5217\uff08\u4f8b\uff1a[&quot;joe@kore.com&quot;, &quot;amy@xyz.com&quot;]\uff09 canCreateBot \u6307\u5b9a\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u304c\u3001\u30dc\u30c3\u30c8\u30d3\u30eb\u30c0\u30fc\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30dc\u30c3\u30c8\u3092\u4f5c\u6210\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002True\u307e\u305f\u306fFalse\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002 isDeveloper \u6307\u5b9a\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u304c\u30dc\u30c3\u30c8\u30d3\u30eb\u30c0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002True\u307e\u305f\u306fFalse\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002 hasDataTableAndViewAccess \u6307\u5b9a\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u304c\u30c6\u30fc\u30d6\u30eb\u3084\u30d3\u30e5\u30fc\u3092\u4f5c\u6210\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002True\u307e\u305f\u306fFalse\u3092\u8a2d\u5b9a\u3057\u307e\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 \\ https:\/\/{{host}}\/api\/public\/useraccess \\ -H &apos;Content-Type: application\/json&apos; \\ -H &apos;auth: YOUR_JWT_ACCESS_TOKEN&apos; \\ -d &apos;{ &quot;emailIds&quot;:[&quot;sample1@sampleemail.com&quot;], &quot;canCreateBot&quot;:true, &quot;isDeveloper&quot;:true, &quot;hasDataTableAndViewAccess&quot;: true }&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-29298","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\/29298","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=29298"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/29298\/revisions"}],"predecessor-version":[{"id":29299,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/29298\/revisions\/29299"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/media?parent=29298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/categories?post=29298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/tags?post=29298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}