The provided metadata is shallow-merged into the existing chunk_metadata.
Move params (parent_path_part_id, prev_sibling_path_id, move_to_head)
allow reparenting or reordering the chunk within the same document version.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Knowledge Stack","description":"Documentation for Knowledge Stack — the foundational data layer for enterprise AI.","colors":{"primary":"#22c55e","light":"#4ade80","dark":"#16a34a"},"logo":{"light":"https://mintcdn.com/knowledgestack/98UlasllyAOneaJk/logo/knowledge-stack.png?fit=max\u0026auto=format\u0026n=98UlasllyAOneaJk\u0026q=85\u0026s=9211571a1e1a7a0f1220ff703b506194","dark":"https://mintcdn.com/knowledgestack/98UlasllyAOneaJk/logo/knowledge-stack.png?fit=max\u0026auto=format\u0026n=98UlasllyAOneaJk\u0026q=85\u0026s=9211571a1e1a7a0f1220ff703b506194"},"favicon":"https://mintlify.s3.us-west-1.amazonaws.com/knowledgestack/favicon.svg","background":{"decoration":"grid","color":{"light":"#f4fbf6","dark":"#070f0a"}},"navbar":{"links":[{"href":"https://www.knowledgestack.ai","label":"Website"}],"primary":{"type":"button","label":"Book a demo","href":"https://www.knowledgestack.ai/book-demo"}},"footer":{"socials":{"github":"https://github.com/knowledgestack","x":"https://x.com/knowledgestack","discord":"https://discord.gg/McHmxUeS"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"knowledgestack","hasAudioNarration":false,"actualSubdomain":"knowledgestack","customDomains":["docs.knowledgestack.ai"],"gitSource":{"type":"github","owner":"knowledgestack","repo":"ks-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6af55a9e5cb7f3a63d47ea29","clientVersion":"0.0.4117","searchFilterCounts":[{"language":"default","tag":"API Reference","count":137},{"language":"default","tag":"Documentation","count":54},{"language":"default","tag":"tenant-groups","count":13},{"language":"default","tag":"auth","count":12},{"language":"default","tag":"tenants","count":12},{"language":"default","tag":"Operations","count":10},{"language":"default","tag":"chunks","count":9},{"language":"default","tag":"Ingestion Pipeline","count":8},{"language":"default","tag":"document-versions","count":8},{"language":"default","tag":"folders","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/chunks/update-chunk-metadata-handler","slug":"/api-reference/chunks/update-chunk-metadata-handler","pageMetadata":{"title":"Update Chunk Metadata Handler","description":"Update chunk metadata and/or move the chunk.\n\nThe provided metadata is shallow-merged into the existing chunk_metadata.\nMove params (parent_path_part_id, prev_sibling_path_id, move_to_head)\nallow reparenting or reordering the chunk within the same document version.","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/chunks/{chunk_id}","href":"/api-reference/chunks/update-chunk-metadata-handler","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Update chunk metadata and/or move the chunk.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"The provided metadata is shallow-merged into the existing chunk_metadata.\\nMove params (parent_path_part_id, prev_sibling_path_id, move_to_head)\\nallow reparenting or reordering the chunk within the same document version.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update Chunk Metadata Handler","description":"Update chunk metadata and/or move the chunk.\n\nThe provided metadata is shallow-merged into the existing chunk_metadata.\nMove params (parent_path_part_id, prev_sibling_path_id, move_to_head)\nallow reparenting or reordering the chunk within the same document version.","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/chunks/{chunk_id}","href":"/api-reference/chunks/update-chunk-metadata-handler","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["chunks"],"summary":"Update Chunk Metadata Handler","description":"Update chunk metadata and/or move the chunk.\n\nThe provided metadata is shallow-merged into the existing chunk_metadata.\nMove params (parent_path_part_id, prev_sibling_path_id, move_to_head)\nallow reparenting or reordering the chunk within the same document version.","operationId":"update_chunk_metadata","parameters":["60656578-ffbe-4ab3-b5d6-aa9a3c784dea","8c422c35-6440-45a2-950c-08d50096b93d","94861e3d-e914-4921-9df8-b85e54a6eb3e"],"requestBody":"488c2368-b4e3-494a-944e-0c4fe51a0228","responses":{"200":"6e09232f-bae5-4efa-85e4-0a567b03618b","422":"90b33986-b55f-4e19-bee9-ef19f177edce"},"method":"patch","type":"path","servers":["e0a2edb2-3da4-4e31-9b5c-776141290ce0"],"security":[],"path":"/v1/chunks/{chunk_id}","baseUrlOptions":["http://localhost:8000"],"title":"Update Chunk Metadata Handler","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"60656578-ffbe-4ab3-b5d6-aa9a3c784dea":{"name":"chunk_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chunk Id","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"}},"8c422c35-6440-45a2-950c-08d50096b93d":{"name":"authorization","in":"header","required":false,"schema":{"oneOf":[{"type":"string","title":"Authorization","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"Authorization","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"}},"94861e3d-e914-4921-9df8-b85e54a6eb3e":{"name":"ks_uat","in":"cookie","required":false,"schema":{"oneOf":[{"type":"string","title":"Ks Uat","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"Ks Uat","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"chunk_metadata":{"oneOf":[{"properties":{"polygons":{"items":{"properties":{"page":{"type":"integer","title":"Page","description":"The page number of the source document where the polygon is located.","isRequired":true,"uniqueKey":"chunk_metadata.oneOf.0.polygons.items.[INDEX].page","typeLabel":"integer"},"polygon":{"properties":{"x":{"type":"integer","title":"X","description":"The x-coordinate of the top-left corner of the bounding box.","isRequired":true,"uniqueKey":"chunk_metadata.oneOf.0.polygons.items.[INDEX].polygon.x","typeLabel":"integer"},"y":{"type":"integer","title":"Y","description":"The y-coordinate of the top-left corner of the bounding box.","isRequired":true,"uniqueKey":"chunk_metadata.oneOf.0.polygons.items.[INDEX].polygon.y","typeLabel":"integer"},"width":{"type":"integer","title":"Width","description":"The width of the bounding box.","isRequired":true,"uniqueKey":"chunk_metadata.oneOf.0.polygons.items.[INDEX].polygon.width","typeLabel":"integer"},"height":{"type":"integer","title":"Height","description":"The height of the bounding box.","isRequired":true,"uniqueKey":"chunk_metadata.oneOf.0.polygons.items.[INDEX].polygon.height","typeLabel":"integer"}},"type":"object","required":["x","y","width","height"],"title":"Polygon","description":"The bounding box of the polygon.","isRequired":true,"uniqueKey":"chunk_metadata.oneOf.0.polygons.items.[INDEX].polygon","typeLabel":"Polygon · object"}},"type":"object","required":["page","polygon"],"title":"PolygonReference","description":"Reference to a polygon on a specific page.","uniqueKey":"chunk_metadata.oneOf.0.polygons.items.[INDEX]","typeLabel":"PolygonReference · object"},"type":"array","title":"Polygons","description":"List of bounding boxes in the source document for the chunk, potentially from multiple areas of multiple pages.","uniqueKey":"chunk_metadata.oneOf.0.polygons","typeLabel":"PolygonReference · object[]"},"s3_urls":{"items":{"type":"string","uniqueKey":"chunk_metadata.oneOf.0.s3_urls.items.[INDEX]","typeLabel":"string"},"type":"array","title":"S3 Urls","description":"Ordered s3:// URIs to visual assets for this chunk. Single-element for standard IMAGE/TABLE/HTML chunks, multi-element for multi-page single-chunk ingestion.","uniqueKey":"chunk_metadata.oneOf.0.s3_urls","typeLabel":"string[]"},"summary":{"oneOf":[{"type":"string","title":"Summary","description":"LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text.","uniqueKey":"chunk_metadata.oneOf.0.summary.oneOf.0","typeLabel":"string"},{"type":"null","title":"Summary","description":"LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text.","uniqueKey":"chunk_metadata.oneOf.0.summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.oneOf.0.summary","typeLabel":"string | null"},"extracted_text_s3_uri":{"oneOf":[{"type":"string","title":"Extracted Text S3 Uri","description":"S3 URI to extracted PDF text used for LLM grounding during enrichment","uniqueKey":"chunk_metadata.oneOf.0.extracted_text_s3_uri.oneOf.0","typeLabel":"string"},{"type":"null","title":"Extracted Text S3 Uri","description":"S3 URI to extracted PDF text used for LLM grounding during enrichment","uniqueKey":"chunk_metadata.oneOf.0.extracted_text_s3_uri.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.oneOf.0.extracted_text_s3_uri","typeLabel":"string | null"},"secondary_taxonomy":{"oneOf":[{"type":"string","enum":["picture","flowchart"],"title":"ImageTaxonomy","description":"Sub-classification within a primary chunk type. For IMAGE chunks: 'flowchart' (Mermaid extraction) or 'picture' (image description). None when not applicable. Will expand to cover TABLE sub-types in the future.","uniqueKey":"chunk_metadata.oneOf.0.secondary_taxonomy.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["picture","flowchart"],"title":"ImageTaxonomy","description":"Sub-classification within a primary chunk type. For IMAGE chunks: 'flowchart' (Mermaid extraction) or 'picture' (image description). None when not applicable. Will expand to cover TABLE sub-types in the future.","uniqueKey":"chunk_metadata.oneOf.0.secondary_taxonomy.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.oneOf.0.secondary_taxonomy","typeLabel":"enum\u003cstring> | null"},"sheet_name":{"oneOf":[{"type":"string","title":"Sheet Name","description":"Worksheet name this chunk was extracted from (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.sheet_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Sheet Name","description":"Worksheet name this chunk was extracted from (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.sheet_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.oneOf.0.sheet_name","typeLabel":"string | null"},"block_type":{"oneOf":[{"type":"string","title":"Block Type","description":"XLSXParser block type (e.g. table, calculation_block, chart_anchor)","uniqueKey":"chunk_metadata.oneOf.0.block_type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Block Type","description":"XLSXParser block type (e.g. table, calculation_block, chart_anchor)","uniqueKey":"chunk_metadata.oneOf.0.block_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.oneOf.0.block_type","typeLabel":"string | null"},"source_uri":{"oneOf":[{"type":"string","title":"Source Uri","description":"Cell range URI reference in the source workbook (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.source_uri.oneOf.0","typeLabel":"string"},{"type":"null","title":"Source Uri","description":"Cell range URI reference in the source workbook (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.source_uri.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.oneOf.0.source_uri","typeLabel":"string | null"},"enriched_html":{"oneOf":[{"type":"string","title":"Enriched Html","description":"Rendered HTML for non-table XLSX chunks (tables use render_html as content)","uniqueKey":"chunk_metadata.oneOf.0.enriched_html.oneOf.0","typeLabel":"string"},{"type":"null","title":"Enriched Html","description":"Rendered HTML for non-table XLSX chunks (tables use render_html as content)","uniqueKey":"chunk_metadata.oneOf.0.enriched_html.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.oneOf.0.enriched_html","typeLabel":"string | null"},"cell_range":{"oneOf":[{"type":"string","title":"Cell Range","description":"Cell address range, e.g. 'A1:D10' (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.cell_range.oneOf.0","typeLabel":"string"},{"type":"null","title":"Cell Range","description":"Cell address range, e.g. 'A1:D10' (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.cell_range.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.oneOf.0.cell_range","typeLabel":"string | null"},"dependency_summary":{"oneOf":[{"additionalProperties":true,"type":"object","title":"Dependency Summary","description":"Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.dependency_summary.oneOf.0","typeLabel":"Dependency Summary · object"},{"additionalProperties":true,"type":"null","title":"Dependency Summary","description":"Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.dependency_summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.oneOf.0.dependency_summary","typeLabel":"Dependency Summary · object | null"},"formulas":{"oneOf":[{"items":{"additionalProperties":{"type":"string","uniqueKey":"chunk_metadata.oneOf.0.formulas.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"chunk_metadata.oneOf.0.formulas.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","title":"Formulas","description":"Formula cells in this chunk as [{address, formula, value}] (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.formulas.oneOf.0","typeLabel":"Formulas · object[]"},{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"null","title":"Formulas","description":"Formula cells in this chunk as [{address, formula, value}] (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.formulas.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.oneOf.0.formulas","typeLabel":"Formulas · object[] | null"},"key_cells":{"oneOf":[{"items":{"additionalProperties":true,"type":"object","uniqueKey":"chunk_metadata.oneOf.0.key_cells.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","title":"Key Cells","description":"Notable output/header cells for quick identification (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.key_cells.oneOf.0","typeLabel":"Key Cells · object[]"},{"items":{"additionalProperties":true,"type":"object"},"type":"null","title":"Key Cells","description":"Notable output/header cells for quick identification (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.key_cells.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.oneOf.0.key_cells","typeLabel":"Key Cells · object[] | null"},"named_ranges":{"oneOf":[{"items":{"additionalProperties":true,"type":"object","uniqueKey":"chunk_metadata.oneOf.0.named_ranges.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","title":"Named Ranges","description":"Named ranges overlapping this chunk (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.named_ranges.oneOf.0","typeLabel":"Named Ranges · object[]"},{"items":{"additionalProperties":true,"type":"object"},"type":"null","title":"Named Ranges","description":"Named ranges overlapping this chunk (XLSX only)","uniqueKey":"chunk_metadata.oneOf.0.named_ranges.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.oneOf.0.named_ranges","typeLabel":"Named Ranges · object[] | null"}},"type":"object","title":"ChunkMetadata","description":"Metadata to merge into existing chunk_metadata (optional)","uniqueKey":"chunk_metadata.oneOf.0","typeLabel":"ChunkMetadata · object"},{"properties":{"polygons":{"items":{"properties":{"page":{"type":"integer","title":"Page","description":"The page number of the source document where the polygon is located."},"polygon":{"properties":{"x":{"type":"integer","title":"X","description":"The x-coordinate of the top-left corner of the bounding box."},"y":{"type":"integer","title":"Y","description":"The y-coordinate of the top-left corner of the bounding box."},"width":{"type":"integer","title":"Width","description":"The width of the bounding box."},"height":{"type":"integer","title":"Height","description":"The height of the bounding box."}},"type":"object","required":["x","y","width","height"],"title":"Polygon","description":"The bounding box of the polygon."}},"type":"object","required":["page","polygon"],"title":"PolygonReference","description":"Reference to a polygon on a specific page."},"type":"array","title":"Polygons","description":"List of bounding boxes in the source document for the chunk, potentially from multiple areas of multiple pages."},"s3_urls":{"items":{"type":"string"},"type":"array","title":"S3 Urls","description":"Ordered s3:// URIs to visual assets for this chunk. Single-element for standard IMAGE/TABLE/HTML chunks, multi-element for multi-page single-chunk ingestion."},"summary":{"oneOf":[{"type":"string","title":"Summary","description":"LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text."},{"type":"null","title":"Summary","description":"LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text."}]},"extracted_text_s3_uri":{"oneOf":[{"type":"string","title":"Extracted Text S3 Uri","description":"S3 URI to extracted PDF text used for LLM grounding during enrichment"},{"type":"null","title":"Extracted Text S3 Uri","description":"S3 URI to extracted PDF text used for LLM grounding during enrichment"}]},"secondary_taxonomy":{"oneOf":[{"type":"string","enum":["picture","flowchart"],"title":"ImageTaxonomy","description":"Sub-classification within a primary chunk type. For IMAGE chunks: 'flowchart' (Mermaid extraction) or 'picture' (image description). None when not applicable. Will expand to cover TABLE sub-types in the future."},{"type":"null","enum":["picture","flowchart"],"title":"ImageTaxonomy","description":"Sub-classification within a primary chunk type. For IMAGE chunks: 'flowchart' (Mermaid extraction) or 'picture' (image description). None when not applicable. Will expand to cover TABLE sub-types in the future."}]},"sheet_name":{"oneOf":[{"type":"string","title":"Sheet Name","description":"Worksheet name this chunk was extracted from (XLSX only)"},{"type":"null","title":"Sheet Name","description":"Worksheet name this chunk was extracted from (XLSX only)"}]},"block_type":{"oneOf":[{"type":"string","title":"Block Type","description":"XLSXParser block type (e.g. table, calculation_block, chart_anchor)"},{"type":"null","title":"Block Type","description":"XLSXParser block type (e.g. table, calculation_block, chart_anchor)"}]},"source_uri":{"oneOf":[{"type":"string","title":"Source Uri","description":"Cell range URI reference in the source workbook (XLSX only)"},{"type":"null","title":"Source Uri","description":"Cell range URI reference in the source workbook (XLSX only)"}]},"enriched_html":{"oneOf":[{"type":"string","title":"Enriched Html","description":"Rendered HTML for non-table XLSX chunks (tables use render_html as content)"},{"type":"null","title":"Enriched Html","description":"Rendered HTML for non-table XLSX chunks (tables use render_html as content)"}]},"cell_range":{"oneOf":[{"type":"string","title":"Cell Range","description":"Cell address range, e.g. 'A1:D10' (XLSX only)"},{"type":"null","title":"Cell Range","description":"Cell address range, e.g. 'A1:D10' (XLSX only)"}]},"dependency_summary":{"oneOf":[{"additionalProperties":true,"type":"object","title":"Dependency Summary","description":"Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)"},{"additionalProperties":true,"type":"null","title":"Dependency Summary","description":"Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)"}]},"formulas":{"oneOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Formulas","description":"Formula cells in this chunk as [{address, formula, value}] (XLSX only)"},{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"null","title":"Formulas","description":"Formula cells in this chunk as [{address, formula, value}] (XLSX only)"}]},"key_cells":{"oneOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Key Cells","description":"Notable output/header cells for quick identification (XLSX only)"},{"items":{"additionalProperties":true,"type":"object"},"type":"null","title":"Key Cells","description":"Notable output/header cells for quick identification (XLSX only)"}]},"named_ranges":{"oneOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Named Ranges","description":"Named ranges overlapping this chunk (XLSX only)"},{"items":{"additionalProperties":true,"type":"object"},"type":"null","title":"Named Ranges","description":"Named ranges overlapping this chunk (XLSX only)"}]}},"type":"null","title":"ChunkMetadata","description":"Metadata to merge into existing chunk_metadata (optional)","uniqueKey":"chunk_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata","typeLabel":"ChunkMetadata · object | null"},"parent_path_part_id":{"oneOf":[{"type":"string","format":"uuid","title":"Parent Path Part Id","description":"Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)","uniqueKey":"parent_path_part_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","title":"Parent Path Part Id","description":"Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)","uniqueKey":"parent_path_part_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"parent_path_part_id","typeLabel":"string\u003cuuid> | null"},"prev_sibling_path_id":{"oneOf":[{"type":"string","format":"uuid","title":"Prev Sibling Path Id","description":"Move after this sibling PathPart ID (within new or current parent)","uniqueKey":"prev_sibling_path_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","title":"Prev Sibling Path Id","description":"Move after this sibling PathPart ID (within new or current parent)","uniqueKey":"prev_sibling_path_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"prev_sibling_path_id","typeLabel":"string\u003cuuid> | null"},"move_to_head":{"type":"boolean","title":"Move To Head","description":"Set to true to move to head of sibling list","default":false,"uniqueKey":"move_to_head","typeLabel":"boolean"}},"additionalProperties":false,"type":"object","title":"UpdateChunkMetadataRequest","description":"Request to update chunk metadata and/or move the chunk.","uniqueKey":"","typeLabel":"UpdateChunkMetadataRequest · object"},"examples":{"Example":{"title":"Example","value":{"chunk_metadata":{"polygons":[{"page":123,"polygon":{"x":123,"y":123,"width":123,"height":123}}],"s3_urls":["\u003cstring>"],"summary":"\u003cstring>","extracted_text_s3_uri":"\u003cstring>","sheet_name":"\u003cstring>","block_type":"\u003cstring>","source_uri":"\u003cstring>","enriched_html":"\u003cstring>","cell_range":"\u003cstring>","dependency_summary":{},"formulas":[{}],"key_cells":[{}],"named_ranges":[{}]},"parent_path_part_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","prev_sibling_path_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","move_to_head":false}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"6e09232f-bae5-4efa-85e4-0a567b03618b":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Chunk ID","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"path_part_id":{"type":"string","format":"uuid","title":"Path Part Id","description":"PathPart ID","isRequired":true,"uniqueKey":"path_part_id","typeLabel":"string\u003cuuid>"},"content_id":{"type":"string","format":"uuid","title":"Content Id","description":"ChunkContent ID","isRequired":true,"uniqueKey":"content_id","typeLabel":"string\u003cuuid>"},"content":{"type":"string","title":"Content","description":"Chunk text content","isRequired":true,"uniqueKey":"content","typeLabel":"string"},"chunk_type":{"type":"string","enum":["TEXT","TABLE","IMAGE","HTML","UNKNOWN"],"title":"ChunkType","description":"Type of chunk content","isRequired":true,"uniqueKey":"chunk_type","typeLabel":"enum\u003cstring>"},"chunk_metadata":{"properties":{"polygons":{"items":{"properties":{"page":{"type":"integer","title":"Page","description":"The page number of the source document where the polygon is located.","isRequired":true,"uniqueKey":"chunk_metadata.polygons.items.[INDEX].page","typeLabel":"integer"},"polygon":{"properties":{"x":{"type":"integer","title":"X","description":"The x-coordinate of the top-left corner of the bounding box.","isRequired":true,"uniqueKey":"chunk_metadata.polygons.items.[INDEX].polygon.x","typeLabel":"integer"},"y":{"type":"integer","title":"Y","description":"The y-coordinate of the top-left corner of the bounding box.","isRequired":true,"uniqueKey":"chunk_metadata.polygons.items.[INDEX].polygon.y","typeLabel":"integer"},"width":{"type":"integer","title":"Width","description":"The width of the bounding box.","isRequired":true,"uniqueKey":"chunk_metadata.polygons.items.[INDEX].polygon.width","typeLabel":"integer"},"height":{"type":"integer","title":"Height","description":"The height of the bounding box.","isRequired":true,"uniqueKey":"chunk_metadata.polygons.items.[INDEX].polygon.height","typeLabel":"integer"}},"type":"object","required":["x","y","width","height"],"title":"Polygon","description":"The bounding box of the polygon.","isRequired":true,"uniqueKey":"chunk_metadata.polygons.items.[INDEX].polygon","typeLabel":"Polygon · object"}},"type":"object","required":["page","polygon"],"title":"PolygonReference","description":"Reference to a polygon on a specific page.","uniqueKey":"chunk_metadata.polygons.items.[INDEX]","typeLabel":"PolygonReference · object"},"type":"array","title":"Polygons","description":"List of bounding boxes in the source document for the chunk, potentially from multiple areas of multiple pages.","uniqueKey":"chunk_metadata.polygons","typeLabel":"PolygonReference · object[]"},"s3_urls":{"items":{"type":"string","uniqueKey":"chunk_metadata.s3_urls.items.[INDEX]","typeLabel":"string"},"type":"array","title":"S3 Urls","description":"Ordered s3:// URIs to visual assets for this chunk. Single-element for standard IMAGE/TABLE/HTML chunks, multi-element for multi-page single-chunk ingestion.","uniqueKey":"chunk_metadata.s3_urls","typeLabel":"string[]"},"summary":{"oneOf":[{"type":"string","title":"Summary","description":"LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text.","uniqueKey":"chunk_metadata.summary.oneOf.0","typeLabel":"string"},{"type":"null","title":"Summary","description":"LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text.","uniqueKey":"chunk_metadata.summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.summary","typeLabel":"string | null"},"extracted_text_s3_uri":{"oneOf":[{"type":"string","title":"Extracted Text S3 Uri","description":"S3 URI to extracted PDF text used for LLM grounding during enrichment","uniqueKey":"chunk_metadata.extracted_text_s3_uri.oneOf.0","typeLabel":"string"},{"type":"null","title":"Extracted Text S3 Uri","description":"S3 URI to extracted PDF text used for LLM grounding during enrichment","uniqueKey":"chunk_metadata.extracted_text_s3_uri.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.extracted_text_s3_uri","typeLabel":"string | null"},"secondary_taxonomy":{"oneOf":[{"type":"string","enum":["picture","flowchart"],"title":"ImageTaxonomy","description":"Sub-classification within a primary chunk type. For IMAGE chunks: 'flowchart' (Mermaid extraction) or 'picture' (image description). None when not applicable. Will expand to cover TABLE sub-types in the future.","uniqueKey":"chunk_metadata.secondary_taxonomy.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["picture","flowchart"],"title":"ImageTaxonomy","description":"Sub-classification within a primary chunk type. For IMAGE chunks: 'flowchart' (Mermaid extraction) or 'picture' (image description). None when not applicable. Will expand to cover TABLE sub-types in the future.","uniqueKey":"chunk_metadata.secondary_taxonomy.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.secondary_taxonomy","typeLabel":"enum\u003cstring> | null"},"sheet_name":{"oneOf":[{"type":"string","title":"Sheet Name","description":"Worksheet name this chunk was extracted from (XLSX only)","uniqueKey":"chunk_metadata.sheet_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Sheet Name","description":"Worksheet name this chunk was extracted from (XLSX only)","uniqueKey":"chunk_metadata.sheet_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.sheet_name","typeLabel":"string | null"},"block_type":{"oneOf":[{"type":"string","title":"Block Type","description":"XLSXParser block type (e.g. table, calculation_block, chart_anchor)","uniqueKey":"chunk_metadata.block_type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Block Type","description":"XLSXParser block type (e.g. table, calculation_block, chart_anchor)","uniqueKey":"chunk_metadata.block_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.block_type","typeLabel":"string | null"},"source_uri":{"oneOf":[{"type":"string","title":"Source Uri","description":"Cell range URI reference in the source workbook (XLSX only)","uniqueKey":"chunk_metadata.source_uri.oneOf.0","typeLabel":"string"},{"type":"null","title":"Source Uri","description":"Cell range URI reference in the source workbook (XLSX only)","uniqueKey":"chunk_metadata.source_uri.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.source_uri","typeLabel":"string | null"},"enriched_html":{"oneOf":[{"type":"string","title":"Enriched Html","description":"Rendered HTML for non-table XLSX chunks (tables use render_html as content)","uniqueKey":"chunk_metadata.enriched_html.oneOf.0","typeLabel":"string"},{"type":"null","title":"Enriched Html","description":"Rendered HTML for non-table XLSX chunks (tables use render_html as content)","uniqueKey":"chunk_metadata.enriched_html.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.enriched_html","typeLabel":"string | null"},"cell_range":{"oneOf":[{"type":"string","title":"Cell Range","description":"Cell address range, e.g. 'A1:D10' (XLSX only)","uniqueKey":"chunk_metadata.cell_range.oneOf.0","typeLabel":"string"},{"type":"null","title":"Cell Range","description":"Cell address range, e.g. 'A1:D10' (XLSX only)","uniqueKey":"chunk_metadata.cell_range.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.cell_range","typeLabel":"string | null"},"dependency_summary":{"oneOf":[{"additionalProperties":true,"type":"object","title":"Dependency Summary","description":"Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)","uniqueKey":"chunk_metadata.dependency_summary.oneOf.0","typeLabel":"Dependency Summary · object"},{"additionalProperties":true,"type":"null","title":"Dependency Summary","description":"Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)","uniqueKey":"chunk_metadata.dependency_summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.dependency_summary","typeLabel":"Dependency Summary · object | null"},"formulas":{"oneOf":[{"items":{"additionalProperties":{"type":"string","uniqueKey":"chunk_metadata.formulas.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"chunk_metadata.formulas.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","title":"Formulas","description":"Formula cells in this chunk as [{address, formula, value}] (XLSX only)","uniqueKey":"chunk_metadata.formulas.oneOf.0","typeLabel":"Formulas · object[]"},{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"null","title":"Formulas","description":"Formula cells in this chunk as [{address, formula, value}] (XLSX only)","uniqueKey":"chunk_metadata.formulas.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.formulas","typeLabel":"Formulas · object[] | null"},"key_cells":{"oneOf":[{"items":{"additionalProperties":true,"type":"object","uniqueKey":"chunk_metadata.key_cells.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","title":"Key Cells","description":"Notable output/header cells for quick identification (XLSX only)","uniqueKey":"chunk_metadata.key_cells.oneOf.0","typeLabel":"Key Cells · object[]"},{"items":{"additionalProperties":true,"type":"object"},"type":"null","title":"Key Cells","description":"Notable output/header cells for quick identification (XLSX only)","uniqueKey":"chunk_metadata.key_cells.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.key_cells","typeLabel":"Key Cells · object[] | null"},"named_ranges":{"oneOf":[{"items":{"additionalProperties":true,"type":"object","uniqueKey":"chunk_metadata.named_ranges.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","title":"Named Ranges","description":"Named ranges overlapping this chunk (XLSX only)","uniqueKey":"chunk_metadata.named_ranges.oneOf.0","typeLabel":"Named Ranges · object[]"},{"items":{"additionalProperties":true,"type":"object"},"type":"null","title":"Named Ranges","description":"Named ranges overlapping this chunk (XLSX only)","uniqueKey":"chunk_metadata.named_ranges.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunk_metadata.named_ranges","typeLabel":"Named Ranges · object[] | null"}},"type":"object","title":"ChunkMetadata","description":"Chunk metadata","isRequired":true,"uniqueKey":"chunk_metadata","typeLabel":"ChunkMetadata · object"},"parent_path_id":{"type":"string","format":"uuid","title":"Parent Path Id","description":"Parent PathPart ID","isRequired":true,"uniqueKey":"parent_path_id","typeLabel":"string\u003cuuid>"},"materialized_path":{"type":"string","title":"Materialized Path","description":"Full materialized path from root","isRequired":true,"uniqueKey":"materialized_path","typeLabel":"string"},"system_managed":{"type":"boolean","title":"System Managed","description":"Whether this chunk is system-managed","isRequired":true,"uniqueKey":"system_managed","typeLabel":"boolean"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id","description":"Tenant ID","isRequired":true,"uniqueKey":"tenant_id","typeLabel":"string\u003cuuid>"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Last update timestamp","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"num_tokens":{"oneOf":[{"type":"integer","title":"Num Tokens","description":"Number of tokens in chunk content","uniqueKey":"num_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Num Tokens","description":"Number of tokens in chunk content","uniqueKey":"num_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"num_tokens","typeLabel":"integer | null"},"prev_sibling_path_id":{"oneOf":[{"type":"string","format":"uuid","title":"Prev Sibling Path Id","description":"Previous sibling PathPart ID","uniqueKey":"prev_sibling_path_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","title":"Prev Sibling Path Id","description":"Previous sibling PathPart ID","uniqueKey":"prev_sibling_path_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"prev_sibling_path_id","typeLabel":"string\u003cuuid> | null"},"next_sibling_path_id":{"oneOf":[{"type":"string","format":"uuid","title":"Next Sibling Path Id","description":"Next sibling PathPart ID","uniqueKey":"next_sibling_path_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","title":"Next Sibling Path Id","description":"Next sibling PathPart ID","uniqueKey":"next_sibling_path_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"next_sibling_path_id","typeLabel":"string\u003cuuid> | null"},"asset_s3_urls":{"items":{"type":"string","uniqueKey":"asset_s3_urls.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Asset S3 Urls","description":"Presigned URLs to download the chunk's visual assets (6-hour validity)","uniqueKey":"asset_s3_urls","typeLabel":"string[]"},"document":{"oneOf":[{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Document ID","isRequired":true,"uniqueKey":"document.oneOf.0.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","title":"Name","description":"Document name","isRequired":true,"uniqueKey":"document.oneOf.0.name","typeLabel":"string"},"document_type":{"type":"string","enum":["PDF","DOCX","PLAINTEXT","IMAGE","XLSX","CSV","PPTX","UNKNOWN"],"title":"DocumentType","description":"Document type (PDF, MARKDOWN, etc.)","isRequired":true,"uniqueKey":"document.oneOf.0.document_type","typeLabel":"enum\u003cstring>"},"document_origin":{"type":"string","enum":["SOURCE","GENERATED"],"title":"DocumentOrigin","description":"Document origin (SOURCE, GENERATED, etc.)","isRequired":true,"uniqueKey":"document.oneOf.0.document_origin","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"type":"object","required":["id","name","document_type","document_origin"],"title":"ChunkDocumentResponse","description":"Ancestor document info (populated when with_document=true)","uniqueKey":"document.oneOf.0","typeLabel":"ChunkDocumentResponse · object"},{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Document ID"},"name":{"type":"string","title":"Name","description":"Document name"},"document_type":{"type":"string","enum":["PDF","DOCX","PLAINTEXT","IMAGE","XLSX","CSV","PPTX","UNKNOWN"],"title":"DocumentType","description":"Document type (PDF, MARKDOWN, etc.)"},"document_origin":{"type":"string","enum":["SOURCE","GENERATED"],"title":"DocumentOrigin","description":"Document origin (SOURCE, GENERATED, etc.)"}},"additionalProperties":false,"type":"null","required":["id","name","document_type","document_origin"],"title":"ChunkDocumentResponse","description":"Ancestor document info (populated when with_document=true)","uniqueKey":"document.oneOf.1","typeLabel":"null"}],"uniqueKey":"document","typeLabel":"ChunkDocumentResponse · object | null"},"document_version":{"oneOf":[{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"DocumentVersion ID","isRequired":true,"uniqueKey":"document_version.oneOf.0.id","typeLabel":"string\u003cuuid>"},"version":{"type":"integer","title":"Version","description":"Version number","isRequired":true,"uniqueKey":"document_version.oneOf.0.version","typeLabel":"integer"},"name":{"type":"string","title":"Name","description":"Version path name (e.g. v0)","isRequired":true,"uniqueKey":"document_version.oneOf.0.name","typeLabel":"string"}},"additionalProperties":false,"type":"object","required":["id","version","name"],"title":"ChunkDocumentVersionResponse","description":"Ancestor document version info (populated when with_document=true)","uniqueKey":"document_version.oneOf.0","typeLabel":"ChunkDocumentVersionResponse · object"},{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"DocumentVersion ID"},"version":{"type":"integer","title":"Version","description":"Version number"},"name":{"type":"string","title":"Name","description":"Version path name (e.g. v0)"}},"additionalProperties":false,"type":"null","required":["id","version","name"],"title":"ChunkDocumentVersionResponse","description":"Ancestor document version info (populated when with_document=true)","uniqueKey":"document_version.oneOf.1","typeLabel":"null"}],"uniqueKey":"document_version","typeLabel":"ChunkDocumentVersionResponse · object | null"}},"additionalProperties":false,"type":"object","required":["id","path_part_id","content_id","content","chunk_type","chunk_metadata","parent_path_id","materialized_path","system_managed","tenant_id","created_at","updated_at"],"title":"ChunkResponse","description":"Chunk response model.","uniqueKey":"","typeLabel":"ChunkResponse · object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","path_part_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","content_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","content":"\u003cstring>","chunk_type":"TEXT","chunk_metadata":{"polygons":[{"page":123,"polygon":{"x":123,"y":123,"width":123,"height":123}}],"s3_urls":["\u003cstring>"],"summary":"\u003cstring>","extracted_text_s3_uri":"\u003cstring>","secondary_taxonomy":"picture","sheet_name":"\u003cstring>","block_type":"\u003cstring>","source_uri":"\u003cstring>","enriched_html":"\u003cstring>","cell_range":"\u003cstring>","dependency_summary":{},"formulas":[{}],"key_cells":[{}],"named_ranges":[{}]},"parent_path_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","materialized_path":"\u003cstring>","system_managed":true,"tenant_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","num_tokens":123,"prev_sibling_path_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","next_sibling_path_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","asset_s3_urls":["\u003cstring>"],"document":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","document_type":"PDF","document_origin":"SOURCE"},"document_version":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","version":123,"name":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"90b33986-b55f-4e19-bee9-ef19f177edce":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"e0a2edb2-3da4-4e31-9b5c-776141290ce0":{"url":"http://localhost:8000","description":"Knowledge Stack API local dev server"}}},"originalFileLocation":"openapi.yaml"},"subdomain":"knowledgestack","siteName":"Knowledge Stack","title":"Update Chunk Metadata Handler - Knowledge Stack","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-29T02:08:21.327Z","originalFileLocation":"api-reference/chunks/update-chunk-metadata-handler.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Knowledge Stack\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/svg+xml\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/knowledgestack/favicon.svg\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/knowledgestack/favicon.svg\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/knowledgestack/favicon.svg\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/svg+xml\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/knowledgestack/favicon.svg\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update Chunk Metadata Handler - Knowledge Stack\">\u003cmeta data-mint-head property=\"og:description\" content=\"Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Knowledge Stack\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.knowledgestack.ai/api-reference/chunks/update-chunk-metadata-handler\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://knowledgestack.mintlify.site/_mintlify/api/og/v2?division=chunks\u0026amp;title=Update+Chunk+Metadata+Handler\u0026amp;description=Update+chunk+metadata+and%2For+move+the+chunk.%0A%0AThe+provided+metadata+is+shallow-merged+into+the+existing+chunk_metadata.%0AMove+params+%28parent_path_part_id%2C+prev_s\u0026amp;theme=78b6ea59964f872be96baffb\u0026amp;signature=67ff2ef7e87a7bc08dc4d8737ca857c5111dab0ae447c60ac143a40404f41d8b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update Chunk Metadata Handler - Knowledge Stack\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://knowledgestack.mintlify.site/_mintlify/api/og/v2?division=chunks\u0026amp;title=Update+Chunk+Metadata+Handler\u0026amp;description=Update+chunk+metadata+and%2For+move+the+chunk.%0A%0AThe+provided+metadata+is+shallow-merged+into+the+existing+chunk_metadata.%0AMove+params+%28parent_path_part_id%2C+prev_s\u0026amp;theme=78b6ea59964f872be96baffb\u0026amp;signature=67ff2ef7e87a7bc08dc4d8737ca857c5111dab0ae447c60ac143a40404f41d8b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/knowledgestack/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Knowledge Stack\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#22c55e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.knowledgestack.ai/api-reference/chunks/update-chunk-metadata-handler\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/chunks/update-chunk-metadata-handler.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.knowledgestack.ai/#organization\",\"name\":\"Knowledge Stack\",\"url\":\"https://docs.knowledgestack.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/knowledgestack/98UlasllyAOneaJk/logo/knowledge-stack.png?fit=max\u0026auto=format\u0026n=98UlasllyAOneaJk\u0026q=85\u0026s=9211571a1e1a7a0f1220ff703b506194\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.knowledgestack.ai#website\",\"name\":\"Knowledge Stack\",\"url\":\"https://docs.knowledgestack.ai\",\"publisher\":{\"@id\":\"https://docs.knowledgestack.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.knowledgestack.ai/api-reference/chunks/update-chunk-metadata-handler#webpage\",\"url\":\"https://docs.knowledgestack.ai/api-reference/chunks/update-chunk-metadata-handler\",\"name\":\"Update Chunk Metadata Handler\",\"description\":\"Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.\",\"dateModified\":\"2026-04-29T02:08:21.327Z\",\"isPartOf\":{\"@id\":\"https://docs.knowledgestack.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.knowledgestack.ai/api-reference/chunks/update-chunk-metadata-handler#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.knowledgestack.ai/api-reference/chunks/update-chunk-metadata-handler#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"chunks\",\"item\":\"https://docs.knowledgestack.ai/api-reference/chunks/create-chunk-handler\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update Chunk Metadata Handler\",\"item\":\"https://docs.knowledgestack.ai/api-reference/chunks/update-chunk-metadata-handler\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.knowledgestack.ai/api-reference/chunks/update-chunk-metadata-handler#apireference\",\"headline\":\"Update Chunk Metadata Handler\",\"name\":\"Update Chunk Metadata Handler\",\"description\":\"Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.\",\"url\":\"https://docs.knowledgestack.ai/api-reference/chunks/update-chunk-metadata-handler\",\"mainEntityOfPage\":{\"@id\":\"https://docs.knowledgestack.ai/api-reference/chunks/update-chunk-metadata-handler#webpage\"},\"dateModified\":\"2026-04-29T02:08:21.327Z\",\"publisher\":{\"@id\":\"https://docs.knowledgestack.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.knowledgestack.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Knowledge Stack\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Knowledge Stack\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/chunks/update-chunk-metadata-handler.md","siteName":"Knowledge Stack","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"api-keys","pages":[{"title":"List Api Keys Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/api-keys","href":"/api-reference/api-keys/list-api-keys-handler"},{"title":"Create Api Key Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/api-keys","href":"/api-reference/api-keys/create-api-key-handler"},{"title":"Get Api Key Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/api-keys/{api_key_id}","href":"/api-reference/api-keys/get-api-key-handler"},{"title":"Delete Api Key Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/api-keys/{api_key_id}","href":"/api-reference/api-keys/delete-api-key-handler"}]},{"group":"auth","pages":[{"title":"Pw Email Verification Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/pw/email_verification","href":"/api-reference/auth/pw-email-verification-handler"},{"title":"Create Password User Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/pw/user","href":"/api-reference/auth/create-password-user-handler"},{"title":"Signin Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/pw/signin","href":"/api-reference/auth/signin-handler"},{"title":"Send Pw Reset Email Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/pw/send_reset_email","href":"/api-reference/auth/send-pw-reset-email-handler"},{"title":"Reset Password Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/pw/reset","href":"/api-reference/auth/reset-password-handler"},{"title":"Reset Password With Token Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/pw/reset_with_token","href":"/api-reference/auth/reset-password-with-token-handler"},{"title":"Initiate Sso Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/sso/initiate","href":"/api-reference/auth/initiate-sso-handler"},{"title":"Sso Login Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/auth/sso/{tenant_id}/signin","href":"/api-reference/auth/sso-login-handler"},{"title":"Oauth2 Callback Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/auth/sso/oauth2/callback","href":"/api-reference/auth/oauth2-callback-handler"},{"title":"Directory Sync Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/sso/{tenant_id}/directory_sync","href":"/api-reference/auth/directory-sync-handler"},{"title":"Refresh Uat Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/uat","href":"/api-reference/auth/refresh-uat-handler"},{"title":"Signout Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/signout","href":"/api-reference/auth/signout-handler"}]},{"group":"users","pages":[{"title":"Get Me Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/users/me","href":"/api-reference/users/get-me-handler"},{"title":"Update Me Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/users","href":"/api-reference/users/update-me-handler"}]},{"group":"tenants","pages":[{"title":"List Tenants","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/tenants","href":"/api-reference/tenants/list-tenants"},{"title":"Get Current Tenant Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/tenants/me","href":"/api-reference/tenants/get-current-tenant-handler"},{"title":"Get Tenant","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/tenants/{tenant_id}","href":"/api-reference/tenants/get-tenant"},{"title":"Delete Tenant","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/tenants/{tenant_id}","href":"/api-reference/tenants/delete-tenant"},{"title":"Update Tenant","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/tenants/{tenant_id}","href":"/api-reference/tenants/update-tenant"},{"title":"List Tenant Users","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/tenants/{tenant_id}/users","href":"/api-reference/tenants/list-tenant-users"},{"title":"Deactivate Tenant User Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/tenants/{tenant_id}/users/{user_id}/deactivate","href":"/api-reference/tenants/deactivate-tenant-user-handler"},{"title":"Activate Tenant User Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/tenants/{tenant_id}/users/{user_id}/activate","href":"/api-reference/tenants/activate-tenant-user-handler"},{"title":"Delete Tenant User Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/tenants/{tenant_id}/users/{user_id}","href":"/api-reference/tenants/delete-tenant-user-handler"},{"title":"Update Tenant User","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/tenants/{tenant_id}/users/{user_id}","href":"/api-reference/tenants/update-tenant-user"},{"title":"Upload Tenant Logo","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/tenants/{tenant_id}/branding/logo","href":"/api-reference/tenants/upload-tenant-logo"},{"title":"Delete Tenant Logo","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/tenants/{tenant_id}/branding/logo","href":"/api-reference/tenants/delete-tenant-logo"}]},{"group":"invites","pages":[{"title":"List Invites Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/invites","href":"/api-reference/invites/list-invites-handler"},{"title":"Create Invite","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/invites","href":"/api-reference/invites/create-invite"},{"title":"Accept Invite","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/invites/{invite_id}/accept","href":"/api-reference/invites/accept-invite"},{"title":"Delete Invite","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/invites/{invite_id}","href":"/api-reference/invites/delete-invite"}]},{"group":"folders","pages":[{"title":"List Folders Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/folders","href":"/api-reference/folders/list-folders-handler"},{"title":"Create Folder Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/folders","href":"/api-reference/folders/create-folder-handler"},{"title":"Search Items Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/folders/search","href":"/api-reference/folders/search-items-handler"},{"title":"Get Folder Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/folders/{folder_id}","href":"/api-reference/folders/get-folder-handler"},{"title":"Folder Action Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/folders/{folder_id}","href":"/api-reference/folders/folder-action-handler"},{"title":"Delete Folder Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/folders/{folder_id}","href":"/api-reference/folders/delete-folder-handler"},{"title":"Update Folder Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/folders/{folder_id}","href":"/api-reference/folders/update-folder-handler"},{"title":"List Folder Contents Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/folders/{folder_id}/contents","href":"/api-reference/folders/list-folder-contents-handler"}]},{"group":"documents","pages":[{"title":"Ingest Document Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/documents/ingest","href":"/api-reference/documents/ingest-document-handler"},{"title":"Ingest Document Version Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/documents/{document_id}/ingest","href":"/api-reference/documents/ingest-document-version-handler"},{"title":"List Documents Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/documents","href":"/api-reference/documents/list-documents-handler"},{"title":"Create Document Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/documents","href":"/api-reference/documents/create-document-handler"},{"title":"Get Document Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/documents/{document_id}","href":"/api-reference/documents/get-document-handler"},{"title":"Delete Document Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/documents/{document_id}","href":"/api-reference/documents/delete-document-handler"},{"title":"Update Document Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/documents/{document_id}","href":"/api-reference/documents/update-document-handler"}]},{"group":"document-versions","pages":[{"title":"Create Document Version Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/documents/{document_id}/versions","href":"/api-reference/document-versions/create-document-version-handler"},{"title":"List Document Versions Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/document_versions","href":"/api-reference/document-versions/list-document-versions-handler"},{"title":"Get Document Version Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/document_versions/{version_id}","href":"/api-reference/document-versions/get-document-version-handler"},{"title":"Document Version Action Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/document_versions/{version_id}","href":"/api-reference/document-versions/document-version-action-handler"},{"title":"Delete Document Version Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/document_versions/{version_id}","href":"/api-reference/document-versions/delete-document-version-handler"},{"title":"Update Document Version Metadata Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/document_versions/{version_id}/metadata","href":"/api-reference/document-versions/update-document-version-metadata-handler"},{"title":"Get Document Version Contents Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/document_versions/{version_id}/contents","href":"/api-reference/document-versions/get-document-version-contents-handler"},{"title":"Clear Document Version Contents Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/document_versions/{version_id}/contents","href":"/api-reference/document-versions/clear-document-version-contents-handler"}]},{"group":"features","pages":[{"title":"Get Features Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/features","href":"/api-reference/features/get-features-handler"}]},{"group":"sections","pages":[{"title":"Create Section Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/sections","href":"/api-reference/sections/create-section-handler"},{"title":"Get Sections Bulk Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/sections/bulk","href":"/api-reference/sections/get-sections-bulk-handler"},{"title":"Get Section Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/sections/{section_id}","href":"/api-reference/sections/get-section-handler"},{"title":"Delete Section Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/sections/{section_id}","href":"/api-reference/sections/delete-section-handler"},{"title":"Update Section Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/sections/{section_id}","href":"/api-reference/sections/update-section-handler"},{"title":"Dissolve Section Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/sections/{section_id}/dissolve","href":"/api-reference/sections/dissolve-section-handler"}]},{"group":"chunks","pages":[{"title":"Create Chunk Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/chunks","href":"/api-reference/chunks/create-chunk-handler"},{"title":"Search Chunks Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/chunks/search","href":"/api-reference/chunks/search-chunks-handler"},{"title":"Get Chunks Bulk Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/chunks/bulk","href":"/api-reference/chunks/get-chunks-bulk-handler"},{"title":"Get Version Chunk Ids Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/chunks/version-chunk-ids","href":"/api-reference/chunks/get-version-chunk-ids-handler"},{"title":"Get Chunk Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/chunks/{chunk_id}","href":"/api-reference/chunks/get-chunk-handler"},{"title":"Delete Chunk Handler","description":"Delete a chunk.\n\nThe chunk is deleted via its PathPart (cascading delete).\nThe associated ChunkContent may remain if shared by other chunks.","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/chunks/{chunk_id}","href":"/api-reference/chunks/delete-chunk-handler"},{"title":"Update Chunk Metadata Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/chunks/{chunk_id}","href":"/api-reference/chunks/update-chunk-metadata-handler"},{"title":"Get Chunk Neighbors Handler","description":"Get neighboring siblings by traversing the sibling linked list.\n\nWalks the sibling chain backward (prev) and forward (next) from the\nanchor chunk. Returns sections and chunks in sibling order within the\nsame parent.\n\nWhen ``chunks_only=true``, the traversal stops at the first non-CHUNK\nsibling in each direction, returning only chunk neighbors.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/chunks/{chunk_id}/neighbors","href":"/api-reference/chunks/get-chunk-neighbors-handler"},{"title":"Update Chunk Content Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/chunks/{chunk_id}/content","href":"/api-reference/chunks/update-chunk-content-handler"}]},{"group":"chunk-lineages","pages":[{"title":"Get Chunk Lineage Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/chunk-lineages/{chunk_id}","href":"/api-reference/chunk-lineages/get-chunk-lineage-handler"},{"title":"Create Chunk Lineage Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/chunk-lineages","href":"/api-reference/chunk-lineages/create-chunk-lineage-handler"},{"title":"Delete Chunk Lineage Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/chunk-lineages","href":"/api-reference/chunk-lineages/delete-chunk-lineage-handler"}]},{"group":"path-parts","pages":[{"title":"List Path Parts Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/path-parts","href":"/api-reference/path-parts/list-path-parts-handler"},{"title":"Get Path Part Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/path-parts/{path_part_id}","href":"/api-reference/path-parts/get-path-part-handler"},{"title":"Get Path Part Ancestry Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/path-parts/{path_part_id}/ancestry","href":"/api-reference/path-parts/get-path-part-ancestry-handler"},{"title":"Get Path Part Subtree Chunks Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/path-parts/{path_part_id}/subtree_chunks","href":"/api-reference/path-parts/get-path-part-subtree-chunks-handler"},{"title":"Get Path Part Tags Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/path-parts/{path_part_id}/tags","href":"/api-reference/path-parts/get-path-part-tags-handler"},{"title":"Set Path Part Tags Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/path-parts/{path_part_id}/tags","href":"/api-reference/path-parts/set-path-part-tags-handler"},{"title":"Bulk Remove Path Part Tags Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/path-parts/{path_part_id}/tags","href":"/api-reference/path-parts/bulk-remove-path-part-tags-handler"}]},{"group":"tags","pages":[{"title":"List Tags Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/tags","href":"/api-reference/tags/list-tags-handler"},{"title":"Create Tag Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/tags","href":"/api-reference/tags/create-tag-handler"},{"title":"Get Tag Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/tags/{tag_id}","href":"/api-reference/tags/get-tag-handler"},{"title":"Delete Tag Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/tags/{tag_id}","href":"/api-reference/tags/delete-tag-handler"},{"title":"Update Tag Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/tags/{tag_id}","href":"/api-reference/tags/update-tag-handler"}]},{"group":"Threads","pages":[{"title":"List Threads Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/threads","href":"/api-reference/threads/list-threads-handler"},{"title":"Create Thread Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/threads","href":"/api-reference/threads/create-thread-handler"},{"title":"Get Thread Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/threads/{thread_id}","href":"/api-reference/threads/get-thread-handler"},{"title":"Delete Thread Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/threads/{thread_id}","href":"/api-reference/threads/delete-thread-handler"},{"title":"Update Thread Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/threads/{thread_id}","href":"/api-reference/threads/update-thread-handler"},{"title":"Send User Message Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/threads/{thread_id}/user_message","href":"/api-reference/threads/send-user-message-handler"},{"title":"Stream Thread Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/threads/{thread_id}/stream","href":"/api-reference/threads/stream-thread-handler"}]},{"group":"Thread Messages","pages":[{"title":"List Thread Messages Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/threads/{thread_id}/messages","href":"/api-reference/thread-messages/list-thread-messages-handler"},{"title":"Create Thread Message Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/threads/{thread_id}/messages","href":"/api-reference/thread-messages/create-thread-message-handler"},{"title":"Get Thread Message Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/threads/{thread_id}/messages/{message_id}","href":"/api-reference/thread-messages/get-thread-message-handler"}]},{"group":"tenant-groups","pages":[{"title":"List My Groups Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/tenant-groups/my-group","href":"/api-reference/tenant-groups/list-my-groups-handler"},{"title":"List Tenant Groups Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/tenant-groups","href":"/api-reference/tenant-groups/list-tenant-groups-handler"},{"title":"Create Tenant Group Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/tenant-groups","href":"/api-reference/tenant-groups/create-tenant-group-handler"},{"title":"Get Tenant Group Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/tenant-groups/{group_id}","href":"/api-reference/tenant-groups/get-tenant-group-handler"},{"title":"Delete Tenant Group Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/tenant-groups/{group_id}","href":"/api-reference/tenant-groups/delete-tenant-group-handler"},{"title":"Update Tenant Group Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/tenant-groups/{group_id}","href":"/api-reference/tenant-groups/update-tenant-group-handler"},{"title":"List Group Members Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/tenant-groups/{group_id}/members","href":"/api-reference/tenant-groups/list-group-members-handler"},{"title":"Add Group Member Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/tenant-groups/{group_id}/members","href":"/api-reference/tenant-groups/add-group-member-handler"},{"title":"Remove Group Member Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/tenant-groups/{group_id}/members/{user_id}","href":"/api-reference/tenant-groups/remove-group-member-handler"},{"title":"List Group Permissions Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/tenant-groups/{group_id}/permissions","href":"/api-reference/tenant-groups/list-group-permissions-handler"},{"title":"Create Group Permission Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/tenant-groups/{group_id}/permissions","href":"/api-reference/tenant-groups/create-group-permission-handler"},{"title":"Delete Group Permission Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/tenant-groups/{group_id}/permissions/{permission_id}","href":"/api-reference/tenant-groups/delete-group-permission-handler"},{"title":"Update Group Permission Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/tenant-groups/{group_id}/permissions/{permission_id}","href":"/api-reference/tenant-groups/update-group-permission-handler"}]},{"group":"user-permissions","pages":[{"title":"List User Permissions Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/user-permissions","href":"/api-reference/user-permissions/list-user-permissions-handler"},{"title":"Create User Permission Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/user-permissions","href":"/api-reference/user-permissions/create-user-permission-handler"},{"title":"Delete User Permission Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/user-permissions/{permission_id}","href":"/api-reference/user-permissions/delete-user-permission-handler"},{"title":"Update User Permission Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/user-permissions/{permission_id}","href":"/api-reference/user-permissions/update-user-permission-handler"}]},{"group":"Workflow Definitions","pages":[{"title":"List Workflow Definitions Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/workflow-definitions","href":"/api-reference/workflow-definitions/list-workflow-definitions-handler"},{"title":"Create Workflow Definition Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/workflow-definitions","href":"/api-reference/workflow-definitions/create-workflow-definition-handler"},{"title":"Get Workflow Definition Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/workflow-definitions/{definition_id}","href":"/api-reference/workflow-definitions/get-workflow-definition-handler"},{"title":"Update Workflow Definition Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/workflow-definitions/{definition_id}","href":"/api-reference/workflow-definitions/update-workflow-definition-handler"},{"title":"Delete Workflow Definition Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/workflow-definitions/{definition_id}","href":"/api-reference/workflow-definitions/delete-workflow-definition-handler"},{"title":"Invoke Workflow Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/workflow-definitions/{definition_id}/invoke","href":"/api-reference/workflow-definitions/invoke-workflow-handler"},{"title":"List Workflow Runs Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/workflow-definitions/{definition_id}/runs","href":"/api-reference/workflow-definitions/list-workflow-runs-handler"}]},{"group":"Workflow Runs","pages":[{"title":"Get Workflow Run Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/workflow-runs/{run_id}","href":"/api-reference/workflow-runs/get-workflow-run-handler"},{"title":"Delete Workflow Run Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/workflow-runs/{run_id}","href":"/api-reference/workflow-runs/delete-workflow-run-handler"},{"title":"Workflow Run Callback Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/workflow-runs/{run_id}/callback","href":"/api-reference/workflow-runs/workflow-run-callback-handler"}]},{"group":"workflows","pages":[{"title":"List Dv Workflows Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/workflows/document_versions","href":"/api-reference/workflows/list-dv-workflows-handler"},{"title":"Get Dv Workflow Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/workflows/document_versions/{workflow_id}","href":"/api-reference/workflows/get-dv-workflow-handler"},{"title":"Dv Workflow Rerun Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/workflows/document_versions/{workflow_id}","href":"/api-reference/workflows/dv-workflow-rerun-handler"},{"title":"Get Temporal Workflow Status Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/workflows/{workflow_id}","href":"/api-reference/workflows/get-temporal-workflow-status-handler"},{"title":"Cancel Temporal Workflow Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/workflows/{workflow_id}","href":"/api-reference/workflows/cancel-temporal-workflow-handler"}]},{"group":"Feedback","pages":[{"title":"List Feedback Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/feedback","href":"/api-reference/feedback/list-feedback-handler"},{"title":"Submit Feedback Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/feedback","href":"/api-reference/feedback/submit-feedback-handler"},{"title":"Delete Feedback Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/feedback/{feedback_id}","href":"/api-reference/feedback/delete-feedback-handler"}]},{"group":"API Reference","pages":[{"title":"Root Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /","href":"/api-reference/root-handler"},{"title":"Health Check Handler","deprecated":null,"version":null,"openapi":"/openapi.yaml get /healthz","href":"/api-reference/health-check-handler"}]}]}]},"basePath":"","title":"Update Chunk Metadata Handler - Knowledge Stack","buildId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","deploymentId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DDP9JXtj.js","utils-8yQyvEtx.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CBCFR8Sn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-rQaXkUHa.js","snippetPresets-J5KpBTgV.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-DTNSD-0M.js","ApiExamples-BVxVH4Cj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BxdQ2vIi.js","shallow-BjV2tFiD.js","getApiPlaygroundDisplay-C_55tL4O.js","CodeSnippet-C0JpiCOC.js","CodeSnippets-w9Ps7djG.js","getPastedJson-BDfB-H8d.js","icon-g-kUkkO9.js","MethodPill-v4l6fq0h.js","DuplicateIcon-CvLo-CfU.js","createIcon-165clrrV.js","DynamicMarkdown-D3RQ-fEj.js","SectionHeading-vvo-3yLf.js","axios-vUo_bRtp.js","Markdown-CMT1uFWQ.js","clsx-C8f2yC9R.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CI2D8R2Y.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-k78Wrw_e.js"]}