{"id":41280,"date":"2022-04-21T09:03:38","date_gmt":"2022-04-21T08:03:38","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=41280"},"modified":"2022-04-21T09:03:56","modified_gmt":"2022-04-21T08:03:56","slug":"update-user-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/api-guide\/update-user-api\/?lang=ko","title":{"rendered":"\uc0ac\uc6a9\uc790 API \uc5c5\ub370\uc774\ud2b8"},"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>\uc0ac\uc6a9\uc790 \uc138\ubd80 \uc815\ubcf4\ub97c \uc5c5\ub370\uc774\ud2b8\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\uc5d0 <em>\ubcf4\uc548 \ubc0f \uc81c\uc5b4<\/em> \uc544\ub798\uc758 <em>\uc0ac\uc6a9\uc790 \uad00\ub9ac<\/em>\uc758 \uad00\ub9ac\uc790 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n<p><b>PUT <\/b><code>https:\/\/{{host}}\/api\/public\/users<\/code> \ucc38\uace0 \uc0ac\ud56d: \uc774 \uae30\ub2a5\uc740 \ud50c\ub7ab\ud3fc\uc758 v7.1\uc5d0 \ub3c4\uc785\ub418\uc5c8\uc2b5\ub2c8\ub2e4.<\/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>\uc124\uba85<\/th>\n<\/tr>\n<tr>\n<td>host<\/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>\uc124\uba85<\/th>\n<\/tr>\n<tr>\n<td>users<\/td>\n<td>\n<p>\uc5c5\ub370\uc774\ud2b8\ud574\uc57c \ud558\ub294 \uac01 \uc0ac\uc6a9\uc790\uc5d0 \ub300\ud55c \uc138\ubd80 \uc815\ubcf4 \ubc30\uc5f4<\/p>\n<table>\n<tbody>\n<tr>\n<td>userInfo.emailId or userInfo.<span style=\"font-weight: 400\">orgUserId<\/span> (\ud544\uc218)<\/td>\n<td>\uc5c5\ub370\uc774\ud2b8 \uc911\uc778 \uc0ac\uc6a9\uc790\uc758 \uc774\uba54\uc77c ID \ub610\ub294 \uc870\uc9c1 \uc0ac\uc6a9\uc790 ID<\/td>\n<\/tr>\n<tr>\n<td>userInfo.firstName(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc5c5\ub370\uc774\ud2b8\ud574\uc57c \ud560 \uacbd\uc6b0 \uc0ac\uc6a9\uc790\uc758 \uc774\ub984<\/td>\n<\/tr>\n<tr>\n<td>userInfo.lastName(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc5c5\ub370\uc774\ud2b8\ud574\uc57c \ud560 \uacbd\uc6b0 \uc0ac\uc6a9\uc790\uc758 \uc131<\/td>\n<\/tr>\n<tr>\n<td>userInfo.companyName(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc5c5\ub370\uc774\ud2b8\ud574\uc57c \ud560 \uacbd\uc6b0 \uc0ac\uc6a9\uc790\uc758 \ud68c\uc0ac<\/td>\n<\/tr>\n<tr>\n<td>userInfo.dept(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc5c5\ub370\uc774\ud2b8\ud574\uc57c \ud560 \uacbd\uc6b0 \uc0ac\uc6a9\uc790\uc758 \ubd80\uc11c<\/td>\n<\/tr>\n<tr>\n<td>userInfo.companyContactPhone(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc5c5\ub370\uc774\ud2b8\ud574\uc57c \ud560 \uacbd\uc6b0 \uc0ac\uc6a9\uc790\uac00 \uc18d\ud55c \ud68c\uc0ac\uc758 \uc5f0\ub77d\ucc98<\/td>\n<\/tr>\n<tr>\n<td>userInfo.worknumber(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc5c5\ub370\uc774\ud2b8\uac00 \ud544\uc694\ud55c \uacbd\uc6b0 \uc0ac\uc6a9\uc790\uc758 \ud68c\uc0ac \ubc88\ud638<\/td>\n<\/tr>\n<tr>\n<td>userInfo.street(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc5c5\ub370\uc774\ud2b8\ud574\uc57c \ud558\ub294 \uacbd\uc6b0 \uc0ac\uc6a9\uc790\uc758 \uc8fc\uc18c<\/td>\n<\/tr>\n<tr>\n<td>userInfo.suiteNo(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc5c5\ub370\uc774\ud2b8\uac00 \ud544\uc694\ud55c \uacbd\uc6b0 \uac1d\uc2e4 \uc8fc\uc18c<\/td>\n<\/tr>\n<tr>\n<td>userInfo.city(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc5c5\ub370\uc774\ud2b8\uac00 \ud544\uc694\ud55c \uacbd\uc6b0 \uc0ac\uc6a9\uc790\uc758 \ub3c4\uc2dc \uc8fc\uc18c<\/td>\n<\/tr>\n<tr>\n<td>userInfo.zip(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc5c5\ub370\uc774\ud2b8\ud574\uc57c \ud560 \uacbd\uc6b0 \uc0ac\uc6a9\uc790\uc758 \uc6b0\ud3b8 \uc8fc\uc18c<\/td>\n<\/tr>\n<tr>\n<td>userInfo.state(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc5c5\ub370\uc774\ud2b8\ud574\uc57c \ud560 \uacbd\uc6b0 \uc0ac\uc6a9\uc790\uc758 \uc8fc \uc8fc\uc18c<\/td>\n<\/tr>\n<tr>\n<td>userInfo.country(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc5c5\ub370\uc774\ud2b8\ud574\uc57c \ud558\ub294 \uacbd\uc6b0 \uc0ac\uc6a9\uc790\uc758 \uad6d\uac00 \uc8fc\uc18c<\/td>\n<\/tr>\n<tr>\n<td>groups(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc0ac\uc6a9\uc790\uac00 <em>addTo<\/em> \ub610\ub294 <em>removeFrom<\/em> \uc774\uc5b4\uc57c \ud558\ub294 \uadf8\ub8f9 ID\uc758 \ubc30\uc5f4<\/td>\n<\/tr>\n<tr>\n<td>roles(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc0ac\uc6a9\uc790\uac00 <em>addTo<\/em> \ub610\ub294 <em>removeFrom<\/em> \uc774\uc5b4\uc57c \ud558\ub294 roleId &#8211; botId \uc870\ud569\uc758 \ubc30\uc5f4<\/td>\n<\/tr>\n<tr>\n<td>assignBotTasks(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\n<p>\uc0ac\uc6a9\uc790\uc5d0\uac8c \ud560\ub2f9\ud574\uc57c \ud558\ub294 \ubd07\uc758 \ubc30\uc5f4\uc785\ub2c8\ub2e4. \ub098\ud0c0\ub098\uc9c0 \uc54a\uc73c\uba74 \ud604\uc7ac \ubc30\uc815\uc774 \uc720\uc9c0\ub429\ub2c8\ub2e4.<\/p>\n<table>\n<tbody>\n<tr>\n<td>botId<\/td>\n<td>\uc0ac\uc6a9\uc790\uc5d0\uac8c \ud560\ub2f9\ud560 \ubd07 ID\uc785\ub2c8\ub2e4. \uc9c0\uc815\ub418\uc9c0 \uc54a\uc740 \uacbd\uc6b0 \uc774\uc804\uc5d0 \ud560\ub2f9\ub41c \ubaa8\ub4e0 \ubd07\uc774 \ud560\ub2f9\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc989, &quot;botId&quot; \ud56d\ubaa9\uc774 \uc5c6\ub294 &quot;assignBotTasks&quot; \ud56d\ubaa9\uc73c\ub85c \uc0ac\uc6a9\uc790\uc5d0 \ub300\ud55c \ubd07 \uc791\uc5c5 \ud560\ub2f9\uc744 \ucde8\uc18c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>dialogs<\/td>\n<td>\uc0ac\uc6a9\uc790\uc5d0\uac8c \ud560\ub2f9\ud574\uc57c \ud558\ub294 \ubd07 \ub0b4 \ub300\ud654 \uc791\uc5c5 ID\uc758 \ubc30\uc5f4\uc785\ub2c8\ub2e4. \uc9c0\uc815\ud558\uc9c0 \uc54a\uc73c\uba74 \ubaa8\ub4e0 \ub300\ud654 \uc0c1\uc790 \uc791\uc5c5\uc774 \ud560\ub2f9\ub429\ub2c8\ub2e4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<tr>\n<td>canCreateBot(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc9c0\uc815\ub41c \uc0ac\uc6a9\uc790\uac00 \ubd07 \ube4c\ub354 \uacc4\uc815\uc5d0 \ubd07\uc744 \uc0dd\uc131\ud560 \uc218 \uc788\ub294\uc9c0\ub97c \uacb0\uc815\ud569\ub2c8\ub2e4. true \ub610\ub294 false\ub85c \uc124\uc815\ud569\ub2c8\ub2e4. \uae30\ubcf8\uac12\uc740 &quot;<em>true<\/em>&quot;\uc785\ub2c8\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>isDeveloper(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc9c0\uc815\ub41c \uc0ac\uc6a9\uc790\uac00 \ubd07 \ube4c\ub354\uc5d0 \uc561\uc138\uc2a4\ud560 \uc218 \uc788\ub294\uc9c0\ub97c \uacb0\uc815\ud569\ub2c8\ub2e4. true \ub610\ub294 false\ub85c \uc124\uc815\ud569\ub2c8\ub2e4. \uae30\ubcf8\uac12\uc740 &quot;<em>true<\/em>&quot;\uc785\ub2c8\ub2e4.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\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-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 PUT \\\r\n  https:\/\/{{host}}\/api\/public\/users \\\r\n  -H 'Content-Type: application\/json' \\\r\n  -H 'auth: YOUR_JWT_ACCESS_TOKEN' \\\r\n  -d '{\r\n    \"users\": [\r\n        {\r\n            \"userInfo\": {\r\n                \"emailId\": \"publicuser2@gmail.com\" \/\/ or \"<span style=\"font-weight: 400\">orgUserId<\/span>\": &lt;<span style=\"font-weight: 400\">orgUserId&gt;<\/span>,\r\n                \"firstName\": \"user1\",\r\n                \"lastName\":\"user1\",\r\n                \"companyName\":\"company_name\",\r\n                \"dept\":\"dept\",\r\n                \"companyContactPhone\":\"12334444\",\r\n                \"worknumber\":\"321\",\r\n                \"street\":\"street\",\r\n                \"suiteNo\":\"suite\",\r\n                \"city\":\"city\",\r\n                \"zip\":\"123123\",\r\n                \"state\":\"state\",\r\n                \"country\":\"country\"\r\n            },\r\n            \"groups\": {\r\n                \"addTo\": [\r\n                    \"e-f9c09c08-9310-52ff-b672-570ec7325215\"\r\n                ]\r\n            },\r\n            \"roles\": {\r\n                \"addTo\": [\r\n                    {\r\n                        \"roleId\": \"5d9d8db3x0d54920a8df1e68b\",\r\n                        \"botId\": \"st-b8525f88-6dd3-54a7-8a97-734ecb748733\"\r\n                    }\r\n                ],\r\n                \"removeFrom\": [\r\n                    {\r\n                        \"roleId\": \"5d9d920dabdc1e6e8ec99342\",\r\n                        \"botId\": \"st-16511425-15c5-5cdf-b652-a796db7d134b\"\r\n                    }\r\n                ]\r\n            },\r\n            \"assignBotTasks\": [\r\n               {\r\n                  \"botId\": \"st-xxx-xx-xxx-xxx-xxxx\",\r\n                  \"dialogs\": [\"dg-xxxx-xx-xx-xx-xxxx\"]\r\n                 }\r\n      \t       ],\r\n            \"canCreateBot\": true,\r\n            \"isDeveloper\": true\r\n        }\r\n\t]\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>\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<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>\uc131\uacf5 \uc0ac\ub840\uc758 \uacbd\uc6b0:\n<pre>{\r\n        \"msg\": \"Users are updated Successfully\"\r\n    };<\/pre>\n<\/li>\n<\/ul>\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":"\uc0ac\uc6a9\uc790 \uc138\ubd80 \uc815\ubcf4\ub97c \uc5c5\ub370\uc774\ud2b8\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\uc5d0 \ubcf4\uc548 \ubc0f \uc81c\uc5b4 \uc544\ub798\uc758 \uc0ac\uc6a9\uc790 \uad00\ub9ac\uc758 \uad00\ub9ac\uc790 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. PUT https:\/\/{{host}}\/api\/public\/users \ucc38\uace0 \uc0ac\ud56d: \uc774 \uae30\ub2a5\uc740 \ud50c\ub7ab\ud3fc\uc758 v7.1\uc5d0 \ub3c4\uc785\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \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 \ub9e4\uac1c \ubcc0\uc218 \uc124\uba85...","protected":false},"author":22,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-41280","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\/41280","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=41280"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41280\/revisions"}],"predecessor-version":[{"id":41281,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41280\/revisions\/41281"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=41280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=41280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=41280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}