{"id":41193,"date":"2022-04-21T05:58:40","date_gmt":"2022-04-21T04:58:40","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=41193"},"modified":"2022-04-21T05:59:00","modified_gmt":"2022-04-21T04:59:00","slug":"create-user-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/api-guide\/create-user-api\/?lang=ko","title":{"rendered":"\uc0ac\uc6a9\uc790 API \uc0dd\uc131"},"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>\uacc4\uc815\uc5d0 \uc0ac\uc6a9\uc790\ub97c \ucd94\uac00\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>POST<\/b><code>https:\/\/{{host}}\/api\/public\/users<\/code> <\/p>\n<p>\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>\uac01 \uc0ac\uc6a9\uc790\uc5d0 \ub300\ud55c \uc138\ubd80 \uc815\ubcf4 \ubc30\uc5f4\uc5d0\ub294 \uc0ac\uc6a9\uc790 \uc774\uba54\uc77c ID, \uc0ac\uc6a9\uc790 \uc774\ub984, \uc0ac\uc6a9\uc790\uac00 \uc18d\ud560 \uadf8\ub8f9, \ubd07\uc5d0 \ud560\ub2f9\ub420 \uc5ed\ud560 \ubc0f \uad8c\ud55c\uc774 \ud3ec\ud568\ub429\ub2c8\ub2e4<\/p>\n<table>\n<tbody>\n<tr>\n<td>UserInfo.emailId(\ud544\uc218)<\/td>\n<td>\ucd94\uac00\ud558\ub824\ub294 \uc0ac\uc6a9\uc790\uc758 \uc774\uba54\uc77c ID<\/td>\n<\/tr>\n<tr>\n<td>userInfo.orgUserId(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\ucd94\uac00\ud558\ub824\ub294 \uc0ac\uc6a9\uc790\uc758 \uc870\uc9c1\uc5d0\uc11c \ud560\ub2f9\ud55c \uc0ac\uc6a9\uc790 ID<\/td>\n<\/tr>\n<tr>\n<td>userInfo.firstName(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\ucd94\uac00\ud560 \uc0ac\uc6a9\uc790\uc758 \uc774\ub984<\/td>\n<\/tr>\n<tr>\n<td>userInfo.lastName(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\ucd94\uac00\ud560 \uc0ac\uc6a9\uc790\uc758 \uc131<\/td>\n<\/tr>\n<tr>\n<td>userInfo.companyName(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\ucd94\uac00\ud560 \uc0ac\uc6a9\uc790\uac00 \uc18d\ud55c \ud68c\uc0ac<\/td>\n<\/tr>\n<tr>\n<td>userInfo.dept(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\ucd94\uac00\ud560 \uc0ac\uc6a9\uc790\uac00 \uc18d\ud55c \ubd80\uc11c<\/td>\n<\/tr>\n<tr>\n<td>userInfo.companyContactPhone(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\ucd94\uac00\ud560 \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>\ucd94\uac00\ud560 \uc0ac\uc6a9\uc790\uc758 \ud68c\uc0ac \ubc88\ud638<\/td>\n<\/tr>\n<tr>\n<td>userInfo.street(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\ucd94\uac00\ud558\ub824\ub294 \uc0ac\uc6a9\uc790\uc758 \uc8fc\uc18c<\/td>\n<\/tr>\n<tr>\n<td>userInfo.suiteNo(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\ucd94\uac00\ud558\ub824\ub294 \uc0ac\uc6a9\uc790\uc758 \uac1d\uc2e4 \uc8fc\uc18c<\/td>\n<\/tr>\n<tr>\n<td>userInfo.city(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\ucd94\uac00\ud558\ub824\ub294 \uc0ac\uc6a9\uc790\uc758 \ub3c4\uc2dc \uc8fc\uc18c<\/td>\n<\/tr>\n<tr>\n<td>userInfo.zip(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\ucd94\uac00\ud558\ub824\ub294 \uc0ac\uc6a9\uc790\uc758 \uc6b0\ud3b8 \uc8fc\uc18c<\/td>\n<\/tr>\n<tr>\n<td>userInfo.state(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\ucd94\uac00\ud560 \uc0ac\uc6a9\uc790\uc758 \uc8fc \uc8fc\uc18c<\/td>\n<\/tr>\n<tr>\n<td>userInfo.country(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\ucd94\uac00\ud560 \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 \uc18d\ud574\uc57c \ud558\ub294 \uadf8\ub8f9 ID\uc758 \ubc30\uc5f4<\/td>\n<\/tr>\n<tr>\n<td>\uc5ed\ud560(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uc0ac\uc6a9\uc790\uac00 \uc5b4\ub5a4 \ubd07\uc5d0 \uc5b4\ub5a4 \uc5ed\ud560\uc744 \uc218\ud589\ud588\ub294\uc9c0 \uc54c \uc218 \uc788\ub294 roleId-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<\/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<\/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 <em>&quot;true&quot;<\/em>\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 <em>&quot;true&quot;<\/em>\uc785\ub2c8\ub2e4.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<tr>\n<td>sendEmail(\uc120\ud0dd \uc0ac\ud56d)<\/td>\n<td>\uacc4\uc815 \uc544\ub798 \uc0ac\uc6a9\uc790\ub97c \ud65c\uc131\ud654\ud558\uae30 \uc704\ud574 \ud65c\uc131\ud654 \ub9c1\ud06c\ub97c \ud3ec\ud568\ud55c \uc0ac\uc6a9\uc790\uc5d0\uac8c \uc774\uba54\uc77c\uc744 \ubcf4\ub0b4\uc57c \ud558\ub294\uc9c0\ub97c \uacb0\uc815\ud569\ub2c8\ub2e4. true \ub610\ub294 false\ub85c \uc124\uc815\ud569\ub2c8\ub2e4. \uae30\ubcf8\uac12\uc740 <em>&quot;true&quot;<\/em>\uc785\ub2c8\ub2e4.<\/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\/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\": \"deskkore1@gmail.com\",\r\n                \"orgUserId\": \"org assigned user id\",\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                \"e-06b41cdd-7678-5394-b958-40ca5662f502\"\r\n            ],\r\n            \"roles\": [\r\n                {\r\n                    \"roleId\": \"5d9d8db30d54920a8df1e68b\",\r\n                    \"botId\": \"st-b8525f88-6dd3-54a7-8a97-734ecb748733\"\r\n                },\r\n                {\r\n                    \"roleId\": \"5d9d920dabdc1e6e8ec99342\",\r\n                    \"botId\": \"st-16511425-15c5-5cdf-b652-a796db7d134b\"\r\n                },\r\n                {\r\n                    \"roleId\": \"5bbcb20c8bfd33db440ec1d1\"\r\n                },\r\n                {\r\n                    \"roleId\": \"5d9d8d930d54920a8df1e689\"\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            ],\r\n            \"canCreateBot\": true,\r\n            \"isDeveloper\": true\r\n        }\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>\uc131\uacf5 \uc0ac\ub840\uc758 \uacbd\uc6b0:\n<pre>{\r\n        \"msg\": \"Users are created Successfully\"\r\n    };<\/pre>\n<\/li>\n<li>\uc2e4\ud328 \uc0ac\ub840:\n<pre>{\r\n    \"failedUserDetails\": [\r\n        {\r\n            \"userInfo\": {\r\n                \"emailId\": \"deskkore1\",\r\n                \"firstName\": \"user1\",\r\n                \"status\": \"failure\",\r\n                \"reason\": {\r\n                    \"statusCode\": 400,\r\n                    \"status\": 400,\r\n                    \"customCode\": 400,\r\n                    \"errors\": [\r\n                        {\r\n                            \"msg\": \"INVALID_EMAIL\",\r\n                            \"code\": 400\r\n                        }\r\n                    ],\r\n                    \"_headers\": {},\r\n                    \"message\": \"INVALID_EMAIL\",\r\n                    \"name\": \"BadRequest\"\r\n                }\r\n            }\r\n        }\r\n]\r\n}\r\n<\/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":"\uacc4\uc815\uc5d0 \uc0ac\uc6a9\uc790\ub97c \ucd94\uac00\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. POSThttps:\/\/{{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 users \uac01...","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-41193","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\/41193","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=41193"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41193\/revisions"}],"predecessor-version":[{"id":41194,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41193\/revisions\/41194"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=41193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=41193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=41193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}