{ "success": false, "data": null, "error": { "code": "INVALID_INPUT", "message": "invalid metadata edit: metadata field \"department\" must be of type string, got number" }, "meta": { "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", "latency_ms": 4.8 }}
Update one existing source’s metadata or ACL without re-ingesting its content. Changes also apply to the indexed chunks used by Query and List Context. See Metadata Filters for the metadata workflow.
PATCH /context/{id}/metadata
id is the ID you supplied at ingest, or the source ID HydraDB returned. The route PATCH /context/sources/{source_id}/metadata is a deprecated alias that still works; migrate to the route above. source_id and id identify the same source.
{ "success": false, "data": null, "error": { "code": "INVALID_INPUT", "message": "invalid metadata edit: metadata field \"department\" must be of type string, got number" }, "meta": { "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", "latency_ms": 4.8 }}
Request rules
collection is required. This endpoint does not default it.
At least one of database_metadata, additional_metadata, acl, or acl_inherit: true is required.
acl combined with acl_inherit: true is invalid. acl_inherit: false or omitted is a no-op and can accompany acl. Inheritance is rejected for uploads and sources without connector resource attribution.
database_metadata merges into the source’s metadata, and its keys must satisfy the database metadata schema when one exists. additional_metadata merges into the source’s free-form additional_metadata.
The endpoint does not accept metadata or document_metadata.
How updates apply
Metadata keys included in the request are added or overwritten. Omitted keys keep their existing values.
Sending acl replaces the entire stored ACL, so send the complete new list. [] or null revokes access for everyone. Omit acl to keep the stored list. See Query.
Sending acl_inherit: true removes the source’s own ACL and immediately uses its connector resource permissions. This can widen access. Later connector syncs can replace the ACL because ACL writes use last-writer-wins behavior. See Restore resource permissions.
The source must already exist. This endpoint does not create sources.
The endpoint edits one source at a time. Bulk metadata edits are not supported.
Updated metadata is visible to /query metadata filters and /context/list filters.
If an edited database metadata field has enable_dense_embedding or enable_sparse_embedding, HydraDB synchronously refreshes the relevant metadata search index and the response has vector_sync_required: true. Otherwise no vector refresh is needed and vector_sync_required is false.
Partial failures
A 200 response can still report an incomplete edit:
vector_sync_error: The metadata was saved but the dense or sparse vector store sync failed. vector_synced is absent. Retry the same idempotent edit to converge.
partial_commit: The edit was saved in one store but a later write failed. Retry the same edit.
vector_acl_synced absent after an acl edit: The new list is still enforced, but an added principal may miss this source in results until it is re-indexed.
Validation and errors
Status
When it happens
400
Missing database, missing collection, empty metadata payload, acl combined with acl_inherit: true, acl_inherit: true on a source without connector resource attribution, document_metadata supplied, unknown database metadata key when a schema exists, wrong type, reserved key, over-size payload, too-deep nesting, or null for a dense/sparse-enabled field.
404
Source does not exist for the (database, collection, id) scope.
500
The edit failed. Retry the same idempotent edit to converge.
Size limits
database_metadata is capped at 16 KiB. additional_metadata is capped at 1 KiB. See metadata size limits for how HydraDB measures these caps.Limits apply to the request payload, before merging with stored metadata. An oversized request returns 400 with the actual and maximum sizes:
{ "success": false, "data": null, "error": { "code": "INVALID_INPUT", "message": "invalid metadata edit: additional_metadata is too large (1065 bytes when serialized; the maximum is 1024). Reduce the number or size of metadata fields." }}
Related resources
Before this:Ingest Context: create the source and set its initial metadata
Before this:List Context: find the source ID and its collection
Send your API key as Authorization: Bearer <your_api_key>.
Path Parameters
id
string
required
context_id of the context to update.
Example:
"HydraDoc1234"
Body
application/json
Metadata update request
acl
string[]
Replaces the context's access-control list. Send the full list, [] or null for private, or ["__public__"] for every identified caller. Omit to leave it unchanged.
additional_metadata
object
Free-form values merged into the context's additional_metadata. At most 1 KiB as compact JSON.
Show child attributes
Example:
{ "author": "ada", "doc_version": 3 }
collection
string
Collection that holds the context. Required; this endpoint does not default it. Formerly sub_tenant_id.
Example:
"team_docs"
database
string
Database that holds the context. Required. Formerly tenant_id.
Example:
"acme_corp"
database_metadata
object
Values merged into the context's metadata. Keys must be declared in the schema when there is one. At most 16 KiB as compact JSON.
Show child attributes
Example:
{ "department": "legal", "priority": 7 }
document_metadata
object
deprecated
Deprecated: not accepted here; any non-null value returns 400. Use additional_metadata.
Show child attributes
sub_tenant_id
string
deprecated
Deprecated: use collection.
Example:
"team_docs"
tenant_id
string
deprecated
Deprecated: use database.
Example:
"acme_corp"
tenant_metadata
object
deprecated
Deprecated: use database_metadata. Still accepted; database_metadata wins when both are sent.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"HydraDB","colors":{"primary":"#FF571A","light":"#FF8A54","dark":"#CC4515"},"logo":{"light":"https://mintcdn.com/cortex-e852fafe/BS0KyNLwX-6ZV20u/logo/logo.png?fit=max\u0026auto=format\u0026n=BS0KyNLwX-6ZV20u\u0026q=85\u0026s=8344dc832de70bde023451b8be681c27","dark":"https://mintcdn.com/cortex-e852fafe/BS0KyNLwX-6ZV20u/logo/logo.png?fit=max\u0026auto=format\u0026n=BS0KyNLwX-6ZV20u\u0026q=85\u0026s=8344dc832de70bde023451b8be681c27"},"favicon":"https://mintcdn.com/cortex-e852fafe/s0NUEinSIEJq1NNf/favicon.png?fit=max\u0026auto=format\u0026n=s0NUEinSIEJq1NNf\u0026q=85\u0026s=e7babf84979b4a4cfdba698292f0160a","api":{"examples":{"languages":["python","javascript","curl"]}},"appearance":{"default":"dark"},"background":{"decoration":"grid","color":{"light":"#FFFFFF","dark":"#000000"}},"navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Website","href":"https://hydradb.com"}},"styling":{"codeblocks":"dark","latex":true},"integrations":{"posthog":{"apiKey":"phc_qH6psLVjkWQFAGSmTJoKkpVG9Tj5KUqzULfAn9mYdg79","apiHost":"https://us.i.posthog.com","sessionRecording":true}},"contextual":{"options":["copy","download-spec","chatgpt","claude"],"display":"header"},"markdown":{"instructions":"AGENTS.md is HydraDB's maintained agent guide. Read https://docs.hydradb.com/AGENTS.md once, then use its content. /llms.txt and /llms-full.txt redirect to the same guide; they are not separate documentation indexes. If the guide is already loaded, continue with it instead of fetching either alias or reloading the guide."},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cortex-e852fafe","hasAudioNarration":false,"actualSubdomain":"cortex-e852fafe","customDomains":["docs.hydradb.com"],"gitSource":{"type":"github","owner":"hydra-db","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"agentFeedback":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b081dd8f3da7f068e3ed54f","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"API Reference","count":69},{"language":"default","tag":"Guides","count":27},{"language":"default","tag":"Cookbooks","count":14},{"language":"default","tag":"Essentials","count":12},{"language":"default","tag":"Databases","count":10},{"language":"default","tag":"Webhooks","count":10},{"language":"default","tag":"Connectors","count":9},{"language":"default","tag":"Context","count":9},{"language":"default","tag":"Knowledge \u0026 Memories","count":7},{"language":"default","tag":"Tenants","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":where(.mt-8.lg\\:mt-0.flex.flex-col.gap-6.xl\\:hidden.max-h-\\[30rem\\]),:where([class*=\"mt-8\"][class*=\"lg:mt-0\"][class*=\"flex\"][class*=\"flex-col\"][class*=\"gap-6\"][class*=\"xl:hidden\"][class*=\"max-h-[30rem]\"]){display:none!important;visibility:hidden!important;opacity:0!important;height:0!important;width:0!important;padding:0!important;margin:0!important;position:absolute!important;clip:rect(0, 0, 0, 0)!important;overflow:hidden!important}.mdx-content:has(.api-before-related-resources){display:flex;flex-direction:column}.api-before-related-resources{display:none}.mdx-content span[id]:empty{scroll-margin-top:9.5rem}.mdx-content:has(.api-before-related-resources)>div:has(>.api-section){order:1}.mdx-content:has(.api-before-related-resources) .api-before-related-resources~*{order:2}.field-req{color:#ef4444;font-weight:bold;cursor:default}.field-rec{color:#eab308;font-size:0.6em;vertical-align:middle;cursor:default}.field-wrap{display:inline-block;outline:none}.field-name-row{display:inline-block}.field-type{display:inline-block;margin-left:0.35rem;color:#475569;font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;font-size:0.78rem;font-weight:700;line-height:1.25;overflow-wrap:anywhere}.dark .field-type,[data-theme=\"dark\"] .field-type{color:#cbd5e1}.field-type::before{content:\"(\"}.field-type::after{content:\")\"}.field-tip{position:absolute;bottom:calc(100% + 4px);left:0;z-index:50;display:none;padding:2px 8px;border:1px solid rgba(255,255,255,0.1);border-radius:4px;background:#1f2937;box-shadow:0 2px 8px rgba(0,0,0,0.3);color:#e5e7eb;font-size:0.7rem;font-weight:500;line-height:1.2;pointer-events:none;white-space:nowrap}.has-field-tip:hover .field-tip,.has-field-tip:focus .field-tip,.has-field-tip:focus-within .field-tip{display:inline-block}.peer.is-not-custom.is-not-center~[class~=\"peer-[.is-not-custom]:peer-[.is-not-center]:max-w-8xl\"]{max-width:104rem!important}"},{"filePath":"footer/footer.css","content":"@font-face{font-family:\"Geist Pixel Square\";src:url(\"/footer/fonts/GeistPixelSquare.woff2\") format(\"woff2\");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:\"Geist Pixel\";src:url(\"/footer/fonts/GeistPixel.woff2\") format(\"woff2\");font-weight:400;font-style:normal;font-display:swap}.hdb-footer{--hdb-bg: #000;--hdb-border: rgb(53, 53, 53);--hdb-grid: rgb(32, 32, 32);--hdb-fg: #fff;--hdb-fg-66: rgba(255, 255, 255, 0.66);--hdb-fg-60: rgba(255, 255, 255, 0.6);--hdb-accent: #ff571a;--hdb-ease: cubic-bezier(0.44, 0, 0.56, 1);position:relative;width:100%;box-sizing:border-box;margin:0;padding:80px 0;background:var(--hdb-bg);color:var(--hdb-fg);overflow:hidden;isolation:isolate;font-family:\"Geist Pixel Square\", ui-sans-serif, system-ui, -apple-system, sans-serif;font-size:16px;line-height:1.2;text-transform:capitalize;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.hdb-footer *,.hdb-footer *::before,.hdb-footer *::after{box-sizing:border-box}.hdb-footer p,.hdb-footer ul,.hdb-footer nav{margin:0;padding:0}.hdb-footer ul{list-style:none}.hdb-footer a{text-decoration:none}.hdb-footer img,.hdb-footer video{display:block}.hdb-footer__grid{position:absolute;inset:0;z-index:0;pointer-events:none;background-image:repeating-linear-gradient(\n 90deg, var(--hdb-grid) 0, var(--hdb-grid) 1px, transparent 1px, transparent 32px\n );background-size:32px 100%;background-position:center}.hdb-footer::before,.hdb-footer::after{content:\"\";position:absolute;left:0;right:0;height:1px;background:var(--hdb-border);z-index:2;pointer-events:none}.hdb-footer::before{top:80px}.hdb-footer::after{bottom:80px}.hdb-footer__card{position:relative;z-index:1;width:87%;margin:0 auto;display:flex;align-items:stretch;background:var(--hdb-bg)}.hdb-footer__card::after{content:\"\";position:absolute;inset:0;border:1px solid var(--hdb-border);pointer-events:none;z-index:4}.hdb-footer__left{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.hdb-footer__brand{position:relative;padding:32px}.hdb-footer__brand::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--hdb-border);z-index:3}.hdb-footer__brand-inner{display:flex;flex-direction:column;gap:24px;max-width:400px}.hdb-footer__logo{display:inline-block;width:180px;height:33px}.hdb-footer__logo img{width:180px;height:33px;object-fit:cover}.hdb-footer__tagline{font-family:\"Geist Pixel Square\", ui-sans-serif, system-ui, sans-serif;font-size:20px;line-height:1.1;letter-spacing:-0.01em;color:var(--hdb-fg)}.hdb-footer__cols{flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-between;gap:24px;padding:32px}.hdb-footer__cols-row{display:flex;flex-direction:row;gap:24px}.hdb-footer__col{display:flex;flex-direction:column;gap:12px}.hdb-footer__col:nth-child(1){width:151px}.hdb-footer__col:nth-child(2){width:174px}.hdb-footer__col:nth-child(3){width:175px}.hdb-footer__col:nth-child(4){width:174px}.hdb-footer__list{display:flex;flex-direction:column;gap:12px}.hdb-footer__head{display:block;font-family:\"Geist Pixel Square\", ui-sans-serif, system-ui, sans-serif;font-size:18px;line-height:1.2;letter-spacing:-0.01em;color:var(--hdb-fg-60);transition:color 0.4s var(--hdb-ease)}.hdb-footer__link{display:block;font-family:\"Geist Pixel\", ui-sans-serif, system-ui, sans-serif;font-size:14px;line-height:1.2;letter-spacing:-0.01em;color:var(--hdb-fg-60);transition:color 0.4s var(--hdb-ease)}.hdb-footer__head:hover,.hdb-footer__link:hover{color:var(--hdb-fg);text-decoration:underline;text-underline-offset:2px}.hdb-footer__col:nth-child(2) .hdb-footer__head,.hdb-footer__col:nth-child(3) .hdb-footer__head,.hdb-footer__col:nth-child(2) .hdb-footer__link,.hdb-footer__col:nth-child(3) .hdb-footer__list li:last-child .hdb-footer__link{letter-spacing:normal}.hdb-footer__badges{display:flex;flex-direction:row;gap:16px}.hdb-footer__badge{width:52px;height:52px;border-radius:50%;object-fit:cover}.hdb-footer__right{position:relative;flex:0 0 33%;min-width:0;display:flex;flex-direction:column}.hdb-footer__right::before{content:\"\";position:absolute;top:0;bottom:0;left:0;width:1px;background:var(--hdb-border);z-index:3}.hdb-footer__social{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:14px 32px}.hdb-footer__social::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--hdb-border);z-index:3}.hdb-footer__social-link{display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:4px;color:var(--hdb-fg-66);transition:color 0.4s var(--hdb-ease)}.hdb-footer__social-label{font-family:\"Geist Pixel Square\", ui-sans-serif, system-ui, sans-serif;font-size:16px;line-height:1.1;letter-spacing:-0.01em;color:var(--hdb-fg-66);white-space:nowrap;transition:color 0.4s var(--hdb-ease)}.hdb-footer__social-link:hover .hdb-footer__social-label{color:var(--hdb-fg)}.hdb-footer__icon{width:24px;height:24px;color:var(--hdb-fg);flex:none}.hdb-footer__video{position:relative;width:100%;height:396px;overflow:hidden}.hdb-footer__video::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--hdb-border);z-index:3}.hdb-footer__video-el{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hdb-footer__copy{display:flex;flex-direction:column;justify-content:center;padding:18px 32px;opacity:0.66}.hdb-footer__copy p{font-family:\"Geist Pixel Square\", ui-sans-serif, system-ui, sans-serif;font-size:16px;line-height:1.1;letter-spacing:-0.01em;color:var(--hdb-fg)}.hdb-footer a:focus-visible{outline:2px solid var(--hdb-accent);outline-offset:2px;border-radius:2px}@media (min-width: 1200px) and (max-width: 1439.98px){.hdb-footer__card{width:calc((100% - 80px) * 0.87)}.hdb-footer__social-label{display:none}}@media (min-width: 810px) and (max-width: 1199.98px){.hdb-footer__card{width:calc((100% - 80px) * 0.87);flex-direction:column}.hdb-footer__right{flex:1 1 auto;width:100%}.hdb-footer__right::before{top:0;bottom:auto;left:0;right:0;width:auto;height:1px}.hdb-footer__cols{display:block;padding:32px}.hdb-footer__cols-row{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;grid-auto-flow:column;gap:24px;align-items:start}.hdb-footer__col{width:auto!important}.hdb-footer__badges{margin-top:58px}.hdb-footer__video{height:360px}}@media (max-width: 809.98px){.hdb-footer__card{width:87%;flex-direction:column;padding:0 20px}.hdb-footer__right{flex:1 1 auto;width:100%}.hdb-footer__right::before{top:0;bottom:auto;left:0;right:0;width:auto;height:1px}.hdb-footer__brand{padding:20px}.hdb-footer__cols{display:flex;flex-direction:column;gap:24px;padding:20px}.hdb-footer__cols-row{display:flex;flex-direction:column;gap:24px}.hdb-footer__col{width:auto!important}.hdb-footer__badges{margin-top:0}.hdb-footer__social{padding:14px 20px}.hdb-footer__social-label{display:none}.hdb-footer__video{height:442px}.hdb-footer__copy{padding:18px 20px}}"}]}
{"page":{"pagePath":"api-reference/v2/endpoint/update-source-metadata","slug":"/api-reference/v2/endpoint/update-source-metadata","pageMetadata":{"title":"Update Source Metadata","description":"Merge database metadata and additional metadata into one existing source, without re-ingesting it.","openapi":"api-reference/v2/openapi.json PATCH /context/{id}/metadata","href":"/api-reference/v2/endpoint/update-source-metadata"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Merge database metadata and additional metadata into one existing source, without re-ingesting it.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Update one existing source’s metadata or ACL without re-ingesting its content. Changes also apply to the indexed chunks used by Query and List Context. See `,_jsx(_components.a,{href:`/essentials/v2/metadata#6-update-metadata-without-re-ingesting`,children:`Metadata Filters`}),` for the metadata workflow.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`PATCH`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` /context/{id}/metadata`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`id`}),` is the ID you supplied at ingest, or the source ID HydraDB returned. The route `,_jsx(_components.code,{children:`PATCH /context/sources/{source_id}/metadata`}),` is a deprecated alias that still works; migrate to the route above. `,_jsx(_components.code,{children:`source_id`}),` and `,_jsx(_components.code,{children:`id`}),` identify the same source.`]}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`request-rules`,children:`Request rules`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`collection`}),` is required. This endpoint does not default it.`]}),`\n`,_jsxs(_components.li,{children:[`At least one of `,_jsx(_components.code,{children:`database_metadata`}),`, `,_jsx(_components.code,{children:`additional_metadata`}),`, `,_jsx(_components.code,{children:`acl`}),`, or `,_jsx(_components.code,{children:`acl_inherit: true`}),` is required.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`acl`}),` combined with `,_jsx(_components.code,{children:`acl_inherit: true`}),` is invalid. `,_jsx(_components.code,{children:`acl_inherit: false`}),` or omitted is a no-op and can accompany `,_jsx(_components.code,{children:`acl`}),`. Inheritance is rejected for uploads and sources without connector resource attribution.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`database_metadata`}),` merges into the source’s `,_jsx(_components.code,{children:`metadata`}),`, and its keys must satisfy the database metadata schema when one exists. `,_jsx(_components.code,{children:`additional_metadata`}),` merges into the source’s free-form `,_jsx(_components.code,{children:`additional_metadata`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`The endpoint does not accept `,_jsx(_components.code,{children:`metadata`}),` or `,_jsx(_components.code,{children:`document_metadata`}),`.`]}),`\n`]}),`\n`,_jsx(`span`,{id:`behavior`}),`\n`,_jsx(Heading,{level:`2`,id:`how-updates-apply`,children:`How updates apply`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Metadata keys included in the request are added or overwritten. Omitted keys keep their existing values.`}),`\n`,_jsxs(_components.li,{children:[`Sending `,_jsx(_components.code,{children:`acl`}),` replaces the entire stored ACL, so send the complete new list. `,_jsx(_components.code,{children:`[]`}),` or `,_jsx(_components.code,{children:`null`}),` revokes access for everyone. Omit `,_jsx(_components.code,{children:`acl`}),` to keep the stored list. See `,_jsx(_components.a,{href:`/essentials/v2/query#6-query-on-behalf-of-a-user`,children:`Query`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Sending `,_jsx(_components.code,{children:`acl_inherit: true`}),` removes the source’s own ACL and immediately uses its connector resource permissions. This can widen access. Later connector syncs can replace the ACL because ACL writes use last-writer-wins behavior. See `,_jsx(_components.a,{href:`/essentials/v2/connectors#restore-resource-permissions`,children:`Restore resource permissions`}),`.`]}),`\n`,_jsx(_components.li,{children:`The source must already exist. This endpoint does not create sources.`}),`\n`,_jsx(_components.li,{children:`The endpoint edits one source at a time. Bulk metadata edits are not supported.`}),`\n`,_jsxs(_components.li,{children:[`Updated metadata is visible to `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/query`,children:_jsx(_components.code,{children:`/query`})}),` metadata filters and `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/list-context`,children:_jsx(_components.code,{children:`/context/list`})}),` filters.`]}),`\n`,_jsxs(_components.li,{children:[`If an edited database metadata field has `,_jsx(_components.code,{children:`enable_dense_embedding`}),` or `,_jsx(_components.code,{children:`enable_sparse_embedding`}),`, HydraDB synchronously refreshes the relevant metadata search index and the response has `,_jsx(_components.code,{children:`vector_sync_required: true`}),`. Otherwise no vector refresh is needed and `,_jsx(_components.code,{children:`vector_sync_required`}),` is `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`partial-failures`,children:`Partial failures`}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`200`}),` response can still report an incomplete edit:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`vector_sync_error`}),`:`]}),` The metadata was saved but the dense or sparse vector store sync failed. `,_jsx(_components.code,{children:`vector_synced`}),` is absent. Retry the same idempotent edit to converge.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`partial_commit`}),`:`]}),` The edit was saved in one store but a later write failed. Retry the same edit.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`vector_acl_synced`}),` absent after an `,_jsx(_components.code,{children:`acl`}),` edit:`]}),` The new list is still enforced, but an added principal may miss this source in results until it is re-indexed.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`validation-and-errors`,children:`Validation and errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`When it happens`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`Missing `,_jsx(_components.code,{children:`database`}),`, missing `,_jsx(_components.code,{children:`collection`}),`, empty metadata payload, `,_jsx(_components.code,{children:`acl`}),` combined with `,_jsx(_components.code,{children:`acl_inherit: true`}),`, `,_jsx(_components.code,{children:`acl_inherit: true`}),` on a source without connector resource attribution, `,_jsx(_components.code,{children:`document_metadata`}),` supplied, unknown database metadata key when a schema exists, wrong type, reserved key, over-size payload, too-deep nesting, or `,_jsx(_components.code,{children:`null`}),` for a dense/sparse-enabled field.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsxs(_components.td,{children:[`Source does not exist for the `,_jsx(_components.code,{children:`(database, collection, id)`}),` scope.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`The edit failed. Retry the same idempotent edit to converge.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`size-limits`,children:`Size limits`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`database_metadata`}),` is capped at `,_jsx(_components.strong,{children:`16 KiB`}),`. `,_jsx(_components.code,{children:`additional_metadata`}),` is capped at `,_jsx(_components.strong,{children:`1 KiB`}),`. See `,_jsx(_components.a,{href:`/essentials/v2/metadata#stored-metadata`,children:`metadata size limits`}),` for how HydraDB measures these caps.`]}),`\n`,_jsxs(_components.p,{children:[`Limits apply to the request payload, before merging with stored metadata. An oversized request returns `,_jsx(_components.code,{children:`400`}),` with the actual and maximum sizes:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"INVALID_INPUT\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"invalid metadata edit: additional_metadata is too large (1065 bytes when serialized; the maximum is 1024). Reduce the number or size of metadata fields.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(`div`,{className:`api-before-related-resources`}),`\n`,_jsx(Heading,{level:`2`,id:`related-resources`,children:`Related resources`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Before this:`}),` `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/ingest-context`,children:`Ingest Context`}),`: create the source and set its initial metadata`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Before this:`}),` `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/list-context`,children:`List Context`}),`: find the source ID and its collection`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`After this:`}),` `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/query`,children:`Query`}),`: filter on the updated metadata`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Guide:`}),` `,_jsx(_components.a,{href:`/essentials/v2/metadata`,children:`Metadata Filters`})]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Update Source Metadata","description":"Merge database metadata and additional metadata into one existing source, without re-ingesting it.","openapi":"api-reference/v2/openapi.json PATCH /context/{id}/metadata","href":"/api-reference/v2/endpoint/update-source-metadata"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,RequestExample,ResponseExample,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Update one existing source’s metadata or ACL without re-ingesting its content. Changes also apply to the indexed chunks used by Query and List Context. See `,_jsx(_components.a,{href:`/essentials/v2/metadata#6-update-metadata-without-re-ingesting`,children:`Metadata Filters`}),` for the metadata workflow.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`PATCH`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` /context/{id}/metadata`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`id`}),` is the ID you supplied at ingest, or the source ID HydraDB returned. The route `,_jsx(_components.code,{children:`PATCH /context/sources/{source_id}/metadata`}),` is a deprecated alias that still works; migrate to the route above. `,_jsx(_components.code,{children:`source_id`}),` and `,_jsx(_components.code,{children:`id`}),` identify the same source.`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Python SDK`,numberOfLines:`7`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`response = client.context.update_source_metadata(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"policy_main\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` database`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"acme_corp\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` collection`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"team_docs\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` database_metadata`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`={`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"department\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"legal\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"priority\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`7`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` additional_metadata`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`={`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"author\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Legal Team\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"doc_version\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript SDK`,numberOfLines:`7`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`context`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`updateSourceMetadata`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` id:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"policy_main\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` database:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"acme_corp\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` collection:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"team_docs\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` databaseMetadata:`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`department:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"legal\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`priority:`}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:` 7`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` additionalMetadata:`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`author:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Legal Team\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`doc_version:`}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:` 3`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`16`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.hydradb.com/context/policy_main/metadata'`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`$HYDRADB_API_KEY`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"API-Version: 2\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"database\": \"acme_corp\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"collection\": \"team_docs\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"database_metadata\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"department\": \"legal\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"priority\": 7`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"additional_metadata\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"author\": \"Legal Team\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"doc_version\": 3`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`Success`,numberOfLines:`19`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"policy_main\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"database\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"acme_corp\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"collection\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"team_docs\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"database_metadata_keys\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"department\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"priority\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"additional_metadata_keys\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"author\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"doc_version\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"vector_sync_required\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"chunk_rows_matched\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`4`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"chunk_rows_modified\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`4`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"meta\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"9d13aef4-02f4-4e73-8c62-4c2601d04f9d\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"latency_ms\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`12.3`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Dense or sparse metadata sync`,numberOfLines:`21`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"policy_main\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"database\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"acme_corp\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"collection\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"team_docs\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"database_metadata_keys\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"summary_label\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"additional_metadata_keys\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"vector_sync_required\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"vector_synced\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"vector_rows_synced\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`4`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"chunk_rows_matched\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`4`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"chunk_rows_modified\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`4`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"meta\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"9d13aef4-02f4-4e73-8c62-4c2601d04f9d\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"latency_ms\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`28.9`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Failure`,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"INVALID_INPUT\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"invalid metadata edit: metadata field `}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`department`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` must be of type string, got number\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"meta\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"9d13aef4-02f4-4e73-8c62-4c2601d04f9d\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"latency_ms\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`4.8`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`request-rules`,children:`Request rules`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`collection`}),` is required. This endpoint does not default it.`]}),`\n`,_jsxs(_components.li,{children:[`At least one of `,_jsx(_components.code,{children:`database_metadata`}),`, `,_jsx(_components.code,{children:`additional_metadata`}),`, `,_jsx(_components.code,{children:`acl`}),`, or `,_jsx(_components.code,{children:`acl_inherit: true`}),` is required.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`acl`}),` combined with `,_jsx(_components.code,{children:`acl_inherit: true`}),` is invalid. `,_jsx(_components.code,{children:`acl_inherit: false`}),` or omitted is a no-op and can accompany `,_jsx(_components.code,{children:`acl`}),`. Inheritance is rejected for uploads and sources without connector resource attribution.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`database_metadata`}),` merges into the source’s `,_jsx(_components.code,{children:`metadata`}),`, and its keys must satisfy the database metadata schema when one exists. `,_jsx(_components.code,{children:`additional_metadata`}),` merges into the source’s free-form `,_jsx(_components.code,{children:`additional_metadata`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`The endpoint does not accept `,_jsx(_components.code,{children:`metadata`}),` or `,_jsx(_components.code,{children:`document_metadata`}),`.`]}),`\n`]}),`\n`,_jsx(`span`,{id:`behavior`}),`\n`,_jsx(Heading,{level:`2`,id:`how-updates-apply`,children:`How updates apply`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Metadata keys included in the request are added or overwritten. Omitted keys keep their existing values.`}),`\n`,_jsxs(_components.li,{children:[`Sending `,_jsx(_components.code,{children:`acl`}),` replaces the entire stored ACL, so send the complete new list. `,_jsx(_components.code,{children:`[]`}),` or `,_jsx(_components.code,{children:`null`}),` revokes access for everyone. Omit `,_jsx(_components.code,{children:`acl`}),` to keep the stored list. See `,_jsx(_components.a,{href:`/essentials/v2/query#6-query-on-behalf-of-a-user`,children:`Query`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Sending `,_jsx(_components.code,{children:`acl_inherit: true`}),` removes the source’s own ACL and immediately uses its connector resource permissions. This can widen access. Later connector syncs can replace the ACL because ACL writes use last-writer-wins behavior. See `,_jsx(_components.a,{href:`/essentials/v2/connectors#restore-resource-permissions`,children:`Restore resource permissions`}),`.`]}),`\n`,_jsx(_components.li,{children:`The source must already exist. This endpoint does not create sources.`}),`\n`,_jsx(_components.li,{children:`The endpoint edits one source at a time. Bulk metadata edits are not supported.`}),`\n`,_jsxs(_components.li,{children:[`Updated metadata is visible to `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/query`,children:_jsx(_components.code,{children:`/query`})}),` metadata filters and `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/list-context`,children:_jsx(_components.code,{children:`/context/list`})}),` filters.`]}),`\n`,_jsxs(_components.li,{children:[`If an edited database metadata field has `,_jsx(_components.code,{children:`enable_dense_embedding`}),` or `,_jsx(_components.code,{children:`enable_sparse_embedding`}),`, HydraDB synchronously refreshes the relevant metadata search index and the response has `,_jsx(_components.code,{children:`vector_sync_required: true`}),`. Otherwise no vector refresh is needed and `,_jsx(_components.code,{children:`vector_sync_required`}),` is `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`partial-failures`,children:`Partial failures`}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`200`}),` response can still report an incomplete edit:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`vector_sync_error`}),`:`]}),` The metadata was saved but the dense or sparse vector store sync failed. `,_jsx(_components.code,{children:`vector_synced`}),` is absent. Retry the same idempotent edit to converge.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`partial_commit`}),`:`]}),` The edit was saved in one store but a later write failed. Retry the same edit.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`vector_acl_synced`}),` absent after an `,_jsx(_components.code,{children:`acl`}),` edit:`]}),` The new list is still enforced, but an added principal may miss this source in results until it is re-indexed.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`validation-and-errors`,children:`Validation and errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`When it happens`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`Missing `,_jsx(_components.code,{children:`database`}),`, missing `,_jsx(_components.code,{children:`collection`}),`, empty metadata payload, `,_jsx(_components.code,{children:`acl`}),` combined with `,_jsx(_components.code,{children:`acl_inherit: true`}),`, `,_jsx(_components.code,{children:`acl_inherit: true`}),` on a source without connector resource attribution, `,_jsx(_components.code,{children:`document_metadata`}),` supplied, unknown database metadata key when a schema exists, wrong type, reserved key, over-size payload, too-deep nesting, or `,_jsx(_components.code,{children:`null`}),` for a dense/sparse-enabled field.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsxs(_components.td,{children:[`Source does not exist for the `,_jsx(_components.code,{children:`(database, collection, id)`}),` scope.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`The edit failed. Retry the same idempotent edit to converge.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`size-limits`,children:`Size limits`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`database_metadata`}),` is capped at `,_jsx(_components.strong,{children:`16 KiB`}),`. `,_jsx(_components.code,{children:`additional_metadata`}),` is capped at `,_jsx(_components.strong,{children:`1 KiB`}),`. See `,_jsx(_components.a,{href:`/essentials/v2/metadata#stored-metadata`,children:`metadata size limits`}),` for how HydraDB measures these caps.`]}),`\n`,_jsxs(_components.p,{children:[`Limits apply to the request payload, before merging with stored metadata. An oversized request returns `,_jsx(_components.code,{children:`400`}),` with the actual and maximum sizes:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"INVALID_INPUT\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"invalid metadata edit: additional_metadata is too large (1065 bytes when serialized; the maximum is 1024). Reduce the number or size of metadata fields.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(`div`,{className:`api-before-related-resources`}),`\n`,_jsx(Heading,{level:`2`,id:`related-resources`,children:`Related resources`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Before this:`}),` `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/ingest-context`,children:`Ingest Context`}),`: create the source and set its initial metadata`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Before this:`}),` `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/list-context`,children:`List Context`}),`: find the source ID and its collection`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`After this:`}),` `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/query`,children:`Query`}),`: filter on the updated metadata`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Guide:`}),` `,_jsx(_components.a,{href:`/essentials/v2/metadata`,children:`Metadata Filters`})]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Update Source Metadata","description":"Merge database metadata and additional metadata into one existing source, without re-ingesting it.","openapi":"api-reference/v2/openapi.json PATCH /context/{id}/metadata","href":"/api-reference/v2/endpoint/update-source-metadata"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request rules","slug":"request-rules","depth":2,"children":[]},{"title":"How updates apply","slug":"how-updates-apply","depth":2,"children":[]},{"title":"Partial failures","slug":"partial-failures","depth":2,"children":[]},{"title":"Validation and errors","slug":"validation-and-errors","depth":2,"children":[{"title":"Size limits","slug":"size-limits","depth":3,"children":[]}]},{"title":"Related resources","slug":"related-resources","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Python SDK","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">response = client.context.update_source_metadata(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"policy_main\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> database\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"acme_corp\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> collection\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"team_docs\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> database_metadata\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">={\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"department\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"legal\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"priority\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\">7\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> additional_metadata\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">={\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"author\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Legal Team\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"doc_version\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\">3\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"TypeScript SDK","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"typescript\">\u003ccode language=\"typescript\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#4FC1FF;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> = \u003c/span>\u003cspan style=\"color:#C586C0;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">context\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">updateSourceMetadata\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> id:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"policy_main\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> database:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"acme_corp\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> collection:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"team_docs\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> databaseMetadata:\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">department:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"legal\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">priority:\u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\"> 7\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> additionalMetadata:\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">author:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"Legal Team\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">doc_version:\u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\"> 3\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"16\">\u003cspan class=\"line\">\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> PATCH\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> 'https://api.hydradb.com/context/policy_main/metadata'\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">$HYDRADB_API_KEY\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"API-Version: 2\"\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"database\": \"acme_corp\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"collection\": \"team_docs\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"database_metadata\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"department\": \"legal\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"priority\": 7\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"additional_metadata\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"author\": \"Legal Team\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"doc_version\": 3\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Success","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"19\">\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"policy_main\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"database\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"acme_corp\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"collection\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"team_docs\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"updated\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"database_metadata_keys\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"department\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"priority\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"additional_metadata_keys\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"author\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"doc_version\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"vector_sync_required\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"chunk_rows_matched\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\">4\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"chunk_rows_modified\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\">4\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"meta\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"request_id\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"9d13aef4-02f4-4e73-8c62-4c2601d04f9d\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"latency_ms\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\">12.3\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Dense or sparse metadata sync","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"policy_main\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"database\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"acme_corp\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"collection\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"team_docs\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"updated\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"database_metadata_keys\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"summary_label\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"additional_metadata_keys\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"vector_sync_required\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"vector_synced\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"vector_rows_synced\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\">4\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"chunk_rows_matched\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\">4\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"chunk_rows_modified\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\">4\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"meta\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"request_id\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"9d13aef4-02f4-4e73-8c62-4c2601d04f9d\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"latency_ms\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\">28.9\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Failure","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"INVALID_INPUT\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"invalid metadata edit: metadata field \u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">department\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> must be of type string, got number\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"meta\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"request_id\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"9d13aef4-02f4-4e73-8c62-4c2601d04f9d\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"latency_ms\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\">4.8\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/_mintlify/custom/cortex-e852fafe/e7a491fa57f47ac4/reo.js","/_mintlify/custom/cortex-e852fafe/6addee7178460057/footer.js"],"openApiReferenceData":{"operation":{"description":"Merge database metadata and additional metadata into one existing source, without re-ingesting it.","parameters":["526515fe-5b94-4e09-a06e-37fd00a564e5"],"requestBody":"bc97c476-c9b7-4aa6-877d-f5184b6d93e7","responses":{"200":"739a0143-7038-4b87-b2cd-437c0716f5bc","400":"f92ed55e-b83e-4a58-b11f-f1de75abf278","404":"f0493fb1-57ed-4f62-b2ff-8fcb8fb5a601","500":"56903507-9d43-43ec-9c34-42e7e40d36df"},"security":["89532474-2e35-44fe-93bb-618cf1434bc5"],"summary":"Update source metadata","tags":["context"],"x-fern-sdk-group-name":"context","method":"patch","type":"path","servers":["e582ccd8-d5b8-418b-9825-737cb4a46e19"],"path":"/context/{id}/metadata","baseUrlOptions":["https://api.hydradb.com"],"title":"Update source metadata","codeSamples":[],"requestExampleLanguages":["python","javascript","bash"],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"python","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes dark-plus dark-plus","style":{"backgroundColor":"#0B0C0E","--shiki-dark-bg":"#0B0C0E","color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"language":"python","children":{"type":"code","key":null,"ref":null,"props":{"language":"python","numberOfLines":"7","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"response = client.context.update_source_metadata("}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"policy_main\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" database"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"acme_corp\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" collection"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"team_docs\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" database_metadata"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"={"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"department\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"legal\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"priority\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":"7"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"},"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" additional_metadata"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"={"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"author\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"Legal Team\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"doc_version\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":"3"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"},"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n"]}}}},"filename":"Python SDK"},{"dropdown":false,"language":"typescript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes dark-plus dark-plus","style":{"backgroundColor":"#0B0C0E","--shiki-dark-bg":"#0B0C0E","color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"language":"typescript","children":{"type":"code","key":null,"ref":null,"props":{"language":"typescript","numberOfLines":"7","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#4FC1FF","--shiki-dark":"#4FC1FF"},"children":" response"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" = "}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#C586C0","--shiki-dark":"#C586C0"},"children":"await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" client"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":"context"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#DCDCAA","--shiki-dark":"#DCDCAA"},"children":"updateSourceMetadata"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"({"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" id:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"policy_main\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" database:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"acme_corp\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" collection:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"team_docs\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" databaseMetadata:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":"department:"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"legal\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":"priority:"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":" 7"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" },"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" additionalMetadata:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":"author:"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"Legal Team\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":"doc_version:"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":" 3"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" },"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"});"}}}},"\n"]}}}},"filename":"TypeScript SDK"},{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes dark-plus dark-plus","style":{"backgroundColor":"#0B0C0E","--shiki-dark-bg":"#0B0C0E","color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"16","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#DCDCAA","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":" -X"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" PATCH"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" 'https://api.hydradb.com/context/policy_main/metadata'"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#D7BA7D","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"Authorization: Bearer "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":"$HYDRADB_API_KEY"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#D7BA7D","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"API-Version: 2\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D7BA7D","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"Content-Type: application/json\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D7BA7D","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":" -d"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" '{"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"database\": \"acme_corp\","}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"collection\": \"team_docs\","}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"database_metadata\": {"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"department\": \"legal\","}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"priority\": 7"}}}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" },"}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"additional_metadata\": {"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"author\": \"Legal Team\","}}}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"doc_version\": 3"}}}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" }"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" }'"}}}},"\n"]}}}},"filename":"cURL"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes dark-plus dark-plus","style":{"backgroundColor":"#0B0C0E","--shiki-dark-bg":"#0B0C0E","color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"19","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"success\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"true"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"data\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"policy_main\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"database\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"acme_corp\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"collection\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"team_docs\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"updated\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"true"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"database_metadata_keys\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": ["}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"department\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"priority\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"],"}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"additional_metadata_keys\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": ["}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"author\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"doc_version\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"],"}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"vector_sync_required\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"false"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"chunk_rows_matched\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":"4"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"chunk_rows_modified\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":"4"}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"error\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"null"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"meta\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"request_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"9d13aef4-02f4-4e73-8c62-4c2601d04f9d\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"latency_ms\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":"12.3"}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Success"},{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes dark-plus dark-plus","style":{"backgroundColor":"#0B0C0E","--shiki-dark-bg":"#0B0C0E","color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"21","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"success\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"true"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"data\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"policy_main\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"database\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"acme_corp\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"collection\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"team_docs\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"updated\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"true"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"database_metadata_keys\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": ["}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"summary_label\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"],"}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"additional_metadata_keys\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": [],"}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"vector_sync_required\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"true"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"vector_synced\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"true"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"vector_rows_synced\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":"4"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"chunk_rows_matched\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":"4"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"chunk_rows_modified\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":"4"}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"error\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"null"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"meta\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"request_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"9d13aef4-02f4-4e73-8c62-4c2601d04f9d\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"latency_ms\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":"28.9"}}]}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Dense or sparse metadata sync"},{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes dark-plus dark-plus","style":{"backgroundColor":"#0B0C0E","--shiki-dark-bg":"#0B0C0E","color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"12","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"success\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"false"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"data\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"null"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"error\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"code\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"INVALID_INPUT\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"message\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"invalid metadata edit: metadata field "}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D7BA7D","--shiki-dark":"#D7BA7D"},"children":"\\\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"department"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#D7BA7D","--shiki-dark":"#D7BA7D"},"children":"\\\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" must be of type string, got number\""}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"meta\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"request_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"9d13aef4-02f4-4e73-8c62-4c2601d04f9d\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"latency_ms\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":"4.8"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Failure"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{"526515fe-5b94-4e09-a06e-37fd00a564e5":{"description":"`context_id` of the context to update.","in":"path","name":"id","required":true,"schema":{"example":"HydraDoc1234","type":"string","isRequired":true,"description":"`context_id` of the context to update.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"properties":{"acl":{"description":"Replaces the context's access-control list. Send the full list, `[]` or `null` for private, or `[\"__public__\"]` for every identified caller. Omit to leave it unchanged.","items":{"type":"string","uniqueKey":"acl.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueItems":false,"uniqueKey":"acl","typeLabel":"string[]"},"additional_metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"additional_metadata.additionalProperties","typeLabel":"any"},"description":"Free-form values merged into the context's `additional_metadata`. At most 1 KiB as compact JSON.","example":{"author":"ada","doc_version":3},"type":"object","uniqueKey":"additional_metadata","typeLabel":"object"},"collection":{"description":"Collection that holds the context. Required; this endpoint does not default it. Formerly `sub_tenant_id`.","example":"team_docs","type":"string","uniqueKey":"collection","typeLabel":"string"},"database":{"description":"Database that holds the context. Required. Formerly `tenant_id`.","example":"acme_corp","type":"string","uniqueKey":"database","typeLabel":"string"},"database_metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"database_metadata.additionalProperties","typeLabel":"any"},"description":"Values merged into the context's `metadata`. Keys must be declared in the schema when there is one. At most 16 KiB as compact JSON.","example":{"department":"legal","priority":7},"type":"object","uniqueKey":"database_metadata","typeLabel":"object"},"document_metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"document_metadata.additionalProperties","typeLabel":"any"},"deprecated":true,"description":"Deprecated: not accepted here; any non-null value returns 400. Use `additional_metadata`.","type":"object","x-deprecated":"true","uniqueKey":"document_metadata","typeLabel":"object"},"sub_tenant_id":{"deprecated":true,"description":"Deprecated: use `collection`.","example":"team_docs","type":"string","x-deprecated":"true","uniqueKey":"sub_tenant_id","typeLabel":"string"},"tenant_id":{"deprecated":true,"description":"Deprecated: use `database`.","example":"acme_corp","type":"string","x-deprecated":"true","uniqueKey":"tenant_id","typeLabel":"string"},"tenant_metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"tenant_metadata.additionalProperties","typeLabel":"any"},"deprecated":true,"description":"Deprecated: use `database_metadata`. Still accepted; `database_metadata` wins when both are sent.","example":{"department":"legal","priority":7},"type":"object","x-deprecated":"true","uniqueKey":"tenant_metadata","typeLabel":"object"}},"title":"HandlerContextMetadataUpdateRequest","type":"object","uniqueKey":"","typeLabel":"HandlerContextMetadataUpdateRequest · object"},"examples":{"Example":{"title":"Example","value":{"acl":["\u003cstring>"],"additional_metadata":{"author":"ada","doc_version":3},"collection":"team_docs","database":"acme_corp","database_metadata":{"department":"legal","priority":7},"document_metadata":{},"sub_tenant_id":"team_docs","tenant_id":"acme_corp","tenant_metadata":{"department":"legal","priority":7}}}},"exampleType":"generated"}},"description":"Metadata update request","required":true,"exampleType":"generated"},"responses":{"739a0143-7038-4b87-b2cd-437c0716f5bc":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"acl_updated":{"description":"`true` when the request replaced the context's `acl`. Omitted otherwise.","example":true,"type":"boolean","uniqueKey":"data.acl_updated","typeLabel":"boolean"},"additional_metadata_keys":{"description":"Additional metadata keys included in the update request.","items":{"type":"string","uniqueKey":"data.additional_metadata_keys.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueItems":false,"uniqueKey":"data.additional_metadata_keys","typeLabel":"string[]"},"chunk_rows_matched":{"description":"Number of stored chunks of the context matched by the update.","example":1,"type":"integer","uniqueKey":"data.chunk_rows_matched","typeLabel":"integer"},"chunk_rows_modified":{"description":"Number of stored chunks changed by the update.","example":1,"type":"integer","uniqueKey":"data.chunk_rows_modified","typeLabel":"integer"},"collection":{"description":"Collection that holds the context.","example":"team_docs","type":"string","uniqueKey":"data.collection","typeLabel":"string"},"database":{"description":"Database named in the request.","example":"acme_corp","type":"string","uniqueKey":"data.database","typeLabel":"string"},"database_metadata_keys":{"description":"Keys of `database_metadata` included in the request.","example":["department","priority"],"items":{"type":"string","uniqueKey":"data.database_metadata_keys.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueItems":false,"uniqueKey":"data.database_metadata_keys","typeLabel":"string[]"},"id":{"description":"`context_id` of the updated context.","example":"HydraDoc1234","type":"string","uniqueKey":"data.id","typeLabel":"string"},"milvus_rows_synced":{"deprecated":true,"description":"Deprecated: use `vector_rows_synced`. Same value.","example":1,"type":"integer","x-deprecated":"true","uniqueKey":"data.milvus_rows_synced","typeLabel":"integer"},"milvus_sync_required":{"deprecated":true,"description":"Deprecated: use `vector_sync_required`. Same value.","example":true,"type":"boolean","x-deprecated":"true","uniqueKey":"data.milvus_sync_required","typeLabel":"boolean"},"milvus_synced":{"deprecated":true,"description":"Deprecated: use `vector_synced`. Same value.","example":true,"type":"boolean","x-deprecated":"true","uniqueKey":"data.milvus_synced","typeLabel":"boolean"},"partial_commit":{"description":"Present when only part of the edit was saved; the text describes the failure. Retry the same edit; it is idempotent.","type":"string","uniqueKey":"data.partial_commit","typeLabel":"string"},"sub_tenant_id":{"deprecated":true,"description":"Deprecated: use `collection`. Same value.","example":"team_docs","type":"string","x-deprecated":"true","uniqueKey":"data.sub_tenant_id","typeLabel":"string"},"tenant_id":{"deprecated":true,"description":"Deprecated: use `database`. Same value.","example":"acme_corp","type":"string","x-deprecated":"true","uniqueKey":"data.tenant_id","typeLabel":"string"},"tenant_metadata_keys":{"deprecated":true,"description":"Deprecated: use `database_metadata_keys`. Same value.","items":{"type":"string","uniqueKey":"data.tenant_metadata_keys.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueItems":false,"x-deprecated":"true","uniqueKey":"data.tenant_metadata_keys","typeLabel":"string[]"},"updated":{"description":"`true` when the context was updated.","example":true,"type":"boolean","uniqueKey":"data.updated","typeLabel":"boolean"},"vector_acl_synced":{"description":"`true` when the new `acl` also reached the search index. If absent after an `acl` update, newly added principals may not find the context until it is re-indexed.","example":true,"type":"boolean","uniqueKey":"data.vector_acl_synced","typeLabel":"boolean"},"vector_rows_synced":{"description":"Number of chunks updated in the search index when `vector_sync_required` is `true`. Absent otherwise.","example":1,"type":"integer","uniqueKey":"data.vector_rows_synced","typeLabel":"integer"},"vector_sync_error":{"description":"Present when a required search index update failed. The edit itself was saved; retry the same edit to converge it.","type":"string","uniqueKey":"data.vector_sync_error","typeLabel":"string"},"vector_sync_required":{"description":"`true` when at least one changed attribute has dense or sparse embedding enabled, so the search index must be updated too.","example":true,"type":"boolean","uniqueKey":"data.vector_sync_required","typeLabel":"boolean"},"vector_synced":{"description":"`true` when the required search index update completed. Absent when no update was needed or it failed; see `vector_sync_error`.","example":true,"type":"boolean","uniqueKey":"data.vector_synced","typeLabel":"boolean"}},"title":"GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult","type":"object","example":{"acl_updated":true,"chunk_rows_matched":1,"chunk_rows_modified":1,"collection":"team_docs","database":"acme_corp","database_metadata_keys":["department","priority"],"id":"HydraDoc1234","milvus_rows_synced":1,"milvus_sync_required":true,"milvus_synced":true,"sub_tenant_id":"team_docs","tenant_id":"acme_corp","updated":true,"vector_acl_synced":true,"vector_rows_synced":1,"vector_sync_required":true,"vector_synced":true},"uniqueKey":"data","typeLabel":"GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult · object"},"error":{"oneOf":[{"type":"object","title":"HandlerApiError","description":"Error details on failure, or null on success.","example":null,"properties":{"code":{"description":"Machine-readable error code (e.g. `DATABASE_NOT_FOUND`).","example":"DATABASE_NOT_FOUND","type":"string","uniqueKey":"error.oneOf.0.code","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"error.oneOf.0.details.additionalProperties","typeLabel":"string"},"description":"Extra facts about the error, as string pairs. Omitted when there are none.","type":"object","uniqueKey":"error.oneOf.0.details","typeLabel":"object"},"message":{"description":"Human-readable description of the error.","example":"Database not found","type":"string","uniqueKey":"error.oneOf.0.message","typeLabel":"string"},"param":{"description":"The request field that caused the error. Omitted when no single field is at fault.","type":"string","uniqueKey":"error.oneOf.0.param","typeLabel":"string"}},"uniqueKey":"error.oneOf.0","typeLabel":"HandlerApiError · object"},{"type":"null","title":"No error","description":"Error details on failure, or null on success.","example":null,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"uniqueKey":"error","typeLabel":"HandlerApiError · object | null"},"meta":{"properties":{"api_version":{"description":"Version of the API that served the request, for example `2.0.1`. Always present.","type":"string","uniqueKey":"meta.api_version","typeLabel":"string"},"collection":{"description":"Collection scope. Defaults to the default collection when omitted. Formerly `sub_tenant_id`; the `sub_tenant_id` alias is still accepted (deprecated).","example":"team_docs","type":"string","uniqueKey":"meta.collection","typeLabel":"string"},"database":{"description":"Owning database. Formerly `tenant_id`; the `tenant_id` alias is still accepted (deprecated).","example":"acme_corp","type":"string","uniqueKey":"meta.database","typeLabel":"string"},"deprecation":{"description":"Migration notices for this request, present only when it used a deprecated route, field or selector. The status code is unaffected.","items":{"properties":{"deprecated":{"description":"Whether this response concerns a deprecated field or route.","example":true,"type":"boolean","uniqueKey":"meta.deprecation.items.[INDEX].deprecated","typeLabel":"boolean"},"deprecated_field":{"description":"The deprecated field name.","example":"tenant_id","type":"string","uniqueKey":"meta.deprecation.items.[INDEX].deprecated_field","typeLabel":"string"},"deprecated_since":{"description":"API version when the field was deprecated.","example":"2.0.1","type":"string","uniqueKey":"meta.deprecation.items.[INDEX].deprecated_since","typeLabel":"string"},"message":{"description":"Migration guidance message.","example":"tenant_id is deprecated; use database instead.","type":"string","uniqueKey":"meta.deprecation.items.[INDEX].message","typeLabel":"string"},"preferred_field":{"description":"The canonical replacement for the deprecated field.","example":"database","type":"string","uniqueKey":"meta.deprecation.items.[INDEX].preferred_field","typeLabel":"string"}},"title":"HandlerDeprecationNotice","type":"object","uniqueKey":"meta.deprecation.items.[INDEX]","typeLabel":"HandlerDeprecationNotice · object"},"type":"array","uniqueItems":false,"uniqueKey":"meta.deprecation","typeLabel":"HandlerDeprecationNotice · object[]"},"latency_ms":{"oneOf":[{"description":"Server-side processing time in milliseconds.","example":12.3,"type":"number","uniqueKey":"meta.latency_ms.oneOf.0","typeLabel":"number"},{"description":"Server-side processing time in milliseconds.","example":12.3,"type":"null","uniqueKey":"meta.latency_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta.latency_ms","typeLabel":"number | null"},"request_id":{"description":"Unique identifier for this request, useful for support and tracing.","example":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d","type":"string","uniqueKey":"meta.request_id","typeLabel":"string"},"source_type":{"description":"Type of the parent source (e.g. `file`, `slack`, `notion`).","example":"file","type":"string","uniqueKey":"meta.source_type","typeLabel":"string"},"sub_tenant_id":{"deprecated":true,"description":"Deprecated: use `collection`.","example":"team_docs","type":"string","x-deprecated":"true","uniqueKey":"meta.sub_tenant_id","typeLabel":"string"},"tenant_id":{"deprecated":true,"description":"Deprecated: use `database`.","example":"acme_corp","type":"string","x-deprecated":"true","uniqueKey":"meta.tenant_id","typeLabel":"string"},"warnings":{"description":"Notices about parts of the request that were skipped while it still succeeded, for example collections being deleted. Absent when nothing was skipped.","example":[{"code":"acl_ignored_by_connector_enforcement","collections":["team_docs","engineering"],"message":"This connector enforces ACL, so the request's acl was ignored."}],"items":{"properties":{"code":{"description":"Code identifies the warning type, such as acl_ignored_by_connector_enforcement.","example":"acl_ignored_by_connector_enforcement","type":"string","uniqueKey":"meta.warnings.items.[INDEX].code","typeLabel":"string"},"collections":{"description":"Collections the warning is about, such as the collections a multi-collection query skipped because they are being deleted.","example":["team_docs","engineering"],"items":{"type":"string","uniqueKey":"meta.warnings.items.[INDEX].collections.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueItems":false,"uniqueKey":"meta.warnings.items.[INDEX].collections","typeLabel":"string[]"},"message":{"description":"Human-readable explanation of the warning.","example":"This connector enforces ACL, so the request's acl was ignored.","type":"string","uniqueKey":"meta.warnings.items.[INDEX].message","typeLabel":"string"}},"title":"HandlerResponseWarning","type":"object","uniqueKey":"meta.warnings.items.[INDEX]","typeLabel":"HandlerResponseWarning · object"},"type":"array","uniqueItems":false,"uniqueKey":"meta.warnings","typeLabel":"HandlerResponseWarning · object[]"}},"title":"HandlerResponseMeta","type":"object","example":{"collection":"team_docs","database":"acme_corp","latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d","source_type":"file","sub_tenant_id":"team_docs","tenant_id":"acme_corp","warnings":[{"code":"acl_ignored_by_connector_enforcement","collections":["team_docs","engineering"],"message":"This connector enforces ACL, so the request's acl was ignored."}]},"uniqueKey":"meta","typeLabel":"HandlerResponseMeta · object"},"success":{"description":"Whether the request succeeded.","example":true,"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"title":"HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult","type":"object","uniqueKey":"","typeLabel":"HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult · object"},"examples":{"Example":{"title":"Example","value":{"data":{"acl_updated":true,"chunk_rows_matched":1,"chunk_rows_modified":1,"collection":"team_docs","database":"acme_corp","database_metadata_keys":["department","priority"],"id":"HydraDoc1234","milvus_rows_synced":1,"milvus_sync_required":true,"milvus_synced":true,"sub_tenant_id":"team_docs","tenant_id":"acme_corp","updated":true,"vector_acl_synced":true,"vector_rows_synced":1,"vector_sync_required":true,"vector_synced":true},"error":null,"meta":{"collection":"team_docs","database":"acme_corp","latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d","source_type":"file","sub_tenant_id":"team_docs","tenant_id":"acme_corp","warnings":[{"code":"acl_ignored_by_connector_enforcement","collections":["team_docs","engineering"],"message":"This connector enforces ACL, so the request's acl was ignored."}]},"success":true}}},"exampleType":"generated"}},"description":"OK","exampleType":"generated"},"f92ed55e-b83e-4a58-b11f-f1de75abf278":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"Always `null` on this error response.","type":"null","uniqueKey":"data","typeLabel":"null"},"detail":{"properties":{"deprecated":{"description":"Whether this response concerns a deprecated field or route.","example":true,"type":"boolean","uniqueKey":"detail.deprecated","typeLabel":"boolean"},"deprecated_field":{"description":"The deprecated field name.","example":"tenant_id","type":"string","uniqueKey":"detail.deprecated_field","typeLabel":"string"},"deprecated_since":{"description":"API version that deprecated the conflicting selector.","example":"2.0.1","type":"string","uniqueKey":"detail.deprecated_since","typeLabel":"string"},"error_code":{"description":"Machine-readable error classification code.","example":"VALIDATION_ERROR","type":"string","uniqueKey":"detail.error_code","typeLabel":"string"},"message":{"description":"Human-readable description of the error.","example":"Request validation failed","type":"string","uniqueKey":"detail.message","typeLabel":"string"},"preferred_field":{"description":"The canonical replacement for the deprecated field.","example":"database","type":"string","uniqueKey":"detail.preferred_field","typeLabel":"string"},"retry_after_seconds":{"description":"Seconds to wait before retrying deletion of context that is still indexing.","example":1,"type":"integer","uniqueKey":"detail.retry_after_seconds","typeLabel":"integer"},"retryable":{"description":"Whether retrying this failed query can succeed. Present for search workflow failures.","example":true,"type":"boolean","uniqueKey":"detail.retryable","typeLabel":"boolean"},"success":{"deprecated":true,"description":"Deprecated: always `false`. Read the HTTP status, then `error.code` and `error.message`.","example":false,"type":"boolean","x-deprecated":"true","uniqueKey":"detail.success","typeLabel":"boolean"}},"title":"HandlerErrorDetail","type":"object","description":"Structured error detail with code, message, and deprecation hints.","example":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"uniqueKey":"detail","typeLabel":"HandlerErrorDetail · object"},"error":{"properties":{"code":{"description":"Machine-readable error code (e.g. `DATABASE_NOT_FOUND`).","example":"DATABASE_NOT_FOUND","type":"string","uniqueKey":"error.code","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"error.details.additionalProperties","typeLabel":"string"},"description":"Extra facts about the error, as string pairs. Omitted when there are none.","type":"object","uniqueKey":"error.details","typeLabel":"object"},"message":{"description":"Human-readable description of the error.","example":"Database not found","type":"string","uniqueKey":"error.message","typeLabel":"string"},"param":{"description":"The request field that caused the error. Omitted when no single field is at fault.","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"title":"HandlerApiError","type":"object","description":"Error message, empty string on success.","example":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"uniqueKey":"error","typeLabel":"HandlerApiError · object"},"meta":{"properties":{"api_version":{"description":"Version of the API that served the request, for example `2.0.1`.","type":"string","uniqueKey":"meta.api_version","typeLabel":"string"},"latency_ms":{"description":"Server-side processing time in milliseconds.","example":12.3,"type":"number","uniqueKey":"meta.latency_ms","typeLabel":"number"},"request_id":{"description":"Unique identifier for this request, useful for support and tracing.","example":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d","type":"string","uniqueKey":"meta.request_id","typeLabel":"string"}},"title":"HandlerErrorMeta","type":"object","example":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"uniqueKey":"meta","typeLabel":"HandlerErrorMeta · object"},"success":{"description":"Whether the request succeeded.","example":false,"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"title":"HandlerErrorResponse","type":"object","uniqueKey":"","typeLabel":"HandlerErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":null,"detail":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"error":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"meta":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"success":false}}},"exampleType":"generated"}},"description":"Bad Request","exampleType":"generated"},"f0493fb1-57ed-4f62-b2ff-8fcb8fb5a601":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"Always `null` on this error response.","type":"null","uniqueKey":"data","typeLabel":"null"},"detail":{"properties":{"deprecated":{"description":"Whether this response concerns a deprecated field or route.","example":true,"type":"boolean","uniqueKey":"detail.deprecated","typeLabel":"boolean"},"deprecated_field":{"description":"The deprecated field name.","example":"tenant_id","type":"string","uniqueKey":"detail.deprecated_field","typeLabel":"string"},"deprecated_since":{"description":"API version that deprecated the conflicting selector.","example":"2.0.1","type":"string","uniqueKey":"detail.deprecated_since","typeLabel":"string"},"error_code":{"description":"Machine-readable error classification code.","example":"VALIDATION_ERROR","type":"string","uniqueKey":"detail.error_code","typeLabel":"string"},"message":{"description":"Human-readable description of the error.","example":"Request validation failed","type":"string","uniqueKey":"detail.message","typeLabel":"string"},"preferred_field":{"description":"The canonical replacement for the deprecated field.","example":"database","type":"string","uniqueKey":"detail.preferred_field","typeLabel":"string"},"retry_after_seconds":{"description":"Seconds to wait before retrying deletion of context that is still indexing.","example":1,"type":"integer","uniqueKey":"detail.retry_after_seconds","typeLabel":"integer"},"retryable":{"description":"Whether retrying this failed query can succeed. Present for search workflow failures.","example":true,"type":"boolean","uniqueKey":"detail.retryable","typeLabel":"boolean"},"success":{"deprecated":true,"description":"Deprecated: always `false`. Read the HTTP status, then `error.code` and `error.message`.","example":false,"type":"boolean","x-deprecated":"true","uniqueKey":"detail.success","typeLabel":"boolean"}},"title":"HandlerErrorDetail","type":"object","description":"Structured error detail with code, message, and deprecation hints.","example":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"uniqueKey":"detail","typeLabel":"HandlerErrorDetail · object"},"error":{"properties":{"code":{"description":"Machine-readable error code (e.g. `DATABASE_NOT_FOUND`).","example":"DATABASE_NOT_FOUND","type":"string","uniqueKey":"error.code","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"error.details.additionalProperties","typeLabel":"string"},"description":"Extra facts about the error, as string pairs. Omitted when there are none.","type":"object","uniqueKey":"error.details","typeLabel":"object"},"message":{"description":"Human-readable description of the error.","example":"Database not found","type":"string","uniqueKey":"error.message","typeLabel":"string"},"param":{"description":"The request field that caused the error. Omitted when no single field is at fault.","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"title":"HandlerApiError","type":"object","description":"Error message, empty string on success.","example":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"uniqueKey":"error","typeLabel":"HandlerApiError · object"},"meta":{"properties":{"api_version":{"description":"Version of the API that served the request, for example `2.0.1`.","type":"string","uniqueKey":"meta.api_version","typeLabel":"string"},"latency_ms":{"description":"Server-side processing time in milliseconds.","example":12.3,"type":"number","uniqueKey":"meta.latency_ms","typeLabel":"number"},"request_id":{"description":"Unique identifier for this request, useful for support and tracing.","example":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d","type":"string","uniqueKey":"meta.request_id","typeLabel":"string"}},"title":"HandlerErrorMeta","type":"object","example":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"uniqueKey":"meta","typeLabel":"HandlerErrorMeta · object"},"success":{"description":"Whether the request succeeded.","example":false,"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"title":"HandlerErrorResponse","type":"object","uniqueKey":"","typeLabel":"HandlerErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":null,"detail":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"error":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"meta":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"success":false}}},"exampleType":"generated"}},"description":"Not Found","exampleType":"generated"},"56903507-9d43-43ec-9c34-42e7e40d36df":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"Always `null` on this error response.","type":"null","uniqueKey":"data","typeLabel":"null"},"detail":{"properties":{"deprecated":{"description":"Whether this response concerns a deprecated field or route.","example":true,"type":"boolean","uniqueKey":"detail.deprecated","typeLabel":"boolean"},"deprecated_field":{"description":"The deprecated field name.","example":"tenant_id","type":"string","uniqueKey":"detail.deprecated_field","typeLabel":"string"},"deprecated_since":{"description":"API version that deprecated the conflicting selector.","example":"2.0.1","type":"string","uniqueKey":"detail.deprecated_since","typeLabel":"string"},"error_code":{"description":"Machine-readable error classification code.","example":"VALIDATION_ERROR","type":"string","uniqueKey":"detail.error_code","typeLabel":"string"},"message":{"description":"Human-readable description of the error.","example":"Request validation failed","type":"string","uniqueKey":"detail.message","typeLabel":"string"},"preferred_field":{"description":"The canonical replacement for the deprecated field.","example":"database","type":"string","uniqueKey":"detail.preferred_field","typeLabel":"string"},"retry_after_seconds":{"description":"Seconds to wait before retrying deletion of context that is still indexing.","example":1,"type":"integer","uniqueKey":"detail.retry_after_seconds","typeLabel":"integer"},"retryable":{"description":"Whether retrying this failed query can succeed. Present for search workflow failures.","example":true,"type":"boolean","uniqueKey":"detail.retryable","typeLabel":"boolean"},"success":{"deprecated":true,"description":"Deprecated: always `false`. Read the HTTP status, then `error.code` and `error.message`.","example":false,"type":"boolean","x-deprecated":"true","uniqueKey":"detail.success","typeLabel":"boolean"}},"title":"HandlerErrorDetail","type":"object","description":"Structured error detail with code, message, and deprecation hints.","example":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"uniqueKey":"detail","typeLabel":"HandlerErrorDetail · object"},"error":{"properties":{"code":{"description":"Machine-readable error code (e.g. `DATABASE_NOT_FOUND`).","example":"DATABASE_NOT_FOUND","type":"string","uniqueKey":"error.code","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"error.details.additionalProperties","typeLabel":"string"},"description":"Extra facts about the error, as string pairs. Omitted when there are none.","type":"object","uniqueKey":"error.details","typeLabel":"object"},"message":{"description":"Human-readable description of the error.","example":"Database not found","type":"string","uniqueKey":"error.message","typeLabel":"string"},"param":{"description":"The request field that caused the error. Omitted when no single field is at fault.","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"title":"HandlerApiError","type":"object","description":"Error message, empty string on success.","example":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"uniqueKey":"error","typeLabel":"HandlerApiError · object"},"meta":{"properties":{"api_version":{"description":"Version of the API that served the request, for example `2.0.1`.","type":"string","uniqueKey":"meta.api_version","typeLabel":"string"},"latency_ms":{"description":"Server-side processing time in milliseconds.","example":12.3,"type":"number","uniqueKey":"meta.latency_ms","typeLabel":"number"},"request_id":{"description":"Unique identifier for this request, useful for support and tracing.","example":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d","type":"string","uniqueKey":"meta.request_id","typeLabel":"string"}},"title":"HandlerErrorMeta","type":"object","example":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"uniqueKey":"meta","typeLabel":"HandlerErrorMeta · object"},"success":{"description":"Whether the request succeeded.","example":false,"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"title":"HandlerErrorResponse","type":"object","uniqueKey":"","typeLabel":"HandlerErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":null,"detail":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"error":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"meta":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"success":false}}},"exampleType":"generated"}},"description":"Internal Server Error","exampleType":"generated"}},"security":{"89532474-2e35-44fe-93bb-618cf1434bc5":{"BearerAuth":{"bearerFormat":"API key","description":"Send your API key as Authorization: Bearer \u003cyour_api_key>.","scheme":"bearer","type":"http","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"e582ccd8-d5b8-418b-9825-737cb4a46e19":{"description":"Production server","url":"https://api.hydradb.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"bearerFormat":"API key","description":"Send your API key as Authorization: Bearer \u003cyour_api_key>.","scheme":"bearer","type":"http","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Send your API key as Authorization: Bearer \u003cyour_api_key>.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-reference/v2/openapi.json"},"subdomain":"cortex-e852fafe","siteName":"HydraDB","title":"Update Source Metadata - HydraDB","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v2":{"href":"/api-reference/v2/endpoint/update-source-metadata","matchLevel":0},"v1":{"href":"/get-started/introduction","matchLevel":4}},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T12:22:45.159Z","originalFileLocation":"api-reference/v2/endpoint/update-source-metadata.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=\"dark\"}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=\"Merge database metadata and additional metadata into one existing source, without re-ingesting it.\">\u003cmeta data-mint-head name=\"application-name\" content=\"HydraDB\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update Source Metadata - HydraDB\">\u003cmeta data-mint-head property=\"og:description\" content=\"Merge database metadata and additional metadata into one existing source, without re-ingesting it.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"HydraDB\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hydradb.com/api-reference/v2/endpoint/update-source-metadata\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cortex-e852fafe.mintlify.site/_mintlify/api/og/v2?division=Context\u0026amp;title=Update+Source+Metadata\u0026amp;description=Merge+database+metadata+and+additional+metadata+into+one+existing+source%2C+without+re-ingesting+it.\u0026amp;theme=9098e130351f6ce0100471f1\u0026amp;signature=9581ac8871ca7db391ec24ce340f3f5134c6c10377195141b2748ad3b82c00da\">\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 Source Metadata - HydraDB\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Merge database metadata and additional metadata into one existing source, without re-ingesting it.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cortex-e852fafe.mintlify.site/_mintlify/api/og/v2?division=Context\u0026amp;title=Update+Source+Metadata\u0026amp;description=Merge+database+metadata+and+additional+metadata+into+one+existing+source%2C+without+re-ingesting+it.\u0026amp;theme=9098e130351f6ce0100471f1\u0026amp;signature=9581ac8871ca7db391ec24ce340f3f5134c6c10377195141b2748ad3b82c00da\">\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=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"HydraDB\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF571A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hydradb.com/api-reference/v2/endpoint/update-source-metadata\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v2/endpoint/update-source-metadata.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hydradb.com/#organization\",\"name\":\"HydraDB\",\"url\":\"https://docs.hydradb.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cortex-e852fafe/BS0KyNLwX-6ZV20u/logo/logo.png?fit=max\u0026auto=format\u0026n=BS0KyNLwX-6ZV20u\u0026q=85\u0026s=8344dc832de70bde023451b8be681c27\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hydradb.com#website\",\"name\":\"HydraDB\",\"url\":\"https://docs.hydradb.com\",\"publisher\":{\"@id\":\"https://docs.hydradb.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hydradb.com/api-reference/v2/endpoint/update-source-metadata#webpage\",\"url\":\"https://docs.hydradb.com/api-reference/v2/endpoint/update-source-metadata\",\"name\":\"Update Source Metadata\",\"description\":\"Merge database metadata and additional metadata into one existing source, without re-ingesting it.\",\"dateModified\":\"2026-11-13T12:22:45.159Z\",\"isPartOf\":{\"@id\":\"https://docs.hydradb.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hydradb.com/api-reference/v2/endpoint/update-source-metadata#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hydradb.com/api-reference/v2/endpoint/update-source-metadata#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Context\",\"item\":\"https://docs.hydradb.com/api-reference/v2/endpoint/context-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update Source Metadata\",\"item\":\"https://docs.hydradb.com/api-reference/v2/endpoint/update-source-metadata\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.hydradb.com/api-reference/v2/endpoint/update-source-metadata#apireference\",\"headline\":\"Update Source Metadata\",\"name\":\"Update Source Metadata\",\"description\":\"Merge database metadata and additional metadata into one existing source, without re-ingesting it.\",\"url\":\"https://docs.hydradb.com/api-reference/v2/endpoint/update-source-metadata\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hydradb.com/api-reference/v2/endpoint/update-source-metadata#webpage\"},\"dateModified\":\"2026-11-13T12:22:45.159Z\",\"publisher\":{\"@id\":\"https://docs.hydradb.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hydradb.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"HydraDB\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"HydraDB\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/v2/endpoint/update-source-metadata.md","siteName":"HydraDB","nav":{"global":null,"versions":[{"version":"v2","tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/get-started/v2/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","public":true,"pages":[{"title":"API Reference","href":"/api-reference/v2"},{"title":"SDKs: Python and TypeScript","href":"/api-reference/v2/sdks"},{"title":"Error Responses","href":"/api-reference/v2/error-responses"}]},{"group":"Databases","public":true,"pages":[{"title":"Databases: Overview","href":"/api-reference/v2/endpoint/databases-overview"},{"title":"Create Database","openapi":"api-reference/v2/openapi.json POST /databases","href":"/api-reference/v2/endpoint/create-database"},{"title":"Database Status","openapi":"api-reference/v2/openapi.json GET /databases/status","href":"/api-reference/v2/endpoint/database-status"},{"title":"List Databases","openapi":"api-reference/v2/openapi.json GET /databases","href":"/api-reference/v2/endpoint/list-databases"},{"title":"Database Stats","openapi":"api-reference/v2/openapi.json GET /databases/stats","href":"/api-reference/v2/endpoint/database-stats"},{"title":"Get Metadata Schema","openapi":"api-reference/v2/openapi.json GET /databases/{database}/metadata-schema","href":"/api-reference/v2/endpoint/get-metadata-schema"},{"title":"Update Metadata Schema","openapi":"api-reference/v2/openapi.json PATCH /databases/{database}/metadata-schema","href":"/api-reference/v2/endpoint/update-metadata-schema"},{"title":"List Collections","openapi":"api-reference/v2/openapi.json GET /databases/collections","href":"/api-reference/v2/endpoint/list-collections"},{"title":"Delete Collection","openapi":"api-reference/v2/openapi.json DELETE /databases/collections","href":"/api-reference/v2/endpoint/delete-collection"},{"title":"Delete Database","openapi":"api-reference/v2/openapi.json DELETE /databases","href":"/api-reference/v2/endpoint/delete-database"}]},{"group":"Context","public":true,"pages":[{"title":"Context: Overview","href":"/api-reference/v2/endpoint/context-overview"},{"title":"Ingest Context","openapi":"api-reference/v2/openapi.json POST /context/ingest","href":"/api-reference/v2/endpoint/ingest-context"},{"title":"Ingestion Status","openapi":"api-reference/v2/openapi.json GET /context/status","href":"/api-reference/v2/endpoint/source-status"},{"title":"List Context","openapi":"api-reference/v2/openapi.json POST /context/list","href":"/api-reference/v2/endpoint/list-context"},{"title":"Inspect Context","description":"Read the original content of a knowledge source or memory, or get a download URL.","openapi":"api-reference/v2/openapi.json GET /context/inspect","href":"/api-reference/v2/endpoint/fetch-content"},{"title":"Update Source Metadata","openapi":"api-reference/v2/openapi.json PATCH /context/{id}/metadata","href":"/api-reference/v2/endpoint/update-source-metadata"},{"title":"Inspecting Context Relations","openapi":"api-reference/v2/openapi.json GET /context/relations","description":"Read the entity-relation triplets extracted from your content, for one source or a whole collection.","href":"/api-reference/v2/endpoint/source-relations"},{"title":"Connected Subgraph","openapi":"api-reference/v2/openapi.json GET /context/{id}/subgraph","href":"/api-reference/v2/endpoint/subgraph"},{"title":"Delete Context","openapi":"api-reference/v2/openapi.json DELETE /context","href":"/api-reference/v2/endpoint/delete-source"}]},{"group":"Query","public":true,"pages":[{"title":"Query: Overview","href":"/api-reference/v2/endpoint/query-overview"},{"title":"Query","openapi":"api-reference/v2/openapi.json POST /query","href":"/api-reference/v2/endpoint/query"},{"title":"Submit Feedback","openapi":"api-reference/v2/openapi.json POST /feedback","href":"/api-reference/v2/endpoint/submit-feedback"}]},{"group":"Connectors","public":true,"pages":[{"title":"Connectors: Overview","href":"/api-reference/v2/endpoint/connectors-overview"},{"title":"List Connector Providers","openapi":"api-reference/v2/openapi.json GET /connectors/providers","href":"/api-reference/v2/endpoint/list-connector-providers"},{"title":"Create Connector","openapi":"api-reference/v2/openapi.json POST /connectors","href":"/api-reference/v2/endpoint/create-connector"},{"title":"Discover Resources","openapi":"api-reference/v2/openapi.json GET /connectors/{id}/discover","href":"/api-reference/v2/endpoint/discover-connector-resources"},{"title":"Configure Connector","openapi":"api-reference/v2/openapi.json POST /connectors/{id}/configure","href":"/api-reference/v2/endpoint/configure-connector"},{"title":"Get Connector Status","openapi":"api-reference/v2/openapi.json GET /connectors/{id}/status","href":"/api-reference/v2/endpoint/get-connector-status"},{"title":"List Connectors","openapi":"api-reference/v2/openapi.json GET /connectors","href":"/api-reference/v2/endpoint/list-connectors"},{"title":"Update Connector","openapi":"api-reference/v2/openapi.json PATCH /connectors/{id}","href":"/api-reference/v2/endpoint/update-connector"},{"title":"Update Connector Resource","openapi":"api-reference/v2/openapi.json PATCH /connectors/{id}/resources/{resource_id}","href":"/api-reference/v2/endpoint/update-connector-resource"}]},{"group":"Webhooks","public":true,"pages":[{"title":"Webhooks: Overview","href":"/api-reference/v2/endpoint/webhooks-overview"},{"title":"Register Webhook","openapi":"api-reference/v2/openapi.json POST /webhooks/indexing","href":"/api-reference/v2/endpoint/register-webhook"},{"title":"Get Webhook","openapi":"api-reference/v2/openapi.json GET /webhooks/indexing","href":"/api-reference/v2/endpoint/get-webhook"},{"title":"Delete Webhook","openapi":"api-reference/v2/openapi.json DELETE /webhooks/indexing","href":"/api-reference/v2/endpoint/delete-webhook"},{"title":"Send Test Delivery","openapi":"api-reference/v2/openapi.json POST /webhooks/indexing/test","href":"/api-reference/v2/endpoint/test-webhook"},{"title":"List Deliveries","openapi":"api-reference/v2/openapi.json GET /webhooks/indexing/deliveries","href":"/api-reference/v2/endpoint/list-webhook-deliveries"},{"title":"Get Delivery","openapi":"api-reference/v2/openapi.json GET /webhooks/indexing/deliveries/{delivery_id}","href":"/api-reference/v2/endpoint/get-webhook-delivery"},{"title":"Retry Delivery","openapi":"api-reference/v2/openapi.json POST /webhooks/indexing/deliveries/{delivery_id}/retry","href":"/api-reference/v2/endpoint/retry-webhook-delivery"},{"title":"Set Signing Secret","openapi":"api-reference/v2/openapi.json POST /webhooks/indexing/signing-secret","href":"/api-reference/v2/endpoint/set-webhook-signing-secret"},{"title":"Disable Signing","openapi":"api-reference/v2/openapi.json DELETE /webhooks/indexing/signing-secret","href":"/api-reference/v2/endpoint/disable-webhook-signing"}]}]},{"tab":"Cookbooks","pages":[{"title":"Cookbooks","href":"/cookbooks/v2"}]}]},{"version":"v1","pages":[{"title":"v1","href":"/get-started/introduction"}]}]},"basePath":"","title":"Update Source Metadata - HydraDB","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}