After starting an upload and putting the bytes at its temporary URL, commit the session to create the Drive file.Required scope:drive:write
This endpoint requires the Drive document creation API to be deployed to the selected environment, with Drive enabled.
Use the original API key. The session must belong to the key owner and the resolved chapter. Association-wide keys must specify the original chapter_id again.The API rechecks current folder permissions, the file’s exact size, its signature and available storage quota. On success, it creates the file with inherited permissions and records the upload in the chapter’s activity log.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Transparency Hub Network","colors":{"primary":"#006699","light":"#3399CC","dark":"#004D73"},"favicon":"https://mintcdn.com/transparencyhubnetwork/6pI7fCXnEFY-8F9d/favicon.png?fit=max\u0026auto=format\u0026n=6pI7fCXnEFY-8F9d\u0026q=85\u0026s=4f57b7b0153fac3a72cc51e970148c89","logo":{"light":"https://mintcdn.com/transparencyhubnetwork/6pI7fCXnEFY-8F9d/logo/light.png?fit=max\u0026auto=format\u0026n=6pI7fCXnEFY-8F9d\u0026q=85\u0026s=4feed52686f2d8a3dc7aef077520304e","dark":"https://mintcdn.com/transparencyhubnetwork/6pI7fCXnEFY-8F9d/logo/dark.png?fit=max\u0026auto=format\u0026n=6pI7fCXnEFY-8F9d\u0026q=85\u0026s=9cdabb8a0d3e8f68bb10975182f5835c"},"api":{"openapi":"api-reference/openapi.json","playground":{"display":"interactive"},"mdx":{"server":["https://api.transparencyhubnetwork.ai/api","https://testapi.transparencyhubnetwork.ai/api"],"auth":{"method":"key","name":"X-API-Key"}}},"navbar":{"links":[{"label":"Support","href":"mailto:support@transparencyhubnetwork.ai"}],"primary":{"type":"button","label":"Get Started","href":"https://transparencyhubnetwork.ai/#signup"}},"footer":{"socials":{"website":"https://transparencyhubnetwork.ai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"transparencyhubnetwork","hasAudioNarration":false,"actualSubdomain":"transparencyhubnetwork","customDomains":["docs.transparencyhubnetwork.ai"],"gitSource":{"type":"github","owner":"transparency-hub","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adc8f35504201768b1c80ba","collectionId":"8c4d0995-d408-45d9-bd5b-8c32d1227053","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adc8f35504201768b1c80ba"},"entitlements":{},"buildId":"6ae7c427a37185f6d62695be","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"Documentation","count":142},{"language":"default","tag":"API Reference","count":90},{"language":"default","tag":"Chapter tools","count":14},{"language":"default","tag":"Projects","count":12},{"language":"default","tag":"Community","count":8},{"language":"default","tag":"Admin settings and workflow","count":7},{"language":"default","tag":"Tasks \u0026 Contacts","count":7},{"language":"default","tag":"Drive","count":6},{"language":"default","tag":"Meetings","count":6},{"language":"default","tag":"Applications","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/drive/commit-upload","slug":"/api-reference/drive/commit-upload","pageMetadata":{"title":"Commit a Drive Upload","openapi":"POST /v1/drive/files/commit","description":"Validate an uploaded file and make it available in Drive.","href":"/api-reference/drive/commit-upload"},"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: \"Validate an uploaded file and make it available in Drive.\"\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`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Note,Table}=_components;if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`After `,_jsx(_components.a,{href:`/api-reference/drive/upload-session`,children:`starting an upload`}),` and putting the bytes at its temporary URL, commit the session to create the Drive file.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Required scope:`}),` `,_jsx(_components.code,{children:`drive:write`})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`This endpoint requires the Drive document creation API to be deployed to the selected environment, with Drive enabled.`})}),`\n`,_jsxs(_components.p,{children:[`Use the original API key. The session must belong to the key owner and the resolved chapter. Association-wide keys must specify the original `,_jsx(_components.code,{children:`chapter_id`}),` again.`]}),`\n`,_jsx(_components.p,{children:`The API rechecks current folder permissions, the file’s exact size, its signature and available storage quota. On success, it creates the file with inherited permissions and records the upload in the chapter’s activity log.`}),`\n`,`\n`,`\n`,_jsxs(_components.p,{children:[`The file now appears in Drive. The response includes metadata; use its `,_jsx(_components.code,{children:`id`}),` with `,_jsx(_components.a,{href:`/api-reference/drive/download`,children:`Download a Drive File`}),` to fetch it with `,_jsx(_components.code,{children:`drive:download`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Missing uploaded bytes, size mismatch, invalid signature or quota exceeded`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Missing scope, forbidden chapter or insufficient current Drive permissions`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Session unavailable, including one owned by someone else or in another chapter`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:`Session already finalized, or a file with this name already exists`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`410`})}),_jsx(_components.td,{children:`Session expired; start a new upload`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:`Drive is disabled`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`A session can be committed once. After an uncertain response, check `,_jsx(_components.a,{href:`/api-reference/drive/items`,children:`List Drive Items`}),` before starting another upload; listing requires `,_jsx(_components.code,{children:`drive:read`}),`.`]})]})}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":"Commit a Drive Upload","openapi":"POST /v1/drive/files/commit","description":"Validate an uploaded file and make it available in Drive.","href":"/api-reference/drive/commit-upload"}}},"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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Note,RequestExample,ResponseExample,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Note)_missingMdxReference(`Note`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`After `,_jsx(_components.a,{href:`/api-reference/drive/upload-session`,children:`starting an upload`}),` and putting the bytes at its temporary URL, commit the session to create the Drive file.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Required scope:`}),` `,_jsx(_components.code,{children:`drive:write`})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`This endpoint requires the Drive document creation API to be deployed to the selected environment, with Drive enabled.`})}),`\n`,_jsxs(_components.p,{children:[`Use the original API key. The session must belong to the key owner and the resolved chapter. Association-wide keys must specify the original `,_jsx(_components.code,{children:`chapter_id`}),` again.`]}),`\n`,_jsx(_components.p,{children:`The API rechecks current folder permissions, the file’s exact size, its signature and available storage quota. On success, it creates the file with inherited permissions and records the upload in the chapter’s activity log.`}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`Request`,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:` \"upload_session_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`123`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`201`,numberOfLines:`16`,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:`16`,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:` \"data\"`}),_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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`502`}),_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:` \"parent_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`22`}),_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:` \"is_root\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_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:` \"item_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"file\"`}),_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:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Annual report.pdf\"`}),_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:` \"file_size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12345`}),_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:` \"content_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/pdf\"`}),_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:` \"content_version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"createdby\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7`}),_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:` \"createddate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-24T10:05:00Z\"`}),_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:` \"lastmodifieddate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\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`]})})})}),`\n`,_jsxs(_components.p,{children:[`The file now appears in Drive. The response includes metadata; use its `,_jsx(_components.code,{children:`id`}),` with `,_jsx(_components.a,{href:`/api-reference/drive/download`,children:`Download a Drive File`}),` to fetch it with `,_jsx(_components.code,{children:`drive:download`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Missing uploaded bytes, size mismatch, invalid signature or quota exceeded`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Missing scope, forbidden chapter or insufficient current Drive permissions`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Session unavailable, including one owned by someone else or in another chapter`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:`Session already finalized, or a file with this name already exists`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`410`})}),_jsx(_components.td,{children:`Session expired; start a new upload`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:`Drive is disabled`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`A session can be committed once. After an uncertain response, check `,_jsx(_components.a,{href:`/api-reference/drive/items`,children:`List Drive Items`}),` before starting another upload; listing requires `,_jsx(_components.code,{children:`drive:read`}),`.`]})]})}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":"Commit a Drive Upload","openapi":"POST /v1/drive/files/commit","description":"Validate an uploaded file and make it available in Drive.","href":"/api-reference/drive/commit-upload"}}}},"mdxExtracts":{"tableOfContents":[],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Request","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\"> \"upload_session_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">123\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":[]},"response":{"type":"ResponseExample","children":[{"filename":"201","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=\"16\">\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\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">502\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"parent_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">22\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"is_root\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"item_type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"file\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Annual report.pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"file_size\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">12345\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"content_type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"content_version\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"createdby\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">7\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"createddate\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-24T10:05:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"lastmodifieddate\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\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\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/_mintlify/custom/transparencyhubnetwork/24105e52db8f49fe/images/gallery/generate-gallery.js","/_mintlify/custom/transparencyhubnetwork/b0ea3be6490a42cb/images/gallery/resize-gallery.js","/_mintlify/custom/transparencyhubnetwork/a6073150c9c03522/images/generate-cover.js"],"openApiReferenceData":{"operation":{"summary":"Commit a Drive file upload","x-scope":"drive:write","description":"Validate an uploaded file and make it available in Drive.","parameters":["25acc223-4a32-468f-9ef1-3be2832c7bbb"],"requestBody":"98399b7b-eca5-4c12-a0b4-6950f14f1536","responses":{"201":"8f34cfed-b84a-4e98-b954-76345cdba446","400":"937e8b17-dd8e-43fa-b52b-93aa32ef472a","401":"a6e096a2-43cf-4cdd-a946-ca7a3dab650b","403":"54f0fc99-1020-400c-a4c7-75ab53b1860b","404":"a1228f0d-91aa-4f44-8e58-14b81b142d61","409":"5d2467e1-3fb6-4a37-9999-102cbd3af61f","410":"71d26e50-0ece-45d1-8e74-ae5914760fc5","429":"97e42933-62a4-44d9-9007-87dedcdd5747","500":"01beaa22-7c74-4c05-a11a-2483b1e03b7a","503":"1df2a4b4-4dc2-425e-9dd7-0dfbf0fac59e"},"method":"post","type":"path","servers":["27f4af71-e8ec-403b-8f9a-e2f75d5b957d","c3455880-d26b-4f08-acdd-5db6a467c6a8"],"security":["1eb27996-8bc6-4507-8859-56b230e67137","7c674b49-cc12-4b7a-a7b3-650fca865336"],"path":"/v1/drive/files/commit","baseUrlOptions":["https://api.transparencyhubnetwork.ai/api","https://testapi.transparencyhubnetwork.ai/api"],"title":"Commit a Drive file upload","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"3","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"upload_session_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"123"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Request"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"16","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"status\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"success\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"data\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"502"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"parent_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"22"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"is_root\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"false"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"item_type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"file\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"name\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Annual report.pdf\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"file_size\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"12345"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"content_type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"application/pdf\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"content_version\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"0"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"createdby\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"7"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"createddate\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"2026-10-24T10:05:00Z\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"lastmodifieddate\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"null"}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"201"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{"25acc223-4a32-468f-9ef1-3be2832c7bbb":{"name":"chapter_id","in":"query","schema":{"type":"integer","description":"Required for association-wide keys; must match the key's chapter for chapter-bound keys.","uniqueKey":"","typeLabel":"integer"},"description":"Required for association-wide keys; must match the key's chapter for chapter-bound keys."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["upload_session_id"],"properties":{"upload_session_id":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"upload_session_id","typeLabel":"integer"},"chapter_id":{"type":"integer","minimum":1,"description":"Required for association-wide keys; otherwise the key chapter is used.","uniqueKey":"chapter_id","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"upload_session_id":2,"chapter_id":2}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"8f34cfed-b84a-4e98-b954-76345cdba446":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["success"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"data":{"type":"object","properties":{"id":{"oneOf":[{"type":"integer","uniqueKey":"data.id.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.id","typeLabel":"integer | null"},"parent_id":{"oneOf":[{"type":"integer","uniqueKey":"data.parent_id.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.parent_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.parent_id","typeLabel":"integer | null"},"is_root":{"oneOf":[{"type":"boolean","uniqueKey":"data.is_root.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"data.is_root.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.is_root","typeLabel":"boolean | null"},"item_type":{"oneOf":[{"type":"string","uniqueKey":"data.item_type.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.item_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.item_type","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","uniqueKey":"data.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.name","typeLabel":"string | null"},"file_size":{"oneOf":[{"type":"integer","uniqueKey":"data.file_size.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.file_size.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.file_size","typeLabel":"integer | null"},"content_type":{"oneOf":[{"type":"string","uniqueKey":"data.content_type.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.content_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.content_type","typeLabel":"string | null"},"content_version":{"oneOf":[{"type":"integer","uniqueKey":"data.content_version.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.content_version.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.content_version","typeLabel":"integer | null"},"createdby":{"oneOf":[{"type":"integer","uniqueKey":"data.createdby.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.createdby.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.createdby","typeLabel":"integer | null"},"createddate":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.createddate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.createddate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.createddate","typeLabel":"string\u003cdate-time> | null"},"lastmodifieddate":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.lastmodifieddate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.lastmodifieddate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lastmodifieddate","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"success","data":{"id":123,"parent_id":123,"is_root":true,"item_type":"\u003cstring>","name":"\u003cstring>","file_size":123,"content_type":"\u003cstring>","content_version":123,"createdby":123,"createddate":"2023-11-07T05:31:56Z","lastmodifieddate":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"937e8b17-dd8e-43fa-b52b-93aa32ef472a":{"description":"Invalid input, unsupported file type, invalid file signature, size mismatch, or quota exceeded","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"a6e096a2-43cf-4cdd-a946-ca7a3dab650b":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"54f0fc99-1020-400c-a4c7-75ab53b1860b":{"description":"Missing drive:write scope, forbidden chapter, or insufficient Drive permissions","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"a1228f0d-91aa-4f44-8e58-14b81b142d61":{"description":"Parent folder or upload session not found","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"5d2467e1-3fb6-4a37-9999-102cbd3af61f":{"description":"File name conflict or upload session already finalized","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"71d26e50-0ece-45d1-8e74-ae5914760fc5":{"description":"Upload session expired","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"97e42933-62a4-44d9-9007-87dedcdd5747":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"01beaa22-7c74-4c05-a11a-2483b1e03b7a":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"1df2a4b4-4dc2-425e-9dd7-0dfbf0fac59e":{"description":"Drive is disabled","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"1eb27996-8bc6-4507-8859-56b230e67137":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","scopes":[],"schemeName":"ApiKeyAuth"}},"7c674b49-cc12-4b7a-a7b3-650fca865336":{"BearerAuth":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"27f4af71-e8ec-403b-8f9a-e2f75d5b957d":{"url":"https://api.transparencyhubnetwork.ai/api"},"c3455880-d26b-4f08-acdd-5db6a467c6a8":{"url":"https://testapi.transparencyhubnetwork.ai/api","description":"Test"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"transparencyhubnetwork","siteName":"Transparency Hub Network","title":"Commit a Drive Upload - Transparency Hub Network","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-24T10:58:07.390Z","originalFileLocation":"api-reference/drive/commit-upload.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=\"Validate an uploaded file and make it available in Drive.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Transparency Hub Network\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Commit a Drive Upload - Transparency Hub Network\">\u003cmeta data-mint-head property=\"og:description\" content=\"Validate an uploaded file and make it available in Drive.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Transparency Hub Network\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.transparencyhubnetwork.ai/api-reference/drive/commit-upload\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://transparencyhubnetwork.mintlify.site/_mintlify/api/og/v2?division=Drive\u0026amp;title=Commit+a+Drive+Upload\u0026amp;description=Validate+an+uploaded+file+and+make+it+available+in+Drive.\u0026amp;theme=a13e828d2ebc5243c055232a\u0026amp;signature=f9c973c43ceca8b8ae17793613915220385d7926a119680182cab8e8f7947475\">\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=\"Commit a Drive Upload - Transparency Hub Network\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Validate an uploaded file and make it available in Drive.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://transparencyhubnetwork.mintlify.site/_mintlify/api/og/v2?division=Drive\u0026amp;title=Commit+a+Drive+Upload\u0026amp;description=Validate+an+uploaded+file+and+make+it+available+in+Drive.\u0026amp;theme=a13e828d2ebc5243c055232a\u0026amp;signature=f9c973c43ceca8b8ae17793613915220385d7926a119680182cab8e8f7947475\">\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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Transparency Hub Network\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#006699\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.transparencyhubnetwork.ai/api-reference/drive/commit-upload\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/drive/commit-upload.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.transparencyhubnetwork.ai/#organization\",\"name\":\"Transparency Hub Network\",\"url\":\"https://docs.transparencyhubnetwork.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/transparencyhubnetwork/6pI7fCXnEFY-8F9d/logo/light.png?fit=max\u0026auto=format\u0026n=6pI7fCXnEFY-8F9d\u0026q=85\u0026s=4feed52686f2d8a3dc7aef077520304e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.transparencyhubnetwork.ai#website\",\"name\":\"Transparency Hub Network\",\"url\":\"https://docs.transparencyhubnetwork.ai\",\"publisher\":{\"@id\":\"https://docs.transparencyhubnetwork.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/commit-upload#webpage\",\"url\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/commit-upload\",\"name\":\"Commit a Drive Upload\",\"description\":\"Validate an uploaded file and make it available in Drive.\",\"dateModified\":\"2026-10-24T10:58:07.390Z\",\"isPartOf\":{\"@id\":\"https://docs.transparencyhubnetwork.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/commit-upload#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/commit-upload#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Drive\",\"item\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/items\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Commit a Drive Upload\",\"item\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/commit-upload\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/commit-upload#apireference\",\"headline\":\"Commit a Drive Upload\",\"name\":\"Commit a Drive Upload\",\"description\":\"Validate an uploaded file and make it available in Drive.\",\"url\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/commit-upload\",\"mainEntityOfPage\":{\"@id\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/commit-upload#webpage\"},\"dateModified\":\"2026-10-24T10:58:07.390Z\",\"publisher\":{\"@id\":\"https://docs.transparencyhubnetwork.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.transparencyhubnetwork.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Transparency Hub Network\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Transparency Hub Network","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"}]},{"group":"Members","pages":[{"title":"List Members","openapi":"GET /v1/members","href":"/api-reference/members/list"},{"title":"Get Member","openapi":"GET /v1/members/{member_id}","href":"/api-reference/members/get"},{"title":"Create Member","openapi":"POST /v1/members","href":"/api-reference/members/create"},{"title":"Update Member","openapi":"PATCH /v1/members/{member_id}","href":"/api-reference/members/update"}]},{"group":"Membership Types","pages":[{"title":"List Membership Types","openapi":"GET /v1/membership-types","href":"/api-reference/membership-types/list"},{"title":"Get Membership Type","openapi":"GET /v1/membership-types/{type_id}","href":"/api-reference/membership-types/get"},{"title":"Create Membership Type","openapi":"POST /v1/membership-types","href":"/api-reference/membership-types/create"},{"title":"Update Membership Type","openapi":"PATCH /v1/membership-types/{type_id}","href":"/api-reference/membership-types/update"},{"title":"List Membership Type Fees","openapi":"GET /v1/membership-types/{type_id}/dues","href":"/api-reference/payments/membership-type-dues"}]},{"group":"Events","pages":[{"title":"List Events","openapi":"GET /v1/events","href":"/api-reference/events/list"},{"title":"Get Event","openapi":"GET /v1/events/{event_id}","href":"/api-reference/events/get"},{"title":"Create Event","openapi":"POST /v1/events","href":"/api-reference/events/create"},{"title":"Update Event","openapi":"PATCH /v1/events/{event_id}","href":"/api-reference/events/update"},{"title":"List event attendees / RSVPs","openapi":"GET /v1/events/{event_id}/attendees","href":"/api-reference/events/attendees"}]},{"group":"Payments","pages":[{"title":"List Transactions","openapi":"GET /v1/transactions","href":"/api-reference/payments/transactions-list"},{"title":"Get Transaction","openapi":"GET /v1/transactions/{transaction_id}","href":"/api-reference/payments/transactions-get"},{"title":"List Member Dues","openapi":"GET /v1/members/{member_id}/dues","href":"/api-reference/payments/member-dues"},{"title":"List refunds for a transaction","openapi":"GET /v1/transactions/{transaction_id}/refunds","href":"/api-reference/payments/transaction-refunds"}]},{"group":"Community","pages":[{"title":"List Posts","openapi":"GET /v1/posts","href":"/api-reference/community/posts-list"},{"title":"Get Post","openapi":"GET /v1/posts/{post_id}","href":"/api-reference/community/posts-get"},{"title":"List Post Comments","openapi":"GET /v1/posts/{post_id}/comments","href":"/api-reference/community/post-comments"},{"title":"List Groups","openapi":"GET /v1/groups","href":"/api-reference/community/groups-list"},{"title":"Get Group","openapi":"GET /v1/groups/{group_id}","href":"/api-reference/community/groups-get"},{"title":"List Group Members","openapi":"GET /v1/groups/{group_id}/members","href":"/api-reference/community/group-members"},{"title":"Likes on a post","openapi":"GET /v1/posts/{post_id}/likes","href":"/api-reference/community/post-likes"},{"title":"List group join requests","openapi":"GET /v1/groups/{group_id}/requests","href":"/api-reference/community/group-requests"}]},{"group":"Meetings","pages":[{"title":"List Meetings","openapi":"GET /v1/meetings","href":"/api-reference/meetings/list"},{"title":"Get Meeting","openapi":"GET /v1/meetings/{meeting_id}","href":"/api-reference/meetings/get"},{"title":"List Meeting Recordings","openapi":"GET /v1/meetings/{meeting_id}/recordings","href":"/api-reference/meetings/recordings"},{"title":"List Minutes","openapi":"GET /v1/minutes","href":"/api-reference/meetings/minutes-list"},{"title":"Get Minute","openapi":"GET /v1/minutes/{minute_id}","href":"/api-reference/meetings/minutes-get"},{"title":"List meeting feedback","openapi":"GET /v1/meetings/{meeting_id}/feedback","href":"/api-reference/meetings/feedback"}]},{"group":"Organisation","pages":[{"title":"Get the key's chapter","openapi":"GET /v1/chapter","href":"/api-reference/organisation/chapter"},{"title":"List sub-chapters","openapi":"GET /v1/chapter/children","href":"/api-reference/organisation/chapter-children"},{"title":"Get the association","openapi":"GET /v1/association","href":"/api-reference/organisation/association"},{"title":"List roles","openapi":"GET /v1/roles","href":"/api-reference/organisation/roles"},{"title":"List activity log entries","openapi":"GET /v1/activity","href":"/api-reference/organisation/activity"}]},{"group":"Tasks \u0026 Contacts","pages":[{"title":"List tasks","openapi":"GET /v1/tasks","href":"/api-reference/tasks-contacts/tasks"},{"title":"Create task","openapi":"POST /v1/tasks","href":"/api-reference/tasks-contacts/tasks-create"},{"title":"Get task","openapi":"GET /v1/tasks/{task_id}","href":"/api-reference/tasks-contacts/tasks-get"},{"title":"List contacts","openapi":"GET /v1/contacts","href":"/api-reference/tasks-contacts/contacts"},{"title":"Create contact","openapi":"POST /v1/contacts","href":"/api-reference/tasks-contacts/contacts-create"},{"title":"List contact groups","openapi":"GET /v1/contacts/groups","href":"/api-reference/tasks-contacts/contact-groups"},{"title":"Get contact","openapi":"GET /v1/contacts/{contact_id}","href":"/api-reference/tasks-contacts/contacts-get"}]},{"group":"Projects","pages":[{"title":"List projects","openapi":"GET /v1/projects","href":"/api-reference/projects/projects"},{"title":"Get project","openapi":"GET /v1/projects/{project_id}","href":"/api-reference/projects/projects-get"},{"title":"List board columns","openapi":"GET /v1/projects/{project_id}/columns","href":"/api-reference/projects/project-columns"},{"title":"List labels","openapi":"GET /v1/projects/{project_id}/labels","href":"/api-reference/projects/project-labels"},{"title":"List project tasks","openapi":"GET /v1/projects/{project_id}/tasks","href":"/api-reference/projects/project-tasks"},{"title":"Create project task","openapi":"POST /v1/projects/{project_id}/tasks","href":"/api-reference/projects/project-tasks-create"},{"title":"Get project task","openapi":"GET /v1/project-tasks/{task_id}","href":"/api-reference/projects/project-tasks-get"},{"title":"List task updates and comments","openapi":"GET /v1/project-tasks/{task_id}/updates","href":"/api-reference/projects/project-task-updates"},{"title":"List task time logs","openapi":"GET /v1/project-tasks/{task_id}/time-logs","href":"/api-reference/projects/project-task-time-logs"},{"title":"List task attachments (metadata)","openapi":"GET /v1/project-tasks/{task_id}/attachments","href":"/api-reference/projects/project-task-attachments"},{"title":"Task dependencies","openapi":"GET /v1/project-tasks/{task_id}/dependencies","href":"/api-reference/projects/project-task-dependencies"},{"title":"List volunteer requests","openapi":"GET /v1/project-tasks/{task_id}/volunteer-requests","href":"/api-reference/projects/project-task-volunteers"}]},{"group":"Fundraising","pages":[{"title":"List fundraising campaigns","openapi":"GET /v1/fundraising/campaigns","href":"/api-reference/fundraising/campaigns"},{"title":"Get fundraising campaign","openapi":"GET /v1/fundraising/campaigns/{campaign_id}","href":"/api-reference/fundraising/campaigns-get"},{"title":"List campaign payments","openapi":"GET /v1/fundraising/campaigns/{campaign_id}/payments","href":"/api-reference/fundraising/campaign-payments"},{"title":"List campaign recipients","openapi":"GET /v1/fundraising/campaigns/{campaign_id}/recipients","href":"/api-reference/fundraising/campaign-recipients"},{"title":"Start a Donation","openapi":"POST /v1/fundraising/campaigns/{campaign_id}/donations","href":"/api-reference/fundraising/donations"}]},{"group":"Gatherings","pages":[{"title":"List gatherings","openapi":"GET /v1/gatherings","href":"/api-reference/gatherings/gatherings"},{"title":"Get gathering","openapi":"GET /v1/gatherings/{gathering_id}","href":"/api-reference/gatherings/gatherings-get"},{"title":"List ticket classes","openapi":"GET /v1/gatherings/{gathering_id}/ticket-classes","href":"/api-reference/gatherings/ticket-classes"},{"title":"List attendees","openapi":"GET /v1/gatherings/{gathering_id}/attendees","href":"/api-reference/gatherings/attendees"},{"title":"List orders","openapi":"GET /v1/gatherings/{gathering_id}/orders","href":"/api-reference/gatherings/orders"}]},{"group":"Elections","pages":[{"title":"List elections","openapi":"GET /v1/elections","href":"/api-reference/elections/elections"},{"title":"Get election","openapi":"GET /v1/elections/{election_id}","href":"/api-reference/elections/elections-get"},{"title":"List questions with candidates","openapi":"GET /v1/elections/{election_id}/questions","href":"/api-reference/elections/questions"},{"title":"Get results (when visible)","openapi":"GET /v1/elections/{election_id}/results","href":"/api-reference/elections/results"}]},{"group":"Drive","pages":[{"title":"List Drive items (metadata)","openapi":"GET /v1/drive/items","href":"/api-reference/drive/items"},{"title":"Get Drive item (metadata)","openapi":"GET /v1/drive/items/{item_id}","href":"/api-reference/drive/items-get"},{"title":"Download a Drive File","openapi":"GET /v1/drive/items/{item_id}/download","href":"/api-reference/drive/download"},{"title":"Create a Drive Document","openapi":"POST /v1/drive/documents","href":"/api-reference/drive/create-document"},{"title":"Start a Drive Upload","openapi":"POST /v1/drive/files/upload-session","description":"Get a temporary URL for uploading a prepared file directly to storage.","href":"/api-reference/drive/upload-session"},{"title":"Commit a Drive Upload","openapi":"POST /v1/drive/files/commit","href":"/api-reference/drive/commit-upload"}]},{"group":"Applications","pages":[{"title":"List membership applications","openapi":"GET /v1/applications","description":"Membership applications and renewals in the chapter, newest first.","href":"/api-reference/applications/applications"},{"title":"Get application with answers","openapi":"GET /v1/applications/{application_id}","href":"/api-reference/applications/applications-get"},{"title":"List application form templates","openapi":"GET /v1/application-forms","href":"/api-reference/applications/forms"},{"title":"Get form template with definition","openapi":"GET /v1/application-forms/{template_id}","href":"/api-reference/applications/forms-get"},{"title":"List onboarding workflows","openapi":"GET /v1/workflows","href":"/api-reference/applications/workflows"}]},{"group":"Notifications \u0026 Support","pages":[{"title":"List notifications","openapi":"GET /v1/notifications","href":"/api-reference/notifications/notifications"},{"title":"List support requests","openapi":"GET /v1/support-requests","href":"/api-reference/notifications/support-requests"},{"title":"Get support request","openapi":"GET /v1/support-requests/{request_id}","href":"/api-reference/notifications/support-requests-get"}]},{"group":"Communication Campaigns","pages":[{"title":"List communication campaigns","openapi":"GET /v1/campaigns","href":"/api-reference/campaigns/campaigns"},{"title":"Get campaign","openapi":"GET /v1/campaigns/{campaign_id}","href":"/api-reference/campaigns/campaigns-get"}]}]}]},{"anchor":"Website","href":"https://transparencyhubnetwork.ai","icon":"globe"},{"anchor":"Contact Us","href":"mailto:support@transparencyhubnetwork.ai","icon":"envelope"}]},"basePath":"","title":"Commit a Drive Upload - Transparency Hub Network","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js","Markdown-CpxgzsKA.js","clsx-C5EfhVm0.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CJ9Oly2E.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Mk6P3qvh.js"]}