{"id":30457,"date":"2021-08-24T12:03:57","date_gmt":"2021-08-24T11:03:57","guid":{"rendered":"https:\/\/multisite.korebots.com\/v9-0\/uncategorised-ja\/query-data-view-api\/"},"modified":"2021-08-24T12:10:13","modified_gmt":"2021-08-24T11:10:13","slug":"query-data-view-api","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/v9-0\/uncategorised-ja\/query-data-view-api\/","title":{"rendered":"\u30af\u30a8\u30ea\u30c7\u30fc\u30bf\uff08\u30d3\u30e5\u30fc\uff09API"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_grid cols_1 laptops-cols_inherit tablets-cols_inherit mobiles-cols_1 valign_top type_default stacking_default\"><div class=\"wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p>Used to get data from Table View.<\/p>\n<p class=\"note\">To use this API, the app needs to be given Read access to the Table View from the Data Definition in DaaS (<a href=\"\/docs\/bots\/advanced-topics\/data-table\/#Assignments\" target=\"_blank\" rel=\"noopener noreferrer\">see here for details<\/a>)<\/p>\n<p><b>POST<\/b> <span style=\"font-weight: 400;\"><code>https:\/\/{{host}}\/api\/public\/views\/{{viewName}}\/query?sys_limit={{limit_value}}&amp;sys_offset={{offset_value}}<\/code><\/span><\/p>\n<\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p>Kore.ai Bots Platform provides access to bot development using secured APIs. <a href=\"\/docs\/bots\/api-guide\/apis\/\" target=\"_blank\" rel=\"noopener noreferrer\">Refer here to learn more on how to use these APIs<\/a>.<\/p>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"Query_Parameters\"><\/span>Query Parameters<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Description<\/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;\">Environment URL, for example, <code>https:\/\/bots.kore.ai<\/code><\/span><\/td>\n<\/tr>\n<tr>\n<td>viewName<\/td>\n<td><span style=\"font-weight: 400;\">The table view form which to fetch data.<\/span><\/td>\n<\/tr>\n<tr>\n<td>sys_limit<\/td>\n<td><span style=\"font-weight: 400;\">The maximum number of records to be fetched.<\/span><\/td>\n<\/tr>\n<tr>\n<td>sys_offset<\/td>\n<td><span style=\"font-weight: 400;\">The number of records to be skipped from the beginning of the results dataset.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"%E6%9C%AC%E6%96%87%E3%83%91%E3%83%A9%E3%83%A1%E3%83%BC%E3%82%BF\"><\/span>\u672c\u6587\u30d1\u30e9\u30e1\u30fc\u30bf<span class=\"ez-toc-section-end\"><\/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>\u30af\u30a8\u30ea<\/td>\n<td>\u53d6\u5f97\u3055\u308c\u308b\u884c\u3092\u7279\u5b9a\u3059\u308b\u30d5\u30a3\u30eb\u30bf\u306e\u57fa\u6e96<\/p>\n<pre>&nbsp;&quot;query&quot;:{ &quot;expressions&quot;: [ {&quot;field&quot;: &quot;&lt;col1_name&gt;&quot;, &quot;operand&quot;: &quot;=\/!=\/&lt;\/&gt;&quot;, &quot;value&quot;: &quot;&lt;value1&gt;&quot;}, {&quot;field&quot;: &quot;&lt;col2_name&gt;&quot;, &quot;operand&quot;: &quot;=\/!=\/&lt;\/&gt;&quot;, &quot;value&quot;: &quot;&lt;value2&gt;&quot;} ], &quot;operator&quot;: &quot;and\/or&quot; }<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"%E8%AA%8D%E8%A8%BC\"><\/span>\u8a8d\u8a3c<span class=\"ez-toc-section-end\"><\/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<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"%E5%BF%9C%E7%AD%94%E3%81%AE%E3%82%B3%E3%83%B3%E3%83%86%E3%83%B3%E3%83%84%E3%82%BF%E3%82%A4%E3%83%97\"><\/span>\u5fdc\u7b54\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>application\/json<\/code><\/p>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%AA%E3%82%AF%E3%82%A8%E3%82%B9%E3%83%88\"><\/span>\u30b5\u30f3\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre>curl -X POST \\ http:\/\/{{host}}\/api\/public\/views\/{{viewName}}\/query?sys_limit=4&amp;sys_offset=0 \\ -H &apos;auth: {{<em>YOUR_JWT_ACCESS_TOKEN}}<\/em>&apos; \\ -H &apos;content-type: application\/json&apos; \\ -d &apos;{ &quot;query&quot;:{ &quot;expressions&quot;: [ {&quot;field&quot;: &quot;firstName&quot;, &quot;operand&quot;: &quot;=&quot;, &quot;value&quot;: &quot;Jane&quot;}, {&quot;field&quot;: &quot;lastName&quot;, &quot;operand&quot;: &quot;=&quot;, &quot;value&quot;: &quot;Doe&quot;} ], &quot;operator&quot;: &quot;or&quot; } }&apos;<\/pre>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E5%BF%9C%E7%AD%94\"><\/span>\u30b5\u30f3\u30d7\u30eb\u5fdc\u7b54<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre>{ &quot;metaInfo&quot;: [ { &quot;name&quot;: &quot;gender&quot;, &quot;type&quot;: &quot;string&quot; }, { &quot;name&quot;: &quot;lastName&quot;, &quot;type&quot;: &quot;string&quot; } ], &quot;queryResult&quot;: [ { &quot;age&quot;: male, &quot;last_name&quot;:tony, } ] }<\/pre>\n<\/div><\/div><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><\/section>\n","protected":false},"excerpt":{"rendered":"Used to get data from Table View. To use this API, the app needs to be given Read access to the Table View from the Data Definition in DaaS (see here for details) POST https:\/\/{{host}}\/api\/public\/views\/{{viewName}}\/query?sys_limit={{limit_value}}&amp;sys_offset={{offset_value}} Kore.ai Bots Platform provides access to bot development using secured APIs. Refer here to learn more on how to use...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/30457"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/comments?post=30457"}],"version-history":[{"count":3,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/30457\/revisions"}],"predecessor-version":[{"id":30663,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/30457\/revisions\/30663"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/media?parent=30457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/categories?post=30457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/tags?post=30457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}