{"componentChunkName":"component---src-templates-simple-markdown-js","path":"/process-intelligence-apis/knowledge-model-api/get-started/field-selection/","matchPath":"","result":{"data":{"markdownRemark":{"html":"<h1 style=\"position:relative;\"><a href=\"#field-selection\" aria-label=\"field selection permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"field-selection\"></div>Field Selection</h1>\n<p>The <code class=\"language-text\">/data</code> endpoint allows API consumers to retrieve data for the following record objects:</p>\n<ul>\n<li>\nAttributes\n</li>\n<li>\nAugmented Attributes\nIn order to do so, the ids of the objects to be retrieved must be listed as part of the \n<code class=\"language-text\">fields</code>\n query parameter:\n</li>\n<li>\n<code class=\"language-text\">fields:</code>\n A comma-separated list of attribute, augmented attribute or flag ids for a given knowledge model record.\n</li>\n</ul>\n<p>Note that:</p>\n<ul>\n<li>\n<code class=\"language-text\">fields</code>\n is a mandatory query parameter.\n</li>\n<li>\nThe maximum number of objects per record that can be retrieved through the API Data endpoint is 200.\n</li>\n<li>\n<code class=\"language-text\">fields</code>\n query parameter is case-sensitive. The object ids must match the object ids returned by the record.\nschema endpoint (\n<code class=\"language-text\">/knowledge-models/{km_id}/records/{record_id}</code>\n).\n</li>\n<li>\nEach object id must be separated by a comma or alternatively, use the \n<code class=\"language-text\">fields</code>\n query parameter multiple times.\n</li>\n</ul>\n<p>Example:</p>\n<div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"95342879572710240000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`fields=ACTIVE,Category,APPROVAL or fields=ACTIVE&fields=Category&fields=APPROVAL `, `95342879572710240000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-95342879572710240000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">fields=ACTIVE,Category,APPROVAL or fields=ACTIVE&amp;fields=Category&amp;fields=APPROVAL </code></pre></div>\n      </div>\n<h1 style=\"position:relative;\"><a href=\"#distinct-data-rows\" aria-label=\"distinct data rows permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"distinct-data-rows\"></div>Distinct data rows</h1>\n<p>If your request returns duplicate rows, then the way to deduplicate is by using the parameter <code class=\"language-text\">options=distinct</code></p>\n<blockquote>\n<p>:warning: <strong>If a <code class=\"language-text\">date</code> field is included in the request</strong>: Please make sure to use <code class=\"language-text\">ROUND_DAY</code> in the PQL definition of the attribute in the Knowledge Model record !</p>\n</blockquote>","headings":[{"value":"Field Selection","depth":1},{"value":"Distinct data rows","depth":1}]},"contentItem":{"data":{"lastModified":"2025-10-07T15:06:43.000Z","enableToc":null,"disableLastModified":null,"tocMaxDepth":null,"requestLogin":false}},"siteConfig":{"enableToc":false,"disableLastModified":false,"tocMaxDepth":4}},"pageContext":{"matchPath":"","id":"a7ab7dd8-c047-5aa0-a155-5e64956c7d5f__redocly content/process-intelligence-apis/knowledge-model-api/get-started/field-selection/","seo":{"title":"Field Selection","description":null,"image":"","keywords":null,"jsonLd":null,"lang":null,"siteUrl":null},"pageId":"process-intelligence-apis/knowledge-model-api/get-started/field-selection.md","pageBaseUrl":"/process-intelligence-apis/knowledge-model-api/get-started/field-selection","type":"markdown","toc":{"enable":true,"maxDepth":4,"headings":[{"depth":1,"value":"Field Selection","id":"field-selection"},{"depth":1,"value":"Distinct data rows","id":"distinct-data-rows"}]},"data":{"title":""},"catalogInfo":null,"link":"/process-intelligence-apis/knowledge-model-api/get-started/field-selection/","sidebarName":"","isLanding":false,"showPrevButton":null,"showNextButton":null,"apiVersions":null,"apiVersionId":null,"isDefaultApiVersion":null}},"staticQueryHashes":["1123603147","1302185487","1344209882","1398840060","1520077861","1975142765","2667623876","2950305614","3240152602","3743992808","561138138"]}