Original client-side modification time as a Unix epoch in milliseconds (e.g. 1712345678000).
Stored in the entry’s client_last_modified field and merged into its EXIF data.
Milliseconds, not seconds. 1712345678 (seconds) would be interpreted as January 1970.
EXIF metadata to merge into the entry. Accepts either:
A base64-encoded JSON string
A raw JSON string
A plain JSON object
Existing EXIF keys are preserved; provided keys overwrite matching ones. If the merged EXIF
contains a capture date, the entry’s captured_at (used by the photo timeline) is updated too.
{ "status": "error", "message": "No metadata provided"}
{ "message": "No query results for model [FileEntry] 999999999"}
You can also set lastModifieddirectly at upload time by including it in the
Upload File or Create S3 Entry
request body. Use this endpoint when the file already exists, or to fix timestamps after the fact.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Drime Cloud API","colors":{"primary":"#56E16C","light":"#56E16C","dark":"#00261D"},"favicon":"https://mintcdn.com/drime-7d0c202e/ABmG84h8M84743yP/favicon.svg?fit=max\u0026auto=format\u0026n=ABmG84h8M84743yP\u0026q=85\u0026s=ba11dd308b30411c1d66789ce3ccdee6","logo":{"light":"https://mintcdn.com/drime-7d0c202e/ABmG84h8M84743yP/logo/light.svg?fit=max\u0026auto=format\u0026n=ABmG84h8M84743yP\u0026q=85\u0026s=833a39f31ac130d95b095ce08a6a2804","dark":"https://mintcdn.com/drime-7d0c202e/psq83zmKxTSRd-0f/logo/dark.svg?fit=max\u0026auto=format\u0026n=psq83zmKxTSRd-0f\u0026q=85\u0026s=2007fcc1031ce5a9e10ea83de616c118"},"api":{"openapi":["openapi.yaml"],"playground":{"display":"interactive"},"mdx":{"server":"https://app.drime.cloud/api/v1","auth":{"method":"bearer","name":null}}},"navbar":{"links":[{"label":"Support","href":"mailto:contact@drime.cloud"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.drime.cloud"}},"footer":{"socials":{"x":"https://x.com/drimecloud","github":"https://github.com/drimecloud","linkedin":"https://linkedin.com/company/drimecloud"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Website","href":"https://drime.cloud","icon":"globe"},{"anchor":"Discord","href":"https://discord.gg/SZYu6A3vth","icon":"discord"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"drime-7d0c202e","hasAudioNarration":false,"actualSubdomain":"drime-7d0c202e","customDomains":["docs.drime.cloud"],"gitSource":{"type":"github","owner":"kiwito200-wq","repo":"drime-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae1458a6f31636991ea7c49","collectionId":"eed114be-9444-4fbd-aeaf-b5ec7c4d3488","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae1458a6f31636991ea7c49"},"entitlements":{},"buildId":"6ae1458a6f31636991ea7c49","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"API Reference","count":63},{"language":"default","tag":"Files \u0026 Folders","count":20},{"language":"default","tag":"Documentation","count":13},{"language":"default","tag":"User \u0026 Workspaces","count":11},{"language":"default","tag":"Vault","count":7},{"language":"default","tag":"OAuth Applications","count":7},{"language":"default","tag":"Get Started","count":6},{"language":"default","tag":"Multipart Uploads","count":5},{"language":"default","tag":"Shareable Links","count":4},{"language":"default","tag":"Uploads","count":4}],"searchSettings":{"showContentSnippets":false}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/files/set-file-metadata","slug":"/api-reference/files/set-file-metadata","pageMetadata":{"title":"Set File Metadata","api":"POST /file-entries/{entryId}/metadata","description":"Set the original modification time (SetModTime), EXIF data or Live Photo link of a file","href":"/api-reference/files/set-file-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: \"Set the original modification time (SetModTime), EXIF data or Live Photo link of a file\"\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`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note,ParamField,ResponseField,Tip,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`Updates metadata on an existing file `,_jsx(_components.strong,{children:`without re-uploading its content`}),`. This is the endpoint to use when you need to:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Preserve the original modification time`}),` of a file after upload (equivalent to rclone’s `,_jsx(_components.code,{children:`SetModTime`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Attach or merge `,_jsx(_components.strong,{children:`EXIF data`}),` after the file content has been uploaded`]}),`\n`,_jsxs(_components.li,{children:[`Link an iOS `,_jsx(_components.strong,{children:`Live Photo`}),` to its video counterpart`]}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`At least one of `,_jsx(_components.code,{children:`lastModified`}),` or `,_jsx(_components.code,{children:`exifData`}),` must be provided, otherwise the request fails with a `,_jsx(_components.code,{children:`422`}),` error.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`entryId`,type:`integer`,required:true,id:`param-entry-id`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`numeric`}),` file entry ID. Entry hashes are not accepted on this endpoint.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsxs(ParamField,{body:`lastModified`,type:`integer`,id:`param-last-modified`,children:[_jsxs(_components.p,{children:[`Original client-side modification time as a `,_jsx(_components.strong,{children:`Unix epoch in milliseconds`}),` (e.g. `,_jsx(_components.code,{children:`1712345678000`}),`).\nStored in the entry’s `,_jsx(_components.code,{children:`client_last_modified`}),` field and merged into its EXIF data.`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`Milliseconds, not seconds. `,_jsx(_components.code,{children:`1712345678`}),` (seconds) would be interpreted as January 1970.`]})})]}),`\n`,_jsxs(ParamField,{body:`exifData`,type:`string | object`,id:`param-exif-data`,children:[_jsx(_components.p,{children:`EXIF metadata to merge into the entry. Accepts either:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.strong,{children:`base64-encoded JSON`}),` string`]}),`\n`,_jsxs(_components.li,{children:[`A raw `,_jsx(_components.strong,{children:`JSON string`})]}),`\n`,_jsxs(_components.li,{children:[`A plain `,_jsx(_components.strong,{children:`JSON object`})]}),`\n`]}),_jsxs(_components.p,{children:[`Existing EXIF keys are preserved; provided keys overwrite matching ones. If the merged EXIF\ncontains a capture date, the entry’s `,_jsx(_components.code,{children:`captured_at`}),` (used by the photo timeline) is updated too.`]})]}),`\n`,_jsx(ParamField,{body:`livePhotoCID`,type:`string`,id:`param-live-photo-cid`,children:_jsx(_components.p,{children:`Apple Live Photo content identifier. Only stored if the entry does not already have one.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Request status (`,_jsx(_components.code,{children:`success`}),`)`]})}),`\n`,_jsx(ResponseField,{name:`updated`,type:`boolean`,id:`param-updated`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the metadata was stored`]})}),`\n`,`\n`,`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`You can also set `,_jsx(_components.code,{children:`lastModified`}),` `,_jsx(_components.strong,{children:`directly at upload time`}),` by including it in the\n`,_jsx(_components.a,{href:`/api-reference/uploads/upload-file`,children:`Upload File`}),` or `,_jsx(_components.a,{href:`/api-reference/uploads/create-s3-entry`,children:`Create S3 Entry`}),`\nrequest body. Use this endpoint when the file already exists, or to fix timestamps after the fact.`]})})]})}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":{"config":{},"pageMetadata":{"title":"Set File Metadata","api":"POST /file-entries/{entryId}/metadata","description":"Set the original modification time (SetModTime), EXIF data or Live Photo link of a file","href":"/api-reference/files/set-file-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`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`Updates metadata on an existing file `,_jsx(_components.strong,{children:`without re-uploading its content`}),`. This is the endpoint to use when you need to:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Preserve the original modification time`}),` of a file after upload (equivalent to rclone’s `,_jsx(_components.code,{children:`SetModTime`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Attach or merge `,_jsx(_components.strong,{children:`EXIF data`}),` after the file content has been uploaded`]}),`\n`,_jsxs(_components.li,{children:[`Link an iOS `,_jsx(_components.strong,{children:`Live Photo`}),` to its video counterpart`]}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`At least one of `,_jsx(_components.code,{children:`lastModified`}),` or `,_jsx(_components.code,{children:`exifData`}),` must be provided, otherwise the request fails with a `,_jsx(_components.code,{children:`422`}),` error.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`entryId`,type:`integer`,required:true,id:`param-entry-id`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`numeric`}),` file entry ID. Entry hashes are not accepted on this endpoint.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsxs(ParamField,{body:`lastModified`,type:`integer`,id:`param-last-modified`,children:[_jsxs(_components.p,{children:[`Original client-side modification time as a `,_jsx(_components.strong,{children:`Unix epoch in milliseconds`}),` (e.g. `,_jsx(_components.code,{children:`1712345678000`}),`).\nStored in the entry’s `,_jsx(_components.code,{children:`client_last_modified`}),` field and merged into its EXIF data.`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`Milliseconds, not seconds. `,_jsx(_components.code,{children:`1712345678`}),` (seconds) would be interpreted as January 1970.`]})})]}),`\n`,_jsxs(ParamField,{body:`exifData`,type:`string | object`,id:`param-exif-data`,children:[_jsx(_components.p,{children:`EXIF metadata to merge into the entry. Accepts either:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.strong,{children:`base64-encoded JSON`}),` string`]}),`\n`,_jsxs(_components.li,{children:[`A raw `,_jsx(_components.strong,{children:`JSON string`})]}),`\n`,_jsxs(_components.li,{children:[`A plain `,_jsx(_components.strong,{children:`JSON object`})]}),`\n`]}),_jsxs(_components.p,{children:[`Existing EXIF keys are preserved; provided keys overwrite matching ones. If the merged EXIF\ncontains a capture date, the entry’s `,_jsx(_components.code,{children:`captured_at`}),` (used by the photo timeline) is updated too.`]})]}),`\n`,_jsx(ParamField,{body:`livePhotoCID`,type:`string`,id:`param-live-photo-cid`,children:_jsx(_components.p,{children:`Apple Live Photo content identifier. Only stored if the entry does not already have one.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Request status (`,_jsx(_components.code,{children:`success`}),`)`]})}),`\n`,_jsx(ResponseField,{name:`updated`,type:`boolean`,id:`param-updated`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the metadata was stored`]})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},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\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://app.drime.cloud/api/v1/file-entries/485529678/metadata`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_ACCESS_TOKEN\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"lastModified\": 1712345678000`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`18`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` entryId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 485529678`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Preserve the file original mtime after upload`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `https://app.drime.cloud/api/v1/file-entries/\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entryId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/metadata`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer YOUR_ACCESS_TOKEN'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lastModified:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` file`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lastModified`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ms epoch from the File API`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`updated`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`16`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`entry_id `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 485529678`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`path `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '/path/to/local/file.pdf'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# os.path.getmtime returns seconds - convert to milliseconds`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mtime_ms `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(os.path.getmtime(path) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://app.drime.cloud/api/v1/file-entries/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`entry_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/metadata'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Bearer YOUR_ACCESS_TOKEN'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'lastModified'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: mtime_ms}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.json()) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# {'status': 'success', 'updated': True}`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200 - Success`,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`422 - No metadata provided`,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No metadata provided\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`404 - Entry not found`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No query results for model [FileEntry] 999999999\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`You can also set `,_jsx(_components.code,{children:`lastModified`}),` `,_jsx(_components.strong,{children:`directly at upload time`}),` by including it in the\n`,_jsx(_components.a,{href:`/api-reference/uploads/upload-file`,children:`Upload File`}),` or `,_jsx(_components.a,{href:`/api-reference/uploads/create-s3-entry`,children:`Create S3 Entry`}),`\nrequest body. Use this endpoint when the file already exists, or to fix timestamps after the fact.`]})})]})}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":{"config":{},"pageMetadata":{"title":"Set File Metadata","api":"POST /file-entries/{entryId}/metadata","description":"Set the original modification time (SetModTime), EXIF data or Live Photo link of a file","href":"/api-reference/files/set-file-metadata"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Path Parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://app.drime.cloud/api/v1/file-entries/485529678/metadata\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer YOUR_ACCESS_TOKEN\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"lastModified\": 1712345678000\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"18\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> entryId\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 485529678\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\">// Preserve the file original mtime after upload\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> `https://app.drime.cloud/api/v1/file-entries/\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">entryId\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">/metadata`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'POST'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Bearer YOUR_ACCESS_TOKEN'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'application/json'\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> lastModified:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> file\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">lastModified\u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"> // ms epoch from the File API\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> })\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">updated\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"16\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> os\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">entry_id \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 485529678\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">path \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '/path/to/local/file.pdf'\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># os.path.getmtime returns seconds - convert to milliseconds\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">mtime_ms \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4EC9B0\"> int\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(os.path.getmtime(path) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">*\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 1000\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> f\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'https://app.drime.cloud/api/v1/file-entries/\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">entry_id\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">/metadata'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Authorization'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Bearer YOUR_ACCESS_TOKEN'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'lastModified'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: mtime_ms}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(response.json()) \u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># {'status': 'success', 'updated': True}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200 - Success","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"422 - No metadata provided","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"No metadata provided\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"404 - Entry not found","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"No query results for model [FileEntry] 999999999\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Set File Metadata","path":"/file-entries/{entryId}/metadata","servers":[{"url":"https://app.drime.cloud/api/v1"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{"entryId":{"schema":[{"type":"integer","description":"The numeric file entry ID. Entry hashes are not accepted on this endpoint.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"lastModified":[{"type":"integer","description":"Original client-side modification time as a Unix epoch in milliseconds (e.g. `1712345678000` ). Stored in the entry’s `client_last_modified` field and merged into its EXIF data."}],"exifData":[{"type":"object","properties":{},"description":"EXIF metadata to merge into the entry. Accepts either: A base64-encoded JSON string A raw JSON string A plain JSON object Existing EXIF keys are preserved; provided keys overwrite matching ones. If the merged EXIF contains a capture date, the entry’s `captured_at` (used by the photo timeline) is updated too."}],"livePhotoCID":[{"type":"string","description":"Apple Live Photo content identifier. Only stored if the entry does not already have one."}]}}],"examples":{"example":{"value":{"lastModified":123,"exifData":{},"livePhotoCID":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"status":[{"type":"string","description":"Request status ( `success` )"}],"updated":[{"type":"boolean","description":"`true` when the metadata was stored"}]}}],"examples":{"example":{"value":{"status":"\u003cstring>","updated":true}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"drime-7d0c202e","siteName":"Drime Cloud API","title":"Set File Metadata - Drime Cloud API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-30T10:26:56.898Z","originalFileLocation":"api-reference/files/set-file-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=\"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=\"Set the original modification time (SetModTime), EXIF data or Live Photo link of a file\">\u003cmeta data-mint-head name=\"application-name\" content=\"Drime Cloud API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/drime-7d0c202e/xL1zPQt4Gdc5r4wD/_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/drime-7d0c202e/xL1zPQt4Gdc5r4wD/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/drime-7d0c202e/xL1zPQt4Gdc5r4wD/_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/drime-7d0c202e/xL1zPQt4Gdc5r4wD/_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/drime-7d0c202e/xL1zPQt4Gdc5r4wD/_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/drime-7d0c202e/xL1zPQt4Gdc5r4wD/_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/drime-7d0c202e/xL1zPQt4Gdc5r4wD/_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/drime-7d0c202e/xL1zPQt4Gdc5r4wD/_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/drime-7d0c202e/xL1zPQt4Gdc5r4wD/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Set File Metadata - Drime Cloud API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Set the original modification time (SetModTime), EXIF data or Live Photo link of a file\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Drime Cloud API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.drime.cloud/api-reference/files/set-file-metadata\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://drime-7d0c202e.mintlify.app/_mintlify/api/og/v2?division=Files+%26+Folders\u0026amp;title=Set+File+Metadata\u0026amp;description=Set+the+original+modification+time+%28SetModTime%29%2C+EXIF+data+or+Live+Photo+link+of+a+file\u0026amp;theme=0e9d82e9ea57dd780ca84665\u0026amp;signature=0c0eec6c1c33e688b7d7184d4f34456a69e6b08f9cbc1dc81deecf4fee7821eb\">\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=\"Set File Metadata - Drime Cloud API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Set the original modification time (SetModTime), EXIF data or Live Photo link of a file\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://drime-7d0c202e.mintlify.app/_mintlify/api/og/v2?division=Files+%26+Folders\u0026amp;title=Set+File+Metadata\u0026amp;description=Set+the+original+modification+time+%28SetModTime%29%2C+EXIF+data+or+Live+Photo+link+of+a+file\u0026amp;theme=0e9d82e9ea57dd780ca84665\u0026amp;signature=0c0eec6c1c33e688b7d7184d4f34456a69e6b08f9cbc1dc81deecf4fee7821eb\">\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/drime-7d0c202e/xL1zPQt4Gdc5r4wD/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Drime Cloud API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#56E16C\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.drime.cloud/api-reference/files/set-file-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/files/set-file-metadata.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.drime.cloud/#organization\",\"name\":\"Drime Cloud API\",\"url\":\"https://docs.drime.cloud\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/drime-7d0c202e/ABmG84h8M84743yP/logo/light.svg?fit=max\u0026auto=format\u0026n=ABmG84h8M84743yP\u0026q=85\u0026s=833a39f31ac130d95b095ce08a6a2804\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.drime.cloud#website\",\"name\":\"Drime Cloud API\",\"url\":\"https://docs.drime.cloud\",\"publisher\":{\"@id\":\"https://docs.drime.cloud/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.drime.cloud/api-reference/files/set-file-metadata#webpage\",\"url\":\"https://docs.drime.cloud/api-reference/files/set-file-metadata\",\"name\":\"Set File Metadata\",\"description\":\"Set the original modification time (SetModTime), EXIF data or Live Photo link of a file\",\"dateModified\":\"2026-08-30T10:26:56.898Z\",\"isPartOf\":{\"@id\":\"https://docs.drime.cloud#website\"},\"breadcrumb\":{\"@id\":\"https://docs.drime.cloud/api-reference/files/set-file-metadata#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.drime.cloud/api-reference/files/set-file-metadata#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Files \u0026 Folders\",\"item\":\"https://docs.drime.cloud/api-reference/files/get-file-entries\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set File Metadata\",\"item\":\"https://docs.drime.cloud/api-reference/files/set-file-metadata\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.drime.cloud/api-reference/files/set-file-metadata#apireference\",\"headline\":\"Set File Metadata\",\"name\":\"Set File Metadata\",\"description\":\"Set the original modification time (SetModTime), EXIF data or Live Photo link of a file\",\"url\":\"https://docs.drime.cloud/api-reference/files/set-file-metadata\",\"mainEntityOfPage\":{\"@id\":\"https://docs.drime.cloud/api-reference/files/set-file-metadata#webpage\"},\"dateModified\":\"2026-08-30T10:26:56.898Z\",\"publisher\":{\"@id\":\"https://docs.drime.cloud/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.drime.cloud#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Drime Cloud API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Drime Cloud API","nav":{"global":{"anchors":[{"anchor":"Website","href":"https://drime.cloud","icon":"globe"},{"anchor":"Discord","href":"https://discord.gg/SZYu6A3vth","icon":"discord"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"group":"User \u0026 Workspaces","pages":[{"title":"Get Logged User","api":"GET /users/me","href":"/api-reference/user/get-logged-user"},{"title":"Get Workspaces","api":"GET /me/workspaces","href":"/api-reference/user/get-workspaces"},{"title":"Get Space Usage","api":"GET /user/space-usage","href":"/api-reference/user/get-space-usage"},{"title":"Create Workspace","api":"POST /workspace","href":"/api-reference/user/create-workspace"},{"title":"Get Workspace","api":"GET /workspace/{id}","href":"/api-reference/user/get-workspace"},{"title":"Update Workspace","api":"PUT /workspace/{id}","href":"/api-reference/user/update-workspace"},{"title":"Delete Workspace","api":"DELETE /workspace/{id}","href":"/api-reference/user/delete-workspace"},{"title":"Upload Workspace Avatar","api":"POST /workspace/{id}/avatar","href":"/api-reference/user/upload-workspace-avatar"},{"title":"Get Workspace Roles","api":"GET /workspace_roles","href":"/api-reference/user/get-workspace-roles"},{"title":"Get Workspace File Stats","api":"GET /workspace_files","href":"/api-reference/user/get-workspace-files"},{"title":"Get Notifications","api":"GET /notifications","href":"/api-reference/user/get-notifications"}]},{"group":"Files \u0026 Folders","pages":[{"title":"List File Entries","api":"GET /drive/file-entries","href":"/api-reference/files/get-file-entries"},{"title":"Get File Entry","api":"GET /file-entries/{entryId}/model","href":"/api-reference/files/get-file-entry"},{"title":"Update File Entry","api":"PUT /file-entries/{entryId}","description":"Rename or update file/folder details","href":"/api-reference/files/update-file-entry"},{"title":"Set File Metadata","api":"POST /file-entries/{entryId}/metadata","href":"/api-reference/files/set-file-metadata"},{"title":"Delete Entries","api":"POST /file-entries/delete","description":"Move entries to trash or delete permanently","href":"/api-reference/files/delete-entries"},{"title":"Create Folder","api":"POST /folders","href":"/api-reference/files/create-folder"},{"title":"Get User Folders","api":"GET /users/{userId}/folders","href":"/api-reference/files/get-user-folders"},{"title":"Move Entries","api":"POST /file-entries/move","href":"/api-reference/files/move-entries"},{"title":"Duplicate Entries","api":"POST /file-entries/duplicate","href":"/api-reference/files/duplicate-entries"},{"title":"Restore Entries","api":"POST /file-entries/restore","href":"/api-reference/files/restore-entries"},{"title":"Download File","api":"GET /file-entries/download/{hash}","href":"/api-reference/files/download-file"},{"title":"Check File Hash","api":"POST /file-entries/hash/check","href":"/api-reference/files/check-file-hash"},{"title":"Verify File Integrity","api":"POST /file-entries/{entryId}/verify-integrity","href":"/api-reference/files/verify-file-integrity"},{"title":"Extract Archive","api":"POST /file-entries/{entryId}/extract","href":"/api-reference/files/extract-archive"},{"title":"Get Folder Count","api":"GET /folders/{folderId}/count","href":"/api-reference/files/get-folder-count"},{"title":"Get Folder Path","api":"GET /folders/{folderHash}/path","href":"/api-reference/files/get-folder-path"},{"title":"Get Available Name","api":"POST /entry/getAvailableName","href":"/api-reference/files/get-available-name"},{"title":"Get File Tags","api":"GET /file-entry-tags","href":"/api-reference/files/get-file-tags"},{"title":"Get File Backup History","api":"GET /file-backup","href":"/api-reference/files/get-file-backup"},{"title":"Convert File","api":"POST /entry/convert","href":"/api-reference/files/convert-file"}]},{"group":"Uploads","pages":[{"title":"Upload File","api":"POST /uploads","href":"/api-reference/uploads/upload-file"},{"title":"Validate Upload","api":"POST /uploads/validate","href":"/api-reference/uploads/validate-upload"},{"title":"Get Presigned URL","api":"POST /s3/simple/presign","href":"/api-reference/uploads/presign-url"},{"title":"Create S3 Entry","api":"POST /s3/entries","href":"/api-reference/uploads/create-s3-entry"}]},{"group":"Multipart Uploads","pages":[{"title":"Create Multipart Upload","api":"POST /s3/multipart/create","href":"/api-reference/multipart/create-multipart"},{"title":"Sign Part URLs","api":"POST /s3/multipart/batch-sign-part-urls","href":"/api-reference/multipart/sign-part-urls"},{"title":"Complete Multipart Upload","api":"POST /s3/multipart/complete","href":"/api-reference/multipart/complete-multipart"},{"title":"Abort Multipart Upload","api":"POST /s3/multipart/abort","href":"/api-reference/multipart/abort-multipart"},{"title":"Get Uploaded Parts","api":"POST /s3/multipart/get-uploaded-parts","href":"/api-reference/multipart/get-uploaded-parts"}]},{"group":"Sharing","pages":[{"title":"Share Entry","api":"POST /file-entries/{entryId}/share","href":"/api-reference/sharing/share-entry"},{"title":"Change Permissions","api":"PUT /file-entries/{entryId}/change-permissions","href":"/api-reference/sharing/change-permissions"},{"title":"Unshare Entry","api":"POST /file-entries/{entryId}/unshare","href":"/api-reference/sharing/unshare-entry"}]},{"group":"Shareable Links","pages":[{"title":"Get Shareable Link","api":"GET /file-entries/{entryId}/shareable-link","href":"/api-reference/links/get-shareable-link"},{"title":"Create Shareable Link","api":"POST /file-entries/{entryId}/shareable-link","href":"/api-reference/links/create-shareable-link"},{"title":"Update Shareable Link","api":"PUT /file-entries/{entryId}/shareable-link","href":"/api-reference/links/update-shareable-link"},{"title":"Delete Shareable Link","api":"DELETE /file-entries/{entryId}/shareable-link","href":"/api-reference/links/delete-shareable-link"}]},{"group":"Starring","pages":[{"title":"Star Entries","api":"POST /file-entries/star","href":"/api-reference/starring/star-entries"},{"title":"Unstar Entries","api":"POST /file-entries/unstar","href":"/api-reference/starring/unstar-entries"}]},{"group":"Vault","pages":[{"title":"Get Vault","api":"GET /vault","href":"/api-reference/vault/get-vault"},{"title":"Create Vault","api":"POST /vault/create","href":"/api-reference/vault/create-vault"},{"title":"Get Vault Entries","api":"GET /vault/file-entries","href":"/api-reference/vault/get-vault-entries"},{"title":"Move Vault Entries","api":"POST /vault/file-entries/move","href":"/api-reference/vault/move-vault-entries"},{"title":"Delete Vault Entries","api":"POST /vault/delete-entries","href":"/api-reference/vault/delete-vault-entries"},{"title":"Download Vault Folder","api":"GET /vault/entries/download/{entryId}","href":"/api-reference/vault/download-vault-entry"},{"title":"Update Vault Entry","api":"PUT /vault/{entryId}","href":"/api-reference/vault/update-vault-entry"}]},{"group":"Notes","pages":[{"title":"Get Notes","api":"GET /notes","href":"/api-reference/notes/get-notes"},{"title":"Get Note","api":"GET /getNote/{id}","href":"/api-reference/notes/get-note"},{"title":"Create Note","api":"POST /notes/create","href":"/api-reference/notes/create-note"}]},{"group":"Tracking","pages":[{"title":"Get Tracked Files","api":"GET /track/all","href":"/api-reference/tracking/get-tracked-files"},{"title":"Set Tracked","api":"POST /track/setTracked","href":"/api-reference/tracking/set-tracked"},{"title":"Get Tracking Stats","api":"GET /track/infos/{entryId}","href":"/api-reference/tracking/get-tracking-stats"}]}]}]},"basePath":"","title":"Set File Metadata - Drime Cloud API","buildId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","deploymentId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-C8RPHPxo.js","utils-0BK-9q6z.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DfjzsUJT.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B4v9psJ4.js","snippetPresets-CpTQv-Ez.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-BNP-Fvr0.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BSgu6h1D.js","shallow-Biv1i9Gs.js","getApiPlaygroundDisplay-BoGOXhtF.js","CodeSnippet-DvQoT18_.js","CodeSnippets-Dnpa15xT.js","Page-Buji1S4J.js","getPastedJson-xAIyhUFE.js","icon-S6FBih11.js","MethodPill-SaYeUZyk.js","DuplicateIcon-Cs-p3v2Q.js","createIcon-DjCFEoHq.js","DynamicMarkdown-BcnBltEQ.js","SectionHeading-BUBl0eEF.js","axios-vUo_bRtp.js"]}