The v5 body accepts any non-empty subset of content, supportingContext, metadata, or date, plus optional taskType and dreaming (which alone do not count as a change). group is an ingestion-side setting: it picks which existing memories serve as context while content is processed, so changing it only takes effect when the document is re-ingested. Send it together with content. Supplying content makes it the new canonical source; facts supported only by the previous source can disappear after reprocessing.
POST /ns/user_1/document/file/doc_1Content-Type: multipart/form-datafile=@corrected.pdfmetadata={"revision":2}dreaming=dynamic
POST requires file and replaces the canonical source plus caller metadata, including date. Omitted metadata and date are cleared. supportingContext is stored on the namespace, so omitting it leaves the namespace’s existing context unchanged. Use it when the submitted request is the complete new representation of the file-backed document.
PATCH changes only supplied fields. Include file to replace the source while retaining omitted supporting fields, or omit file for metadata-, context-, or date-only changes. Like the JSON update, group only takes effect when the file is re-ingested, so send it together with file. metadata and group are JSON-encoded strings; supportingContext and date are plain strings.
There is no public v5 PUT /ns/{namespace}/document/file/{id} operation. Use POST for a complete replacement and PATCH for a partial update.
replaceWithFile is the POST full replacement and requires file. updateFile is the PATCH partial update; file is optional and metadata merges key by key.
The path id may be the Supermemory document ID or your caller-defined ID. It is resolved only inside {namespace}; an ID from another namespace is not a cross-namespace update mechanism.
Content or file replacement is accepted before downstream processing completes. A namespace merge in progress or a conflicting internal file path returns 409; retry a merge conflict after the merge finishes.
Patch metadata alone and confirm document content and derived facts remain intact.
Patch content and confirm the new source is canonical after processing.
Replace a file with POST and confirm omitted user metadata is cleared.
Patch a file-backed document and confirm omitted fields remain unchanged.
Attempt the same ID in another namespace and confirm the update is rejected or not found.
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"supermemory | Memory API for the AI era","description":"Frontier agent memory and context platform","colors":{"primary":"#091120","light":"#F5F5F5","dark":"#091120"},"logo":{"light":"https://mintcdn.com/supermemory/1szAHJ3-ym4bjQ4U/logo/light.svg?fit=max\u0026auto=format\u0026n=1szAHJ3-ym4bjQ4U\u0026q=85\u0026s=e4571d11b31900b962a200bf7206e7d9","dark":"https://mintcdn.com/supermemory/1szAHJ3-ym4bjQ4U/logo/dark.svg?fit=max\u0026auto=format\u0026n=1szAHJ3-ym4bjQ4U\u0026q=85\u0026s=23c339f1eafcd1c5ad241c14d94dad53"},"favicon":{"light":"https://mintcdn.com/supermemory/p0zPjih-OxhkPwgX/favicon-light-mode.png?fit=max\u0026auto=format\u0026n=p0zPjih-OxhkPwgX\u0026q=85\u0026s=2f4fb184e0e1a2b9a5e9fd27d3aca4b7","dark":"https://mintcdn.com/supermemory/p0zPjih-OxhkPwgX/favicon-dark-mode.png?fit=max\u0026auto=format\u0026n=p0zPjih-OxhkPwgX\u0026q=85\u0026s=839400ffc6b2249c0930e3d7376b4459"},"api":{"openapi":"https://api.supermemory.ai/v4/openapi","examples":{"defaults":"required","languages":["typescript","python","bash"],"prefill":true}},"background":{"color":{"light":"#FFFFFF","dark":"#0A0A0A"}},"navbar":{"links":[{"href":"https://supermemory.ai/changelog","label":"Changelog"},{"href":"mailto:support@supermemory.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://console.supermemory.ai"}},"footer":{"socials":{"github":"https://github.com/supermemoryai","linkedin":"https://linkedin.com/company/supermemory","x":"https://x.com/supermemory"}},"fonts":{"heading":{"family":"Geist","weight":500},"body":{"family":"Geist"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"github-light-default","dark":"github-dark-default"}},"latex":false},"banner":{"content":"**v3 and v4 are deprecated and will be shut down on December 31, 2026.** Move to v5 before then. [Read the migration guide](/migration/api-v5).","dismissible":true},"contextual":{"options":["copy","view","assistant","chatgpt","claude","mcp","add-mcp","cursor","vscode","download-spec"],"display":"header"},"thumbnails":{"appearance":"dark","background":"https://mintcdn.com/supermemory/h0P1q8R9RVJPj3Y5/images/og-background.jpg?fit=max\u0026auto=format\u0026n=h0P1q8R9RVJPj3Y5\u0026q=85\u0026s=c415d91bd85a6db507dd36eb330edb9a","fonts":{"family":"Geist"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"supermemory","hasAudioNarration":false,"actualSubdomain":"supermemory","customDomains":["supermemory.ai","docs.supermemory.ai"],"gitSource":{"type":"github","owner":"supermemoryai","repo":"supermemory","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adfafcdf6c8e67948a6ba8c","collectionId":"5540f7d0-e359-4796-8b96-34013bf27bad","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adfafcdf6c8e67948a6ba8c"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6adfafcdf6c8e67948a6ba8c","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"Developer platform","count":187},{"language":"default","tag":"API reference","count":89},{"language":"default","tag":"Developer platform (API)","count":75},{"language":"default","tag":"Using supermemory","count":31},{"language":"default","tag":"Plugins and MCP","count":24},{"language":"default","tag":"API integrations","count":23},{"language":"default","tag":"Connectors","count":19},{"language":"default","tag":"Migration guides","count":15},{"language":"default","tag":"Ingest","count":13},{"language":"default","tag":"Connections","count":11}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@supermemory.com","showHelpButton":true}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"6902c52aad086969d32e674e","deploymentId":"679c28b9bb8558c304aa0d79","questionText":"User profiles and tool use together for multimodal use cases","status":"active","generatedBy":"manual","createdAt":"2025-10-30T01:53:46.092Z","updatedAt":"2025-10-30T01:53:46.092Z","__v":0},{"_id":"6902c51ead086969d32e6474","deploymentId":"679c28b9bb8558c304aa0d79","questionText":"I am building XYZ. how do I use user profiles with the python SDK?","status":"active","generatedBy":"manual","createdAt":"2025-10-30T01:53:34.162Z","updatedAt":"2025-10-30T01:53:34.162Z","__v":0}],"isAtlas":false,"googleFontsInlined":true},"customCss":[{"filePath":"style.css","href":"/docs/_mintlify/custom/supermemory/58c42b69292eff61/style.css"}],"page":{"pagePath":"migration/api-v5-document-updates","slug":"/migration/api-v5-document-updates","pageMetadata":{"title":"Migrate document and file updates to v5","description":"Choose append, replacement, or metadata-only updates deliberately","sidebarTitle":"Document updates","href":"/migration/api-v5-document-updates"},"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: \"Choose append, replacement, or metadata-only updates deliberately\"\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];const legacy_0=`v3 or v4`;const guideHref_0=`/migration/api-v5`;const guideLabel_0=`full v5 migration guide`;function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Tip,{children:_jsxs(_components.p,{children:[`On `,legacy_0,`? Run `,_jsx(_components.code,{children:`npx supermemory@latest migrate`}),`, or read the `,_jsx(_components.a,{href:guideHref_0,children:guideLabel_0}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`migration-details`,children:`Migration details`}),`\n`,_jsx(_components.p,{children:`v5 makes the difference between adding new information and replacing the canonical source explicit.`}),`\n`,_jsx(Heading,{level:`3`,id:`choose-the-correct-write`,children:`Choose the correct write`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Intent`}),_jsx(_components.th,{children:`Operation`}),_jsx(_components.th,{children:`Content behavior`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Add information to a stable caller ID`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /ns/{namespace}/document`})}),_jsx(_components.td,{children:`Append/diff`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Replace text or URL content`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PATCH /ns/{namespace}/document/{id}`})}),_jsx(_components.td,{children:`Replace and reprocess`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Update only metadata, context, or date`}),_jsxs(_components.td,{children:[`Same `,_jsx(_components.code,{children:`PATCH`}),` without `,_jsx(_components.code,{children:`content`})]}),_jsx(_components.td,{children:`Canonical content unchanged`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Replace a source file and its user metadata`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /ns/{namespace}/document/file/{id}`})}),_jsx(_components.td,{children:`Full replacement and reprocess`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Partially update a file or its supporting fields`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PATCH /ns/{namespace}/document/file/{id}`})}),_jsx(_components.td,{children:`Omitted fields remain unchanged`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`update-text-or-url-content`,children:`Update text or URL content`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Legacy`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default github-dark-default`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0d1117`,color:`#1f2328`,\"--shiki-dark\":`#e6edf3`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`PATCH`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` /v3/documents/doc_1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`\"corrected source\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`,`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`\"metadata\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`revision`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`\":2}}`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`v5`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default github-dark-default`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0d1117`,color:`#1f2328`,\"--shiki-dark\":`#e6edf3`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`PATCH`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` /ns/user_1/document/doc_1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`\"corrected source\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`,`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`\"metadata\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`revision`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`\":2},\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`dreaming`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`\":\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`dynamic`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`\"}`})]}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`The v5 body accepts any non-empty subset of `,_jsx(_components.code,{children:`content`}),`, `,_jsx(_components.code,{children:`supportingContext`}),`, `,_jsx(_components.code,{children:`metadata`}),`, or `,_jsx(_components.code,{children:`date`}),`, plus optional `,_jsx(_components.code,{children:`taskType`}),` and `,_jsx(_components.code,{children:`dreaming`}),` (which alone do not count as a change). `,_jsx(_components.code,{children:`group`}),` is an ingestion-side setting: it picks which existing memories serve as context while content is processed, so changing it only takes effect when the document is re-ingested. Send it together with `,_jsx(_components.code,{children:`content`}),`. Supplying `,_jsx(_components.code,{children:`content`}),` makes it the new canonical source; facts supported only by the previous source can disappear after reprocessing.`]}),`\n`,_jsx(Heading,{level:`3`,id:`replace-a-file-backed-document`,children:`Replace a file-backed document`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default github-dark-default`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0d1117`,color:`#1f2328`,\"--shiki-dark\":`#e6edf3`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` /ns/user_1/document/file/doc_1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`Content-Type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` multipart/form-data`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`file`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`@corrected.pdf`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`metadata`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`\"revision\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`:2}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`dreaming`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`dynamic`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`POST requires `,_jsx(_components.code,{children:`file`}),` and replaces the canonical source plus caller metadata, including `,_jsx(_components.code,{children:`date`}),`. Omitted metadata and date are cleared. `,_jsx(_components.code,{children:`supportingContext`}),` is stored on the namespace, so omitting it leaves the namespace’s existing context unchanged. Use it when the submitted request is the complete new representation of the file-backed document.`]}),`\n`,_jsx(Heading,{level:`3`,id:`partially-update-a-file-backed-document`,children:`Partially update a file-backed document`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default github-dark-default`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0d1117`,color:`#1f2328`,\"--shiki-dark\":`#e6edf3`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`PATCH`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` /ns/user_1/document/file/doc_1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`Content-Type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` multipart/form-data`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`metadata`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`\"reviewed\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`:true}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`dreaming`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`dynamic`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`PATCH changes only supplied fields. Include `,_jsx(_components.code,{children:`file`}),` to replace the source while retaining omitted supporting fields, or omit `,_jsx(_components.code,{children:`file`}),` for metadata-, context-, or date-only changes. Like the JSON update, `,_jsx(_components.code,{children:`group`}),` only takes effect when the file is re-ingested, so send it together with `,_jsx(_components.code,{children:`file`}),`. `,_jsx(_components.code,{children:`metadata`}),` and `,_jsx(_components.code,{children:`group`}),` are JSON-encoded strings; `,_jsx(_components.code,{children:`supportingContext`}),` and `,_jsx(_components.code,{children:`date`}),` are plain strings.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`There is no public v5 `,_jsx(_components.code,{children:`PUT /ns/{namespace}/document/file/{id}`}),` operation. Use POST for a complete replacement and PATCH for a partial update.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`with-the-sdk`,children:`With the SDK`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Legacy`,numberOfLines:`4`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default github-dark-default`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0d1117`,color:`#1f2328`,\"--shiki-dark\":`#e6edf3`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` client.documents.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"doc_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` content: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"corrected source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` metadata: { revision: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`})`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`v5`,numberOfLines:`13`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default github-dark-default`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0d1117`,color:`#1f2328`,\"--shiki-dark\":`#e6edf3`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` supermemory.documents.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"user_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"doc_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` content: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"corrected source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` metadata: { revision: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`})`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` supermemory.documents.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:`replaceWithFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"user_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"doc_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` file,`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` metadata: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`({ revision: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` }),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`})`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` supermemory.documents.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:`updateFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"user_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"doc_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` metadata: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`({ reviewed: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` }),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`})`})}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`replaceWithFile`}),` is the POST full replacement and requires `,_jsx(_components.code,{children:`file`}),`. `,_jsx(_components.code,{children:`updateFile`}),` is the PATCH partial update; `,_jsx(_components.code,{children:`file`}),` is optional and metadata merges key by key.`]}),`\n`,_jsx(Heading,{level:`3`,id:`ids-and-scope`,children:`IDs and scope`}),`\n`,_jsxs(_components.p,{children:[`The path `,_jsx(_components.code,{children:`id`}),` may be the Supermemory document ID or your caller-defined ID. It is resolved only inside `,_jsx(_components.code,{children:`{namespace}`}),`; an ID from another namespace is not a cross-namespace update mechanism.`]}),`\n`,_jsx(Heading,{level:`3`,id:`processing-and-conflicts`,children:`Processing and conflicts`}),`\n`,_jsxs(_components.p,{children:[`Content or file replacement is accepted before downstream processing completes. A namespace merge in progress or a conflicting internal file path returns `,_jsx(_components.code,{children:`409`}),`; retry a merge conflict after the merge finishes.`]}),`\n`,_jsx(Heading,{level:`3`,id:`verification`,children:`Verification`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Patch metadata alone and confirm document content and derived facts remain intact.`}),`\n`,_jsx(_components.li,{children:`Patch content and confirm the new source is canonical after processing.`}),`\n`,_jsx(_components.li,{children:`Replace a file with POST and confirm omitted user metadata is cleared.`}),`\n`,_jsx(_components.li,{children:`Patch a file-backed document and confirm omitted fields remain unchanged.`}),`\n`,_jsx(_components.li,{children:`Attempt the same ID in another namespace and confirm the update is rejected or not found.`}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{legacy_0,guideHref_0,guideLabel_0,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":{"theme":{"light":"github-light-default","dark":"github-dark-default"}},"config":{},"pageMetadata":{"title":"Migrate document and file updates to v5","description":"Choose append, replacement, or metadata-only updates deliberately","sidebarTitle":"Document updates","href":"/migration/api-v5-document-updates"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[889,907,"`v3 or v4`,`? Run `,"],[1037,1064,"`full v5 migration guide`}),`.`]})}),`\n`"]]},"mdxExtracts":{"tableOfContents":[{"title":"Migration details","slug":"migration-details","depth":2,"children":[{"title":"Choose the correct write","slug":"choose-the-correct-write","depth":3,"children":[]},{"title":"Update text or URL content","slug":"update-text-or-url-content","depth":3,"children":[]},{"title":"Replace a file-backed document","slug":"replace-a-file-backed-document","depth":3,"children":[]},{"title":"Partially update a file-backed document","slug":"partially-update-a-file-backed-document","depth":3,"children":[]},{"title":"With the SDK","slug":"with-the-sdk","depth":3,"children":[]},{"title":"IDs and scope","slug":"ids-and-scope","depth":3,"children":[]},{"title":"Processing and conflicts","slug":"processing-and-conflicts","depth":3,"children":[]},{"title":"Verification","slug":"verification","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/supermemory/71b914845a04a595/theme-switch.js"],"subdomain":"supermemory","siteName":"supermemory | Memory API for the AI era","title":"Migrate document and file updates to v5 - supermemory | Memory API for the AI era","contextualStarterQuestions":[{"_id":"6ad1235445cca927f5ba0238","deploymentId":"679c28b9bb8558c304aa0d79","questionText":"When should I use append vs replace?","status":"active","generatedBy":"contextual","path":"migration/api-v5-document-updates","createdAt":"2026-10-15T19:02:44.559Z","updatedAt":"2026-10-15T19:02:44.559Z","__v":0},{"_id":"6ad1235445cca927f5ba023a","deploymentId":"679c28b9bb8558c304aa0d79","questionText":"What's the POST vs PATCH difference?","status":"active","generatedBy":"contextual","path":"migration/api-v5-document-updates","createdAt":"2026-10-15T19:02:44.559Z","updatedAt":"2026-10-15T19:02:44.559Z","__v":0},{"_id":"6ad1235445cca927f5ba0239","deploymentId":"679c28b9bb8558c304aa0d79","questionText":"How do I update only metadata?","status":"active","generatedBy":"contextual","path":"migration/api-v5-document-updates","createdAt":"2026-10-15T19:02:44.559Z","updatedAt":"2026-10-15T19:02:44.559Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-15T19:02:37.668Z","originalFileLocation":"migration/api-v5-document-updates.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Choose append, replacement, or metadata-only updates deliberately\">\u003cmeta data-mint-head name=\"application-name\" content=\"supermemory | Memory API for the AI era\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/supermemory/GrDCAjqJehqOwU42/_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=\"/docs/mintlify-assets/_mintlify/favicons/supermemory/GrDCAjqJehqOwU42/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/supermemory/GrDCAjqJehqOwU42/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/supermemory/GrDCAjqJehqOwU42/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/supermemory/GrDCAjqJehqOwU42/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/supermemory/GrDCAjqJehqOwU42/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/supermemory/GrDCAjqJehqOwU42/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/supermemory/GrDCAjqJehqOwU42/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/supermemory/GrDCAjqJehqOwU42/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Migrate document and file updates to v5 - supermemory | Memory API for the AI era\">\u003cmeta data-mint-head property=\"og:description\" content=\"Choose append, replacement, or metadata-only updates deliberately\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"supermemory | Memory API for the AI era\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://supermemory.ai/docs/migration/api-v5-document-updates\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://supermemory.mintlify.app/_mintlify/api/og/v2?division=Supermemory+API+upgrades\u0026amp;title=Migrate+document+and+file+updates+to+v5\u0026amp;description=Choose+append%2C+replacement%2C+or+metadata-only+updates+deliberately\u0026amp;theme=56f8f47184c0da030f976e8e\u0026amp;signature=b2138a235b129445df3042bd23333fb6bd267613084014cb7e7934079554e15b\">\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=\"Migrate document and file updates to v5 - supermemory | Memory API for the AI era\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Choose append, replacement, or metadata-only updates deliberately\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://supermemory.mintlify.app/_mintlify/api/og/v2?division=Supermemory+API+upgrades\u0026amp;title=Migrate+document+and+file+updates+to+v5\u0026amp;description=Choose+append%2C+replacement%2C+or+metadata-only+updates+deliberately\u0026amp;theme=56f8f47184c0da030f976e8e\u0026amp;signature=b2138a235b129445df3042bd23333fb6bd267613084014cb7e7934079554e15b\">\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=\"/docs/mintlify-assets/_mintlify/favicons/supermemory/GrDCAjqJehqOwU42/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"supermemory | Memory API for the AI era\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#091120\">\u003clink data-mint-head rel=\"canonical\" href=\"https://supermemory.ai/docs/migration/api-v5-document-updates\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/migration/api-v5-document-updates.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://supermemory.ai/#organization\",\"name\":\"supermemory | Memory API for the AI era\",\"url\":\"https://supermemory.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/supermemory/1szAHJ3-ym4bjQ4U/logo/light.svg?fit=max\u0026auto=format\u0026n=1szAHJ3-ym4bjQ4U\u0026q=85\u0026s=e4571d11b31900b962a200bf7206e7d9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://supermemory.ai/docs#website\",\"name\":\"supermemory | Memory API for the AI era\",\"url\":\"https://supermemory.ai/docs\",\"publisher\":{\"@id\":\"https://supermemory.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://supermemory.ai/docs/migration/api-v5-document-updates#webpage\",\"url\":\"https://supermemory.ai/docs/migration/api-v5-document-updates\",\"name\":\"Migrate document and file updates to v5\",\"description\":\"Choose append, replacement, or metadata-only updates deliberately\",\"dateModified\":\"2026-10-15T19:02:37.668Z\",\"isPartOf\":{\"@id\":\"https://supermemory.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://supermemory.ai/docs/migration/api-v5-document-updates#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://supermemory.ai/docs/migration/api-v5-document-updates#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Migration guides\",\"item\":\"https://supermemory.ai/docs/migration/api-v5\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Supermemory API upgrades\",\"item\":\"https://supermemory.ai/docs/migration/api-v5\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Migrate document and file updates to v5\",\"item\":\"https://supermemory.ai/docs/migration/api-v5-document-updates\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://supermemory.ai/docs/migration/api-v5-document-updates#article\",\"headline\":\"Migrate document and file updates to v5\",\"name\":\"Migrate document and file updates to v5\",\"description\":\"Choose append, replacement, or metadata-only updates deliberately\",\"url\":\"https://supermemory.ai/docs/migration/api-v5-document-updates\",\"mainEntityOfPage\":{\"@id\":\"https://supermemory.ai/docs/migration/api-v5-document-updates#webpage\"},\"dateModified\":\"2026-10-15T19:02:37.668Z\",\"publisher\":{\"@id\":\"https://supermemory.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://supermemory.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"supermemory | Memory API for the AI era\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"supermemory | Memory API for the AI era","nav":{"global":null,"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":""}]},{"tab":"Developer platform","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/source-code.svg","anchors":[{"anchor":"Developer platform (API)","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/book-open-01.svg","pages":[{"group":"Getting started","pages":[{"title":"What is Supermemory?","sidebarTitle":"What is Supermemory?","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/book-open-01.svg","href":"/overview/what-is-supermemory"},{"title":"Comparison - should I use supermemory?","sidebarTitle":"Comparison","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/balance-scale.svg","href":"/overview/comparison"},{"title":"Quickstart","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/play.svg","href":"/quickstart"},{"title":"Agents, skills and MCP","sidebarTitle":"Agents, skills and MCP","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/robotic.svg","href":"/agents-and-mcp"}]},{"group":"Concepts","pages":[{"title":"How Supermemory works","sidebarTitle":"How it works","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/cpu.svg","href":"/concepts/how-it-works"},{"title":"Graph memory","sidebarTitle":"Graph memory","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/share-08.svg","href":"/concepts/graph-memory"},{"title":"Supported content types","sidebarTitle":"Multi-modal ingestion","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/files-01.svg","href":"/concepts/content-types"},{"group":"Retrieval","icon":"/icons/hugeicons/search-01.svg","pages":[{"title":"SuperRAG (managed RAG as a service)","sidebarTitle":"SuperRAG","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/flash.svg","href":"/concepts/super-rag"},{"title":"Memory vs RAG: Understanding the difference","sidebarTitle":"Memory vs RAG","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/balance-scale.svg","href":"/concepts/memory-vs-rag"}]},{"group":"Multi-tenancy and filtering","icon":"/icons/hugeicons/user-multiple.svg","pages":[{"title":"Multi-tenancy overview","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/user-multiple.svg","href":"/concepts/multi-tenancy"},{"title":"Multi-tenancy examples","sidebarTitle":"Examples","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/check-list.svg","href":"/concepts/multi-tenancy-examples"},{"title":"Namespaces","sidebarTitle":"Namespaces","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/folder-01.svg","href":"/concepts/container-tags"},{"title":"Organizing \u0026 filtering memories","sidebarTitle":"Metadata filtering","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/filter.svg","href":"/concepts/filtering"}]},{"group":"User profiles","icon":"/icons/hugeicons/id.svg","pages":[{"title":"User profiles","sidebarTitle":"Profiles","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/user-circle.svg","href":"/concepts/user-profiles"},{"title":"Profile buckets","sidebarTitle":"Buckets","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/tag-01.svg","href":"/user-profiles/buckets"}]}]},{"group":"Using supermemory","pages":[{"title":"Using Supermemory","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/compass-01.svg","href":"/using-supermemory"},{"title":"API keys \u0026 auth","sidebarTitle":"API keys","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/key-01.svg","href":"/authentication"},{"title":"Invite team members","sidebarTitle":"Invite Team Members","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/user-multiple.svg","href":"/invite-team-members"},{"title":"Customizing for your use case","sidebarTitle":"Customizing","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/settings-02.svg","href":"/concepts/customization"},{"group":"Ingestion","icon":"/icons/hugeicons/download-01.svg","pages":[{"title":"Ingesting context to supermemory","sidebarTitle":"API","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/plus-sign.svg","href":"/ingestion/add-memories"},{"title":"Document operations","sidebarTitle":"Documents","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/files-02.svg","href":"/ingestion/document-operations"}]},{"group":"Connectors","icon":"/icons/hugeicons/plug-01.svg","pages":[{"title":"Connectors overview","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/layers-01.svg","href":"/connectors/overview"},{"title":"Notion connector","sidebarTitle":"Notion","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/images/notion-icon.svg","href":"/connectors/notion"},{"title":"Google Drive connector","sidebarTitle":"Google Drive","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/images/google-drive-icon.svg","href":"/connectors/google-drive"},{"title":"Gmail connector","sidebarTitle":"Gmail","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/mail-01.svg","href":"/connectors/gmail"},{"title":"OneDrive connector","sidebarTitle":"OneDrive","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/images/microsoft-icon.svg","href":"/connectors/onedrive"},{"title":"S3 Connector","sidebarTitle":"S3","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/database-01.svg","href":"/connectors/s3"},{"title":"Granola connector","sidebarTitle":"Granola","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/images/granola.svg","href":"/connectors/granola"},{"title":"GitHub connector","sidebarTitle":"GitHub","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/images/github-icon.svg","href":"/connectors/github"},{"title":"Web Crawler connector","sidebarTitle":"Web Crawler","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/globe-02.svg","href":"/connectors/web-crawler"},{"title":"Connector troubleshooting","sidebarTitle":"Troubleshooting","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/wrench-01.svg","href":"/connectors/troubleshooting"},{"title":"Managing Connector Selection","sidebarTitle":"Managing Resources","icon":"folder-sync","href":"/connectors/managing-resources"}]},{"group":"Recall","icon":"/icons/hugeicons/upload-01.svg","pages":[{"title":"Search","sidebarTitle":"Search API","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/search-01.svg","href":"/recall/search"},{"title":"User profiles","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/user.svg","href":"/recall/user-profiles"},{"title":"Memory Operations","sidebarTitle":"CRUD \u0026 Forgetting","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/database-01.svg","href":"/recall/memory-operations"},{"title":"Review inferred memories","sidebarTitle":"Memory review","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/check-list.svg","href":"/recall/memory-review"}]},{"group":"SMFS","icon":"/icons/hugeicons/database-01.svg","pages":[{"title":"SMFS","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/database-01.svg","href":"/smfs/overview"},{"title":"Install SMFS","sidebarTitle":"Install","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/download-01.svg","href":"/smfs/install"},{"title":"Mount","sidebarTitle":"Mount","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/hard-drive.svg","href":"/smfs/mount"},{"title":"Bash tool","sidebarTitle":"Bash tool","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/command-line.svg","href":"/smfs/bash-tool"},{"title":"Bash tool (Python)","sidebarTitle":"Bash tool (Python)","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/command-line.svg","href":"/smfs/bash-tool-python"},{"group":"Providers","icon":"/icons/hugeicons/cloud.svg","pages":[{"title":"Daytona","href":"/smfs/providers/daytona"},{"title":"E2B","href":"/smfs/providers/e2b"},{"title":"Vercel AI SDK","href":"/smfs/providers/vercel"},{"title":"Cloudflare","href":"/smfs/providers/cloudflare"}]},{"title":"Examples","sidebarTitle":"Examples","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/source-code.svg","href":"/smfs/examples"}]},{"title":"Rules of supermemory","sidebarTitle":"Rules of supermemory","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/justice-scale-01.svg","href":"/concepts/rules"}]},{"group":"Deployment","pages":[{"group":"Supermemory local","icon":"/icons/hugeicons/server-stack-01.svg","pages":[{"title":"Supermemory local","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/server-stack-01.svg","href":"/self-hosting/overview"},{"title":"Self-hosting quickstart","sidebarTitle":"Quickstart","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/play.svg","href":"/self-hosting/quickstart"},{"title":"Run Supermemory with Docker","sidebarTitle":"Docker","icon":"docker","href":"/self-hosting/docker"},{"title":"Self-hosting configuration","sidebarTitle":"Configuration","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/settings-01.svg","href":"/self-hosting/configuration"},{"title":"Embeddings (self-hosted)","sidebarTitle":"Embeddings","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/route-02.svg","href":"/self-hosting/embeddings"},{"title":"Using supermemory local with different providers","sidebarTitle":"Providers","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/route-01.svg","href":"/self-hosting/providers"},{"title":"Local vs. Enterprise","sidebarTitle":"Local vs. Enterprise","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/building-03.svg","href":"/self-hosting/local-vs-enterprise"}]}]},{"group":"Other resources","pages":[{"group":"General","icon":"/icons/hugeicons/book-open-01.svg","pages":[{"title":"How to backfill historical data into Supermemory","sidebarTitle":"Backfill historical data","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/clock-01.svg","href":"/ingestion/batch-ingest-historical-data"}]},{"group":"Benchmarking","icon":"/icons/hugeicons/test-tube-01.svg","pages":[{"title":"MemoryBench","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/test-tube-01.svg","href":"/memorybench/overview"},{"title":"Building a benchmark","sidebarTitle":"Building a benchmark","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/test-tube-01.svg","href":"/memorybench/extend-benchmark"},{"title":"Adding a provider","sidebarTitle":"Adding a provider","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/plug-01.svg","href":"/memorybench/extend-provider"},{"title":"Measuring results","sidebarTitle":"Measuring","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/dashboard-speed-01.svg","href":"/memorybench/memscore"}]},{"title":"Billing \u0026 usage","sidebarTitle":"Billing \u0026 usage","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/credit-card.svg","href":"/overview/billing"},{"title":"Security \u0026 compliance","sidebarTitle":"Security \u0026 compliance","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/shield-01.svg","href":"/overview/security"},{"title":"Use cases","sidebarTitle":"Use cases","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/idea-01.svg","href":"/overview/use-cases"},{"title":"Analytics \u0026 monitoring","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/chart-line-data-01.svg","href":"/overview/analytics"}]},{"group":"Migration guides","pages":[{"group":"Supermemory API upgrades","icon":"arrow-up-right","pages":[{"title":"Migrate Supermemory v3/v4 to v5","sidebarTitle":"Legacy API to v5","icon":"arrow-up-right","href":"/migration/api-v5"},{"title":"Migrate document ingestion to v5","description":"Upgrade single, batch, and file ingestion without changing append behavior","sidebarTitle":"Document ingestion","href":"/migration/api-v5-document-writes"},{"title":"Migrate document and file updates to v5","sidebarTitle":"Document updates","href":"/migration/api-v5-document-updates"},{"title":"Migrate content management to v5","description":"Upgrade document retrieval, resource lists, and document or memory deletion","sidebarTitle":"Content management","href":"/migration/api-v5-document-reads"},{"title":"Migrate search to v5","sidebarTitle":"Search","href":"/migration/api-v5-recall"},{"title":"Migrate profiles and buckets to v5","sidebarTitle":"Profiles and buckets","href":"/migration/api-v5-profiles"},{"title":"Migrate memory forgetting to v5","sidebarTitle":"Memory forgetting","href":"/migration/api-v5-memory-forgetting"},{"title":"Migrate container tags to namespaces","sidebarTitle":"Namespaces","href":"/migration/api-v5-settings"},{"title":"Migrate organization settings to v5","sidebarTitle":"Organization settings","href":"/migration/api-v5-organization"},{"title":"Migrate metadata filters to v5","sidebarTitle":"Typed filters","href":"/migration/api-v5-filters"},{"title":"Verify and roll out a v5 migration","sidebarTitle":"Verification and rollout","href":"/migration/api-v5-rollout"}]},{"group":"From another provider","icon":"/icons/hugeicons/delivery-truck-01.svg","pages":[{"title":"Migrating from Mem0 to Supermemory","sidebarTitle":"From Mem0","href":"/migration/from-mem0"},{"title":"Migrating from Zep to Supermemory","sidebarTitle":"From Zep","href":"/migration/from-zep"}]}]}]},{"anchor":"API integrations","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/plug-01.svg","pages":[{"title":"API integrations","href":"/integrations/supermemory-sdk"}]},{"anchor":"API reference","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/plug-socket.svg","versions":[{"version":"Legacy (v3, v4)","pages":[{"title":"Legacy (v3, v4)","href":"/api-reference/overview"}]},{"version":"Latest (v5)","default":true,"pages":[{"title":"API reference","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/plug-socket.svg","href":"/v5/api-reference/overview"},{"title":"API keys \u0026 auth","sidebarTitle":"API keys","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/key-01.svg","href":"/authentication"},{"group":"Ingest","icon":"/icons/hugeicons/download-01.svg","pages":[{"title":"Ingest","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/book-open-01.svg","href":"/v5/api-reference/ingest"},{"title":"Add document","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi post /ns/{namespace}/document","href":"/v5/api-reference/ingest/add-document"},{"title":"Batch add documents","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi post /ns/{namespace}/document/batch","href":"/v5/api-reference/ingest/batch-add-documents"},{"title":"Upload file","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi post /ns/{namespace}/document/file","href":"/v5/api-reference/ingest/upload-file"},{"title":"Update document","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi patch /ns/{namespace}/document/{id}","href":"/v5/api-reference/ingest/update-document"},{"title":"Replace document with file","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi post /ns/{namespace}/document/file/{id}","href":"/v5/api-reference/ingest/replace-document-with-file"},{"title":"Partially update document file","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi patch /ns/{namespace}/document/file/{id}","href":"/v5/api-reference/ingest/partially-update-document-file"}]},{"group":"Content Management","icon":"/icons/hugeicons/file-02.svg","pages":[{"title":"Content management","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/book-open-01.svg","href":"/v5/api-reference/content-management"},{"title":"Get document","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi get /ns/{namespace}/document/{id}","href":"/v5/api-reference/content-management/get-document"},{"title":"List resources","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi post /ns/{namespace}/list/{type}","href":"/v5/api-reference/content-management/list-resources"},{"title":"Delete documents","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi delete /ns/{namespace}/document","href":"/v5/api-reference/content-management/delete-documents"},{"title":"Forget memories by ID","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi delete /ns/{namespace}/memories","href":"/v5/api-reference/content-management/forget-memories-by-id"},{"title":"Forget memories semantically","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi delete /ns/{namespace}/memories/semantic","href":"/v5/api-reference/content-management/forget-memories-semantically"}]},{"group":"Search","icon":"/icons/hugeicons/search-01.svg","pages":[{"title":"Search","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/book-open-01.svg","href":"/v5/api-reference/search"},{"title":"Search memories","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi post /ns/{namespace}/search","href":"/v5/api-reference/recall-search/search-memories"}]},{"group":"Profiles","icon":"/icons/hugeicons/id.svg","pages":[{"title":"Profiles","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/id.svg","href":"/v5/api-reference/profiles"},{"title":"Get profile","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi post /ns/{namespace}/profile","href":"/v5/api-reference/profiles/get-profile"},{"title":"Get profile buckets","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi get /ns/{namespace}/profile/buckets","href":"/v5/api-reference/profiles/get-profile-buckets"},{"title":"Add or update profile buckets","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi put /ns/{namespace}/profile/buckets","href":"/v5/api-reference/profiles/add-or-update-profile-buckets"},{"title":"Delete profile buckets","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi delete /ns/{namespace}/profile/buckets","href":"/v5/api-reference/profiles/delete-profile-buckets"}]},{"group":"Namespaces","icon":"/icons/hugeicons/layers-01.svg","pages":[{"title":"Namespaces","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/book-open-01.svg","href":"/v5/api-reference/namespaces"},{"title":"List namespaces","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi get /namespaces","href":"/v5/api-reference/namespaces/list-namespaces"},{"title":"Get namespace settings","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi get /ns/{namespace}","href":"/v5/api-reference/namespaces/get-namespace-settings"},{"title":"Update namespace settings","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi patch /ns/{namespace}","href":"/v5/api-reference/namespaces/update-namespace-settings"},{"title":"Delete namespace","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi delete /ns/{namespace}","href":"/v5/api-reference/namespaces/delete-namespace"}]},{"group":"Connectors","icon":"/icons/hugeicons/plug-01.svg","pages":[{"title":"Connectors","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/book-open-01.svg","href":"/v5/api-reference/connectors"},{"title":"Create connector","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi post /ns/{namespace}/connectors","href":"/v5/api-reference/connectors/create-connector"},{"title":"List connectors","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi get /ns/{namespace}/connectors","href":"/v5/api-reference/connectors/list-connectors"},{"title":"Get connector","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi get /ns/{namespace}/connectors/{id}","href":"/v5/api-reference/connectors/get-connector"},{"title":"Update connector","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi patch /ns/{namespace}/connectors/{id}","href":"/v5/api-reference/connectors/update-connector"},{"title":"Sync connector","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi post /ns/{namespace}/connectors/{id}/sync","href":"/v5/api-reference/connectors/sync-connector"},{"title":"Delete connector","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi delete /ns/{namespace}/connectors/{id}","href":"/v5/api-reference/connectors/delete-connector"},{"title":"List all connectors","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi get /connectors","href":"/v5/api-reference/connectors/list-all-connectors"}]},{"group":"Organization","icon":"/icons/hugeicons/building-03.svg","pages":[{"title":"Organization","sidebarTitle":"Overview","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/book-open-01.svg","href":"/v5/api-reference/organization"},{"title":"Get organization settings","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi get /organization","href":"/v5/api-reference/organization/get-organization-settings"},{"title":"Update organization settings","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi patch /organization","href":"/v5/api-reference/organization/update-organization-settings"}]},{"group":"Feedback","pages":[{"title":"Send feedback","deprecated":null,"version":null,"openapi":"https://api.supermemory.ai/v5/openapi post /feedback","href":"/v5/api-reference/feedback/send-feedback"}]}]}]}]},{"tab":"Plugins and MCP","icon":"https://mintlify.s3.us-west-1.amazonaws.com/supermemory/icons/hugeicons/puzzle.svg","pages":[{"title":"Plugins and MCP","href":"/supermemory-mcp/mcp"}]}]},"title":"Migrate document and file updates to v5 - supermemory | Memory API for the AI era","buildId":"dpl_GvhK4qVXq51DpfYJLCtPpYNN4YHN","deploymentId":"dpl_GvhK4qVXq51DpfYJLCtPpYNN4YHN","dynamics":["10e4515597"],"chunks":["BannerMarkdown-EI3b4dIs.js","dist-C3vb5JQZ.js","lib--scc4DXi.js","lib-B8HbPgcC.js","clsx-C6CAjViH.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js"]}