{"id":39442,"date":"2022-04-01T09:33:12","date_gmt":"2022-04-01T08:33:12","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=39442"},"modified":"2022-04-07T04:42:14","modified_gmt":"2022-04-07T03:42:14","slug":"data-update-api","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/api-guide\/data-update-api\/?lang=ja","title":{"rendered":"Data Update API"},"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>\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3059\u308b\u969b\u306b\u4f7f\u7528\u3002<\/p>\n<p class=\"note\">\u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001 DaaS\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u5b9a\u7fa9\u304b\u3089\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb\u3078\u306e\u8aad\u307f\u53d6\u308a\u304a\u3088\u3073\u66f8\u304d\u8fbc\u307f\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u30a2\u30d7\u30ea\u306b\u4e0e\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff08<a href=\"\/docs\/bots\/advanced-topics\/data-table\/#Assignments\" target=\"_blank\" rel=\"noopener noreferrer\">\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044<\/a>\uff09\u3002<\/p>\n<p><b>PUT<\/b> <span style=\"font-weight: 400\"><code>https:\/\/{{host}}\/api\/public\/tables\/{{tableName}}<\/code><\/span><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>Kore.ai\u30dc\u30c3\u30c8\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4fdd\u8b77\u3055\u308c\u305fAPI\u3092\u4f7f\u7528\u3057\u3066\u3001\u30dc\u30c3\u30c8\u958b\u767a\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<a href=\"\/docs\/bots\/api-guide\/apis\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u308c\u3089\u306eAPI\u306e\u4f7f\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u3092\u53c2\u7167\u304f\u3060\u3055\u3044<\/a>\u3002<\/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<thead>\n<tr>\n<th>\u30d1\u30e9\u30e1\u30fc\u30bf<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400\">host<\/span><\/td>\n<td><span style=\"font-weight: 400\">\u74b0\u5883URL\u3001\u4f8b\uff1a <code>https:\/\/bots.kore.ai<\/code><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">tableName<\/span><\/td>\n<td><span style=\"font-weight: 400\">\u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3059\u308b\u30c6\u30fc\u30d6\u30eb\u306e\u540d\u524d<\/span><\/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<thead>\n<tr>\n<th>\u30d1\u30e9\u30e1\u30fc\u30bf<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>query<\/td>\n<td>\n<p>\u66f4\u65b0\u3055\u308c\u308b\u884c\u3092\u66f4\u65b0\u3059\u308b\u30d5\u30a3\u30eb\u30bf\u30fc\u57fa\u6e96<\/p>\n<pre>&nbsp;\"query\":{\r\n  \"expressions\": [\r\n     {\"field\": \"&lt;col1_name&gt;\", \"operand\": \"=\/!=\/&lt;\/&gt;\", \"value\": \"&lt;value1&gt;\"},\r\n     {\"field\": \"&lt;col2_name&gt;\", \"operand\": \"=\/!=\/&lt;\/&gt;\", \"value\": \"&lt;value2&gt;\"}\r\n  ],\r\n  \"operator\": \"and\/or\"\r\n     }<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td>data<\/td>\n<td>\n<p>Object with the column_name: value pairing for the columns to be updated<\/p>\n<pre>\"data\": {\r\n        \"&lt;col1_name&gt;\": \"&lt;value1&gt;\",\r\n        \"&lt;col2_name&gt;\": \"&lt;value2&gt;\",\r\n   }<\/pre>\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\">\u8a8d\u8a3c<\/span><\/h3>\n<p>\u30d8\u30c3\u30c0\u30fc\u5185\u306eJWT\u3092\u542b\u3080API\u3092\u3001\u4ee5\u4e0b\u306e\u69cb\u6587\u3067\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\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\u306e\u30ea\u30af\u30a8\u30b9\u30c8<\/span><\/h3>\n<pre>curl -X PUT \\\r\n  http:\/\/{{host}}\/api\/public\/tables\/{{tableName}} \\\r\n  -H 'auth: {{<em>YOUR_JWT_ACCESS_TOKEN}}<\/em>' \\\r\n  -H 'content-type: application\/json' \\\r\n  -d '{\r\n      \"query\":{\r\n  \"expressions\": [\r\n          {\"field\": \"firstName\", \"operand\": \"=\", \"value\": \"Jane\"},\r\n    {\"field\": \"lastName\", \"operand\": \"=\", \"value\": \"Doe\"}\r\n    ],\r\n    \"operator\": \"and\"\r\n     },\r\n      \"data\": {\r\n        \"First_Name\": \"Jane\",\r\n        \"Last_Name\": \"Smith\",\r\n        \"Number\": 3453\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\">\u30b5\u30f3\u30d7\u30eb\u306e\u30ec\u30b9\u30dd\u30f3\u30b9<\/span><\/h3>\n<pre>{\r\n \"records\": [\r\n    {\r\n     \"_id\": \"5e7ef67172034b399ace6b03\",\r\n     \"First_Name\": \"Jane\",\r\n     \"Last_Name\": \"Smith\",\r\n     \"Gender\": \"Female\",\r\n     \"Number\": 3453,\r\n     \"Updated_On\": \"2020-03-28T07:51:32.502Z\",\r\n     \"Created_On\": \"2019-03-28T07:02:09.652Z\",\r\n     \"Updated_By\": \"st-98e05480-0257-5e35-b6d2-66a323834f9d\",\r\n     \"Created_By\": \"st-98e05480-0257-5e35-b6d2-66a323834f9d\",\r\n     \"sys_Id\": \"sys-545dae21-8675-5a95-9c1b-a223bc6f4bc8\"\r\n     }\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><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3059\u308b\u969b\u306b\u4f7f\u7528\u3002 \u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001 DaaS\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u5b9a\u7fa9\u304b\u3089\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb\u3078\u306e\u8aad\u307f\u53d6\u308a\u304a\u3088\u3073\u66f8\u304d\u8fbc\u307f\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u30a2\u30d7\u30ea\u306b\u4e0e\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff08\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\u3002 PUT https:\/\/{{host}}\/api\/public\/tables\/{{tableName}} Kore.ai\u30dc\u30c3\u30c8\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4fdd\u8b77\u3055\u308c\u305fAPI\u3092\u4f7f\u7528\u3057\u3066\u3001\u30dc\u30c3\u30c8\u958b\u767a\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306eAPI\u306e\u4f7f\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002 \u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u8aac\u660e host \u74b0\u5883URL\u3001\u4f8b\uff1a https:\/\/bots.kore.ai tableName \u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3059\u308b\u30c6\u30fc\u30d6\u30eb\u306e\u540d\u524d \u672c\u6587\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u8aac\u660e query \u66f4\u65b0\u3055\u308c\u308b\u884c\u3092\u66f4\u65b0\u3059\u308b\u30d5\u30a3\u30eb\u30bf\u30fc\u57fa\u6e96 &nbsp;\"query\":{ \"expressions\": [ {\"field\": \"&lt;col1_name&gt;\", \"operand\": \"=\/!=\/&lt;\/&gt;\", \"value\": \"&lt;value1&gt;\"}, {\"field\": \"&lt;col2_name&gt;\", \"operand\": \"=\/!=\/&lt;\/&gt;\", \"value\": \"&lt;value2&gt;\"} ], \"operator\": \"and\/or\" } data Object with the column_name: value pairing for the columns to be updated \"data\": { \"&lt;col1_name&gt;\": \"&lt;value1&gt;\",...","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-39442","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\/39442","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=39442"}],"version-history":[{"count":2,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/39442\/revisions"}],"predecessor-version":[{"id":39979,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/39442\/revisions\/39979"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=39442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=39442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=39442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}