[{"data":1,"prerenderedAt":3284},["ShallowReactive",2],{"navigation_docs":3,"-reference-uploads-api":223,"-reference-uploads-api-surround":3279},[4,30,83,128,157,182],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Getting Started","\u002Fgetting-started","1.getting-started",[9,13,17,21,25],{"title":10,"path":11,"stem":12},"What is FlashDrive?","\u002Fgetting-started\u002Fwhat-is-flashdrive","1.getting-started\u002F01.what-is-flashdrive",{"title":14,"path":15,"stem":16},"Quickstart","\u002Fgetting-started\u002Fquickstart","1.getting-started\u002F02.quickstart",{"title":18,"path":19,"stem":20},"Key concepts","\u002Fgetting-started\u002Fkey-concepts","1.getting-started\u002F03.key-concepts",{"title":22,"path":23,"stem":24},"Find files","\u002Fgetting-started\u002Ffind-files","1.getting-started\u002F04.find-files",{"title":26,"path":27,"stem":28},"Common use cases","\u002Fgetting-started\u002Fuse-cases","1.getting-started\u002F05.use-cases",false,{"title":31,"path":32,"stem":33,"children":34,"page":29},"Platform Guide","\u002Fplatform","2.platform",[35,39,43,47,51,55,59,63,67,71,75,79],{"title":36,"path":37,"stem":38},"Organizations and workspaces","\u002Fplatform\u002Forganizations-and-workspaces","2.platform\u002F01.organizations-and-workspaces",{"title":40,"path":41,"stem":42},"Members, invitations, and roles","\u002Fplatform\u002Fmembers-and-roles","2.platform\u002F02.members-and-roles",{"title":44,"path":45,"stem":46},"API keys and permissions","\u002Fplatform\u002Fapi-keys","2.platform\u002F03.api-keys",{"title":48,"path":49,"stem":50},"Drives and the default drive","\u002Fplatform\u002Fdrives-and-defaults","2.platform\u002F04.drives-and-defaults",{"title":52,"path":53,"stem":54},"Folders and files","\u002Fplatform\u002Ffolders-and-documents","2.platform\u002F05.folders-and-documents",{"title":56,"path":57,"stem":58},"Upload files","\u002Fplatform\u002Fuploads-and-indexing","2.platform\u002F06.uploads-and-processing",{"title":60,"path":61,"stem":62},"Usage","\u002Fplatform\u002Fusage","2.platform\u002F07.usage",{"title":64,"path":65,"stem":66},"Billing and credits","\u002Fplatform\u002Fbilling","2.platform\u002F08.billing",{"title":68,"path":69,"stem":70},"Storage and limits","\u002Fplatform\u002Fstorage-and-upgrades","2.platform\u002F09.storage-and-upgrades",{"title":72,"path":73,"stem":74},"Account settings and security","\u002Fplatform\u002Faccount-and-security","2.platform\u002F10.account-and-security",{"title":76,"path":77,"stem":78},"Redeem a promo code","\u002Fplatform\u002Fpromo-codes","2.platform\u002F11.promo-codes",{"title":80,"path":81,"stem":82},"Build tools from files","\u002Fplatform\u002Ffile-workflows","2.platform\u002F12.file-workflows",{"title":84,"path":85,"stem":86,"children":87,"page":29},"SDK Guide","\u002Fsdk","4.sdk",[88,92,96,100,104,108,112,116,120,124],{"title":89,"path":90,"stem":91},"Python installation and configuration","\u002Fsdk\u002Finstallation","4.sdk\u002F01.installation",{"title":93,"path":94,"stem":95},"Upload your first files","\u002Fsdk\u002Fupload-files","4.sdk\u002F02.upload-files",{"title":97,"path":98,"stem":99},"Upload a large collection","\u002Fsdk\u002Fbulk-imports","4.sdk\u002F03.bulk-imports",{"title":101,"path":102,"stem":103},"Find, read and edit files","\u002Fsdk\u002Ffiles","4.sdk\u002F05.files",{"title":105,"path":106,"stem":107},"Work with folders","\u002Fsdk\u002Ffolders","4.sdk\u002F06.folders",{"title":109,"path":110,"stem":111},"Manage drives and defaults","\u002Fsdk\u002Fdrives-and-defaults","4.sdk\u002F07.drives-and-defaults",{"title":113,"path":114,"stem":115},"Replace files and attach metadata","\u002Fsdk\u002Freplace-and-label","4.sdk\u002F08.replace-and-label",{"title":117,"path":118,"stem":119},"Upload recovery and partial failures","\u002Fsdk\u002Fupload-recovery","4.sdk\u002F09.upload-recovery",{"title":121,"path":122,"stem":123},"Async workflows","\u002Fsdk\u002Fasync","4.sdk\u002F10.async",{"title":125,"path":126,"stem":127},"Errors, timeouts, and retries","\u002Fsdk\u002Ferrors-and-retries","4.sdk\u002F11.errors-and-retries",{"title":129,"path":130,"stem":131,"children":132,"page":29},"CLI Guide","\u002Fcli","5.cli",[133,137,141,145,149,153],{"title":134,"path":135,"stem":136},"Get Started","\u002Fcli\u002Fquickstart","5.cli\u002F01.quickstart",{"title":138,"path":139,"stem":140},"Profiles and Access","\u002Fcli\u002Fconfiguration","5.cli\u002F02.configuration",{"title":142,"path":143,"stem":144},"Uploads and Recovery","\u002Fcli\u002Fuploads-and-recovery","5.cli\u002F03.uploads-and-recovery",{"title":146,"path":147,"stem":148},"Mount and Sync","\u002Fcli\u002Fmount-and-sync","5.cli\u002F05.mount-and-sync",{"title":150,"path":151,"stem":152},"Sandbox Tokens","\u002Fcli\u002Fsandboxes","5.cli\u002F06.sandboxes",{"title":154,"path":155,"stem":156},"Command Reference","\u002Fcli\u002Fcommands","5.cli\u002F07.commands",{"title":158,"path":159,"stem":160,"children":161,"page":29},"MCP","\u002Fmcp","6.mcp",[162,166,170,174,178],{"title":163,"path":164,"stem":165},"Connect an AI client","\u002Fmcp\u002Fconnect","6.mcp\u002F01.connect",{"title":167,"path":168,"stem":169},"Choose an assistant’s permissions","\u002Fmcp\u002Fpermissions","6.mcp\u002F02.permissions",{"title":171,"path":172,"stem":173},"Upload and manage content","\u002Fmcp\u002Fmanage-content","6.mcp\u002F04.manage-content",{"title":175,"path":176,"stem":177},"Tool reference","\u002Fmcp\u002Ftools","6.mcp\u002F05.tools",{"title":179,"path":180,"stem":181},"Troubleshooting and revoking access","\u002Fmcp\u002Ftroubleshooting","6.mcp\u002F06.troubleshooting",{"title":183,"path":184,"stem":185,"children":186,"page":29},"Reference","\u002Freference","7.reference",[187,191,195,199,203,207,211,215,219],{"title":188,"path":189,"stem":190},"Authentication and API conventions","\u002Freference\u002Fauthentication","7.reference\u002F01.authentication",{"title":192,"path":193,"stem":194},"Organizations, workspaces, and access API","\u002Freference\u002Faccess-api","7.reference\u002F02.access-api",{"title":196,"path":197,"stem":198},"Drives, folders, and files API","\u002Freference\u002Fcontent-api","7.reference\u002F03.content-api",{"title":200,"path":201,"stem":202},"Uploads API","\u002Freference\u002Fuploads-api","7.reference\u002F04.uploads-api",{"title":204,"path":205,"stem":206},"Usage and billing API","\u002Freference\u002Fusage-and-billing-api","7.reference\u002F06.usage-and-billing-api",{"title":208,"path":209,"stem":210},"Errors and recovery","\u002Freference\u002Ferrors","7.reference\u002F07.errors",{"title":212,"path":213,"stem":214},"Limits and supported files","\u002Freference\u002Flimits","7.reference\u002F08.limits",{"title":216,"path":217,"stem":218},"Troubleshooting","\u002Freference\u002Ftroubleshooting","7.reference\u002F09.troubleshooting",{"title":220,"path":221,"stem":222},"Changelog","\u002Freference\u002Fchangelog","7.reference\u002F10.changelog",{"id":224,"title":200,"body":225,"description":3273,"extension":329,"links":3274,"meta":3275,"navigation":3276,"path":201,"seo":3277,"stem":202,"__hash__":3278},"docs\u002F7.reference\u002F04.uploads-api.md",{"type":226,"value":227,"toc":3221},"minimark",[228,258,277,282,289,376,387,391,423,426,737,748,843,848,851,920,928,931,1113,1120,1124,1131,1182,1210,1214,1225,1301,1334,1341,1345,1352,1358,1544,1572,1578,1594,1600,1636,1688,1731,1739,1746,1764,1770,1818,1825,1828,1954,1990,1996,2003,2120,2124,2127,2133,2136,2188,2203,2209,2233,2381,2421,2427,2432,2484,2504,2510,2551,2555,2558,2567,2575,2581,2609,2661,2665,2675,2680,2691,2772,2776,2779,2953,2992,2998,3022,3067,3073,3100,3106,3118,3124,3134,3139,3161,3165,3199,3217],[229,230,231,232,236,237,240,241,244,245,247,248,253,254,257],"p",{},"To upload files, use a workspace API key with permission ",[233,234,235],"code",{},"read_write",", a signed-in user with an ",[233,238,239],{},"editor"," or ",[233,242,243],{},"admin"," role, or a ",[233,246,235],{}," ",[249,250,252],"a",{"href":251},"\u002Freference\u002Fcontent-api#sandbox-tokens","sandbox token",". A key with permission ",[233,255,256],{},"search"," can read upload and operation status. Save the upload, drive and workspace IDs so you can check progress later.",[229,259,260,261,264,265,268,269,272,273,276],{},"The ",[249,262,263],{"href":94},"Python SDK"," and the ",[249,266,267],{"href":143},"CLI"," handle hashing, transfers, bulk requests and polling for you. See ",[249,270,271],{"href":189},"authentication"," for request headers, and ",[249,274,275],{"href":209},"errors and recovery"," for failed requests.",[278,279,281],"h2",{"id":280},"file-formats","File formats",[229,283,284,285,288],{},"You can upload any type of file. Choose its ",[233,286,287],{},"format",":",[290,291,292,309],"table",{},[293,294,295],"thead",{},[296,297,298,303,306],"tr",{},[299,300,301],"th",{},[233,302,287],{},[299,304,305],{},"Use for",[299,307,308],{},"What happens",[310,311,312,345],"tbody",{},[296,313,314,330,333],{},[315,316,317,320,321,320,324,320,327],"td",{},[233,318,319],{},"pdf",", ",[233,322,323],{},"docx",[233,325,326],{},"txt",[233,328,329],{},"md",[315,331,332],{},"PDF, Word, plain text and Markdown files",[315,334,335,336,340,341,344],{},"Stored, and their text is read so you can read it by line or byte with the ",[249,337,339],{"href":338},"\u002Freference\u002Fcontent-api#read-text-by-lines-or-bytes","text route",". The bytes must match the format. A PDF or DOCX without a text layer is kept, with ",[233,342,343],{},"text_status: none",". TXT and Markdown must be UTF-8 (a byte-order mark is fine).",[296,346,347,352,355],{},[315,348,349],{},[233,350,351],{},"file",[315,353,354],{},"Anything else: photos, video, audio, archives, models, code, data",[315,356,357,358,362,363,367,368,371,372,375],{},"Stored as it is and found by path, name and metadata. Its bytes can be read, streamed, ",[249,359,361],{"href":360},"\u002Freference\u002Fcontent-api#write-bytes-at-an-offset","written in place"," and, for UTF-8 text, ",[249,364,366],{"href":365},"\u002Freference\u002Fcontent-api#edit-text-in-place","edited",". The service adds ",[233,369,370],{},"media.*"," facts it reads from media files, such as ",[233,373,374],{},"media.kind",".",[229,377,378,379,382,383,386],{},"Empty (0-byte) files are stored like any other; their ",[233,380,381],{},"sha256"," is the digest of no bytes. See ",[249,384,385],{"href":213},"limits"," for sizes.",[278,388,390],{"id":389},"upload-one-file","Upload one file",[392,393,394,405,411,417],"ol",{},[395,396,397,401,402,375],"li",{},[398,399,400],"strong",{},"Prepare"," the upload with the file's name, format, size, SHA-256 digest and ",[233,403,404],{},"external_id",[395,406,407,410],{},[398,408,409],{},"Transfer"," the bytes the way the transfer response says.",[395,412,413,416],{},[398,414,415],{},"Complete"," the upload. The file is saved and processing starts.",[395,418,419,422],{},[398,420,421],{},"Follow"," the upload and its operation until processing finishes.",[229,424,425],{},"On macOS or Linux, compute the size and digest and prepare the upload:",[427,428,433],"pre",{"className":429,"code":430,"language":431,"meta":432,"style":432},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","printf '%s\\n' 'Refunds are available within 30 days of purchase.' > handbook.txt\nFILE_SIZE=$(wc -c \u003C handbook.txt | tr -d ' ')\nFILE_SHA256=$(shasum -a 256 handbook.txt | cut -d ' ' -f 1)\n\ncurl -X POST \"https:\u002F\u002Fapi.flashdrive.space\u002Fv1\u002Fdrives\u002F$DRIVE_ID\u002Fuploads\" \\\n  -H \"Authorization: Bearer $FLASHDRIVE_API_KEY\" \\\n  -H \"Flashdrive-Client: my-app\u002F1.0.0\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Idempotency-Key: handbook-prepare-1\" \\\n  -d \"{\\\"external_id\\\":\\\"handbook.txt\\\",\\\"filename\\\":\\\"handbook.txt\\\",\\\"format\\\":\\\"txt\\\",\\\"size_bytes\\\":$FILE_SIZE,\\\"sha256\\\":\\\"$FILE_SHA256\\\"}\"\n","bash","",[233,434,435,468,507,546,553,583,601,615,629,643],{"__ignoreMap":432},[436,437,440,444,448,452,455,457,460,462,465],"span",{"class":438,"line":439},"line",1,[436,441,443],{"class":442},"s2Zo4","printf",[436,445,447],{"class":446},"sMK4o"," '",[436,449,451],{"class":450},"sfazB","%s\\n",[436,453,454],{"class":446},"'",[436,456,447],{"class":446},[436,458,459],{"class":450},"Refunds are available within 30 days of purchase.",[436,461,454],{"class":446},[436,463,464],{"class":446}," >",[436,466,467],{"class":450}," handbook.txt\n",[436,469,471,475,478,482,485,488,491,494,497,500,502,504],{"class":438,"line":470},2,[436,472,474],{"class":473},"sTEyZ","FILE_SIZE",[436,476,477],{"class":446},"=$(",[436,479,481],{"class":480},"sBMFI","wc",[436,483,484],{"class":450}," -c",[436,486,487],{"class":446}," \u003C",[436,489,490],{"class":450}," handbook.txt",[436,492,493],{"class":446}," |",[436,495,496],{"class":480}," tr",[436,498,499],{"class":450}," -d",[436,501,447],{"class":446},[436,503,447],{"class":446},[436,505,506],{"class":446},")\n",[436,508,510,513,515,518,521,525,527,529,532,534,536,538,541,544],{"class":438,"line":509},3,[436,511,512],{"class":473},"FILE_SHA256",[436,514,477],{"class":446},[436,516,517],{"class":480},"shasum",[436,519,520],{"class":450}," -a",[436,522,524],{"class":523},"sbssI"," 256",[436,526,490],{"class":450},[436,528,493],{"class":446},[436,530,531],{"class":480}," cut",[436,533,499],{"class":450},[436,535,447],{"class":446},[436,537,447],{"class":446},[436,539,540],{"class":450}," -f",[436,542,543],{"class":523}," 1",[436,545,506],{"class":446},[436,547,549],{"class":438,"line":548},4,[436,550,552],{"emptyLinePlaceholder":551},true,"\n",[436,554,556,559,562,565,568,571,574,577,580],{"class":438,"line":555},5,[436,557,558],{"class":480},"curl",[436,560,561],{"class":450}," -X",[436,563,564],{"class":450}," POST",[436,566,567],{"class":446}," \"",[436,569,570],{"class":450},"https:\u002F\u002Fapi.flashdrive.space\u002Fv1\u002Fdrives\u002F",[436,572,573],{"class":473},"$DRIVE_ID",[436,575,576],{"class":450},"\u002Fuploads",[436,578,579],{"class":446},"\"",[436,581,582],{"class":473}," \\\n",[436,584,586,589,591,594,597,599],{"class":438,"line":585},6,[436,587,588],{"class":450},"  -H",[436,590,567],{"class":446},[436,592,593],{"class":450},"Authorization: Bearer ",[436,595,596],{"class":473},"$FLASHDRIVE_API_KEY",[436,598,579],{"class":446},[436,600,582],{"class":473},[436,602,604,606,608,611,613],{"class":438,"line":603},7,[436,605,588],{"class":450},[436,607,567],{"class":446},[436,609,610],{"class":450},"Flashdrive-Client: my-app\u002F1.0.0",[436,612,579],{"class":446},[436,614,582],{"class":473},[436,616,618,620,622,625,627],{"class":438,"line":617},8,[436,619,588],{"class":450},[436,621,567],{"class":446},[436,623,624],{"class":450},"Content-Type: application\u002Fjson",[436,626,579],{"class":446},[436,628,582],{"class":473},[436,630,632,634,636,639,641],{"class":438,"line":631},9,[436,633,588],{"class":450},[436,635,567],{"class":446},[436,637,638],{"class":450},"Idempotency-Key: handbook-prepare-1",[436,640,579],{"class":446},[436,642,582],{"class":473},[436,644,646,649,651,654,657,659,661,663,665,668,670,673,675,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,711,713,715,718,720,722,724,726,728,731,734],{"class":438,"line":645},10,[436,647,648],{"class":450},"  -d",[436,650,567],{"class":446},[436,652,653],{"class":450},"{",[436,655,656],{"class":473},"\\\"",[436,658,404],{"class":450},[436,660,656],{"class":473},[436,662,288],{"class":450},[436,664,656],{"class":473},[436,666,667],{"class":450},"handbook.txt",[436,669,656],{"class":473},[436,671,672],{"class":450},",",[436,674,656],{"class":473},[436,676,677],{"class":450},"filename",[436,679,656],{"class":473},[436,681,288],{"class":450},[436,683,656],{"class":473},[436,685,667],{"class":450},[436,687,656],{"class":473},[436,689,672],{"class":450},[436,691,656],{"class":473},[436,693,287],{"class":450},[436,695,656],{"class":473},[436,697,288],{"class":450},[436,699,656],{"class":473},[436,701,326],{"class":450},[436,703,656],{"class":473},[436,705,672],{"class":450},[436,707,656],{"class":473},[436,709,710],{"class":450},"size_bytes",[436,712,656],{"class":473},[436,714,288],{"class":450},[436,716,717],{"class":473},"$FILE_SIZE",[436,719,672],{"class":450},[436,721,656],{"class":473},[436,723,381],{"class":450},[436,725,656],{"class":473},[436,727,288],{"class":450},[436,729,730],{"class":473},"\\\"$FILE_SHA256\\\"",[436,732,733],{"class":450},"}",[436,735,736],{"class":446},"\"\n",[229,738,739,740,743,744,747],{},"Set ",[233,741,742],{},"UPLOAD_ID"," to the response's ",[233,745,746],{},"id",", then ask where to send the bytes:",[427,749,751],{"className":429,"code":750,"language":431,"meta":432,"style":432},"curl -X POST \"https:\u002F\u002Fapi.flashdrive.space\u002Fv1\u002Fdrives\u002F$DRIVE_ID\u002Fuploads\u002F$UPLOAD_ID\u002Ftransfer\" \\\n  -H \"Authorization: Bearer $FLASHDRIVE_API_KEY\" \\\n  -H \"Flashdrive-Client: my-app\u002F1.0.0\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Idempotency-Key: handbook-transfer-1\" \\\n  -d '{}'\n",[233,752,753,780,794,806,818,831],{"__ignoreMap":432},[436,754,755,757,759,761,763,765,767,770,773,776,778],{"class":438,"line":439},[436,756,558],{"class":480},[436,758,561],{"class":450},[436,760,564],{"class":450},[436,762,567],{"class":446},[436,764,570],{"class":450},[436,766,573],{"class":473},[436,768,769],{"class":450},"\u002Fuploads\u002F",[436,771,772],{"class":473},"$UPLOAD_ID",[436,774,775],{"class":450},"\u002Ftransfer",[436,777,579],{"class":446},[436,779,582],{"class":473},[436,781,782,784,786,788,790,792],{"class":438,"line":470},[436,783,588],{"class":450},[436,785,567],{"class":446},[436,787,593],{"class":450},[436,789,596],{"class":473},[436,791,579],{"class":446},[436,793,582],{"class":473},[436,795,796,798,800,802,804],{"class":438,"line":509},[436,797,588],{"class":450},[436,799,567],{"class":446},[436,801,610],{"class":450},[436,803,579],{"class":446},[436,805,582],{"class":473},[436,807,808,810,812,814,816],{"class":438,"line":548},[436,809,588],{"class":450},[436,811,567],{"class":446},[436,813,624],{"class":450},[436,815,579],{"class":446},[436,817,582],{"class":473},[436,819,820,822,824,827,829],{"class":438,"line":555},[436,821,588],{"class":450},[436,823,567],{"class":446},[436,825,826],{"class":450},"Idempotency-Key: handbook-transfer-1",[436,828,579],{"class":446},[436,830,582],{"class":473},[436,832,833,835,837,840],{"class":438,"line":585},[436,834,648],{"class":450},[436,836,447],{"class":446},[436,838,839],{"class":450},"{}",[436,841,842],{"class":446},"'\n",[844,845,847],"h3",{"id":846},"follow-the-transfer-instructions","Follow the transfer instructions",[229,849,850],{},"The transfer response chooses how to send the bytes:",[290,852,853,863],{},[293,854,855],{},[296,856,857,860],{},[299,858,859],{},"Response",[299,861,862],{},"Next step",[310,864,865,888],{},[296,866,867,872],{},[315,868,869],{},[233,870,871],{},"{\"transport\":\"proxy\"}",[315,873,874,877,878,881,882,885,886,375],{},[233,875,876],{},"PUT"," the original bytes to the upload's ",[233,879,880],{},"\u002Fcontent"," route, with your credential, ",[233,883,884],{},"Content-Type: application\u002Foctet-stream"," and an idempotency key. Then complete with ",[233,887,839],{},[296,889,890,895],{},[315,891,892],{},[233,893,894],{},"{\"transport\":\"direct\",\"url\":\"…\",\"headers\":{…},\"expires_in\":600}",[315,896,897,899,900,903,904,907,908,911,912,915,916,919],{},[233,898,876],{}," the original bytes to the returned ",[233,901,902],{},"url"," with exactly the returned ",[233,905,906],{},"headers"," and the file's ",[233,909,910],{},"Content-Length",". The URL itself authorizes this transfer; do not send your credential to it. Then complete with ",[233,913,914],{},"{\"transport\":\"direct\"}",". ",[233,917,918],{},"expires_in"," is at most 600 seconds; if it passes, ask for new transfer instructions.",[229,921,922,923,927],{},"A large file is sent ",[249,924,926],{"href":925},"#post-v2drivesdrive_iduploadsupload_idmultipart","in parts"," instead.",[229,929,930],{},"A proxy transfer followed by completion:",[427,932,934],{"className":429,"code":933,"language":431,"meta":432,"style":432},"curl -X PUT \"https:\u002F\u002Fapi.flashdrive.space\u002Fv1\u002Fdrives\u002F$DRIVE_ID\u002Fuploads\u002F$UPLOAD_ID\u002Fcontent\" \\\n  -H \"Authorization: Bearer $FLASHDRIVE_API_KEY\" \\\n  -H \"Flashdrive-Client: my-app\u002F1.0.0\" \\\n  -H \"Content-Type: application\u002Foctet-stream\" \\\n  -H \"Idempotency-Key: handbook-content-1\" \\\n  --data-binary @handbook.txt\n\ncurl -X POST \"https:\u002F\u002Fapi.flashdrive.space\u002Fv1\u002Fdrives\u002F$DRIVE_ID\u002Fuploads\u002F$UPLOAD_ID\u002Fcomplete\" \\\n  -H \"Authorization: Bearer $FLASHDRIVE_API_KEY\" \\\n  -H \"Flashdrive-Client: my-app\u002F1.0.0\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Idempotency-Key: handbook-complete-1\" \\\n  -d '{}'\n",[233,935,936,961,975,987,999,1012,1020,1024,1049,1063,1075,1088,1102],{"__ignoreMap":432},[436,937,938,940,942,945,947,949,951,953,955,957,959],{"class":438,"line":439},[436,939,558],{"class":480},[436,941,561],{"class":450},[436,943,944],{"class":450}," PUT",[436,946,567],{"class":446},[436,948,570],{"class":450},[436,950,573],{"class":473},[436,952,769],{"class":450},[436,954,772],{"class":473},[436,956,880],{"class":450},[436,958,579],{"class":446},[436,960,582],{"class":473},[436,962,963,965,967,969,971,973],{"class":438,"line":470},[436,964,588],{"class":450},[436,966,567],{"class":446},[436,968,593],{"class":450},[436,970,596],{"class":473},[436,972,579],{"class":446},[436,974,582],{"class":473},[436,976,977,979,981,983,985],{"class":438,"line":509},[436,978,588],{"class":450},[436,980,567],{"class":446},[436,982,610],{"class":450},[436,984,579],{"class":446},[436,986,582],{"class":473},[436,988,989,991,993,995,997],{"class":438,"line":548},[436,990,588],{"class":450},[436,992,567],{"class":446},[436,994,884],{"class":450},[436,996,579],{"class":446},[436,998,582],{"class":473},[436,1000,1001,1003,1005,1008,1010],{"class":438,"line":555},[436,1002,588],{"class":450},[436,1004,567],{"class":446},[436,1006,1007],{"class":450},"Idempotency-Key: handbook-content-1",[436,1009,579],{"class":446},[436,1011,582],{"class":473},[436,1013,1014,1017],{"class":438,"line":585},[436,1015,1016],{"class":450},"  --data-binary",[436,1018,1019],{"class":450}," @handbook.txt\n",[436,1021,1022],{"class":438,"line":603},[436,1023,552],{"emptyLinePlaceholder":551},[436,1025,1026,1028,1030,1032,1034,1036,1038,1040,1042,1045,1047],{"class":438,"line":617},[436,1027,558],{"class":480},[436,1029,561],{"class":450},[436,1031,564],{"class":450},[436,1033,567],{"class":446},[436,1035,570],{"class":450},[436,1037,573],{"class":473},[436,1039,769],{"class":450},[436,1041,772],{"class":473},[436,1043,1044],{"class":450},"\u002Fcomplete",[436,1046,579],{"class":446},[436,1048,582],{"class":473},[436,1050,1051,1053,1055,1057,1059,1061],{"class":438,"line":631},[436,1052,588],{"class":450},[436,1054,567],{"class":446},[436,1056,593],{"class":450},[436,1058,596],{"class":473},[436,1060,579],{"class":446},[436,1062,582],{"class":473},[436,1064,1065,1067,1069,1071,1073],{"class":438,"line":645},[436,1066,588],{"class":450},[436,1068,567],{"class":446},[436,1070,610],{"class":450},[436,1072,579],{"class":446},[436,1074,582],{"class":473},[436,1076,1078,1080,1082,1084,1086],{"class":438,"line":1077},11,[436,1079,588],{"class":450},[436,1081,567],{"class":446},[436,1083,624],{"class":450},[436,1085,579],{"class":446},[436,1087,582],{"class":473},[436,1089,1091,1093,1095,1098,1100],{"class":438,"line":1090},12,[436,1092,588],{"class":450},[436,1094,567],{"class":446},[436,1096,1097],{"class":450},"Idempotency-Key: handbook-complete-1",[436,1099,579],{"class":446},[436,1101,582],{"class":473},[436,1103,1105,1107,1109,1111],{"class":438,"line":1104},13,[436,1106,648],{"class":450},[436,1108,447],{"class":446},[436,1110,839],{"class":450},[436,1112,842],{"class":446},[229,1114,1115,1116,1119],{},"The declared size and SHA-256 must describe these exact bytes; otherwise the transfer returns 400 ",[233,1117,1118],{},"checksum_mismatch",". Keep the same body and key when you retry a step.",[844,1121,1123],{"id":1122},"follow-processing","Follow processing",[229,1125,1126,1127,1130],{},"After completion, read the upload until it has an ",[233,1128,1129],{},"operation_id"," or reports a failure, then follow the operation:",[427,1132,1134],{"className":429,"code":1133,"language":431,"meta":432,"style":432},"curl \"https:\u002F\u002Fapi.flashdrive.space\u002Fv1\u002Fworkspaces\u002F$WORKSPACE_ID\u002Foperations\u002F$OPERATION_ID\" \\\n  -H \"Authorization: Bearer $FLASHDRIVE_API_KEY\" \\\n  -H \"Flashdrive-Client: my-app\u002F1.0.0\"\n",[233,1135,1136,1158,1172],{"__ignoreMap":432},[436,1137,1138,1140,1142,1145,1148,1151,1154,1156],{"class":438,"line":439},[436,1139,558],{"class":480},[436,1141,567],{"class":446},[436,1143,1144],{"class":450},"https:\u002F\u002Fapi.flashdrive.space\u002Fv1\u002Fworkspaces\u002F",[436,1146,1147],{"class":473},"$WORKSPACE_ID",[436,1149,1150],{"class":450},"\u002Foperations\u002F",[436,1152,1153],{"class":473},"$OPERATION_ID",[436,1155,579],{"class":446},[436,1157,582],{"class":473},[436,1159,1160,1162,1164,1166,1168,1170],{"class":438,"line":470},[436,1161,588],{"class":450},[436,1163,567],{"class":446},[436,1165,593],{"class":450},[436,1167,596],{"class":473},[436,1169,579],{"class":446},[436,1171,582],{"class":473},[436,1173,1174,1176,1178,1180],{"class":438,"line":509},[436,1175,588],{"class":450},[436,1177,567],{"class":446},[436,1179,610],{"class":450},[436,1181,736],{"class":446},[229,1183,1184,1187,1188,1191,1192,1195,1196,1199,1200,1187,1203,1206,1207,375],{},[233,1185,1186],{},"queued"," and ",[233,1189,1190],{},"running"," mean work continues; ",[233,1193,1194],{},"searchable"," means processing finished; ",[233,1197,1198],{},"failed"," means read ",[233,1201,1202],{},"error_code",[233,1204,1205],{},"error_message",". Wait between checks and stop at a time limit you choose. Processing continues after your client disconnects. Keep the upload and operation IDs for ",[249,1208,1209],{"href":118},"recovery",[278,1211,1213],{"id":1212},"replace-a-specific-revision","Replace a specific revision",[229,1215,1216,1217,1221,1222,288],{},"To replace an uploaded file, including after merging a ",[249,1218,1220],{"href":1219},"\u002Freference\u002Fcontent-api#conflict-copies","conflict copy",", prepare a single upload for the new bytes and add three fields from the file you read with ",[233,1223,1224],{},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments\u002F{document_id}",[427,1226,1230],{"className":1227,"code":1228,"language":1229,"meta":432,"style":432},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"document_id\": \"DOCUMENT_UUID\",\n  \"external_id\": \"handbook.txt\",\n  \"expected_revision\": \"3\"\n}\n","json",[233,1231,1232,1237,1260,1278,1296],{"__ignoreMap":432},[436,1233,1234],{"class":438,"line":439},[436,1235,1236],{"class":446},"{\n",[436,1238,1239,1242,1246,1248,1250,1252,1255,1257],{"class":438,"line":470},[436,1240,1241],{"class":446},"  \"",[436,1243,1245],{"class":1244},"spNyl","document_id",[436,1247,579],{"class":446},[436,1249,288],{"class":446},[436,1251,567],{"class":446},[436,1253,1254],{"class":450},"DOCUMENT_UUID",[436,1256,579],{"class":446},[436,1258,1259],{"class":446},",\n",[436,1261,1262,1264,1266,1268,1270,1272,1274,1276],{"class":438,"line":509},[436,1263,1241],{"class":446},[436,1265,404],{"class":1244},[436,1267,579],{"class":446},[436,1269,288],{"class":446},[436,1271,567],{"class":446},[436,1273,667],{"class":450},[436,1275,579],{"class":446},[436,1277,1259],{"class":446},[436,1279,1280,1282,1285,1287,1289,1291,1294],{"class":438,"line":548},[436,1281,1241],{"class":446},[436,1283,1284],{"class":1244},"expected_revision",[436,1286,579],{"class":446},[436,1288,288],{"class":446},[436,1290,567],{"class":446},[436,1292,1293],{"class":450},"3",[436,1295,736],{"class":446},[436,1297,1298],{"class":438,"line":555},[436,1299,1300],{"class":446},"}\n",[229,1302,1303,1187,1305,1307,1308,1310,1311,1314,1315,1318,1319,1321,1322,1324,1325,1327,1328,1330,1331,375],{},[233,1304,1245],{},[233,1306,1284],{}," go together, and ",[233,1309,404],{}," must be the file's own. The revision is the file's ",[233,1312,1313],{},"latest_revision",": a positive decimal string. The service checks it when the upload is prepared and again when it is accepted; if the file changed meanwhile, the upload fails with 412 ",[233,1316,1317],{},"stale_version"," and nothing is overwritten. Read the file again before you decide what to do. An ",[233,1320,404],{}," that is not the file's own also returns ",[233,1323,1317],{},", and ",[233,1326,1245],{}," without ",[233,1329,1284],{}," returns 428 ",[233,1332,1333],{},"precondition_required",[229,1335,1336,1337,1340],{},"Include every metadata label and the folder you want to keep: a replacement does not merge the old labels. Bulk reservations do not take these fields; replace files one at a time. Do not replace an uploaded file with ",[233,1338,1339],{},"PUT ...\u002Fdocuments\u002F{document_id}",", which is for text records.",[278,1342,1344],{"id":1343},"upload-routes","Upload routes",[844,1346,1348,1349],{"id":1347},"post-v1drivesdrive_iduploads","POST ",[233,1350,1351],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads",[229,1353,1354,1355,375],{},"Prepare an upload and reserve storage for the file. Requires ",[233,1356,1357],{},"Idempotency-Key",[290,1359,1360,1376],{},[293,1361,1362],{},[296,1363,1364,1367,1370,1373],{},[299,1365,1366],{},"Field",[299,1368,1369],{},"Type",[299,1371,1372],{},"Presence",[299,1374,1375],{},"Guidance",[310,1377,1378,1401,1424,1451,1465,1478,1494,1513,1529],{},[296,1379,1380,1384,1387,1390],{},[315,1381,1382],{},[233,1383,404],{},[315,1385,1386],{},"string",[315,1388,1389],{},"Required",[315,1391,1392,1393,1395,1396,1187,1398,1400],{},"Your stable key for the file within the drive, at most 1,024 UTF-8 bytes. It must be new to the drive: one the drive already has returns 428 ",[233,1394,1333],{},". To replace that file, send ",[233,1397,1245],{},[233,1399,1284],{}," as well.",[296,1402,1403,1407,1409,1411],{},[315,1404,1405],{},[233,1406,677],{},[315,1408,1386],{},[315,1410,1389],{},[315,1412,1413,1414,320,1417,1420,1421,375],{},"1 to 255 UTF-8 bytes. Path separators (",[233,1415,1416],{},"\u002F",[233,1418,1419],{},"\\","), line breaks and other control characters return 400 ",[233,1422,1423],{},"invalid_filename",[296,1425,1426,1430,1442,1444],{},[315,1427,1428],{},[233,1429,287],{},[315,1431,1432,320,1434,320,1436,320,1438,320,1440],{},[233,1433,319],{},[233,1435,323],{},[233,1437,326],{},[233,1439,329],{},[233,1441,351],{},[315,1443,1389],{},[315,1445,1446,1447,375],{},"See ",[249,1448,1450],{"href":1449},"#file-formats","file formats",[296,1452,1453,1457,1460,1462],{},[315,1454,1455],{},[233,1456,710],{},[315,1458,1459],{},"integer",[315,1461,1389],{},[315,1463,1464],{},"0 to 10,000,000,000.",[296,1466,1467,1471,1473,1475],{},[315,1468,1469],{},[233,1470,381],{},[315,1472,1386],{},[315,1474,1389],{},[315,1476,1477],{},"SHA-256 of the original bytes: 64 lowercase hexadecimal characters.",[296,1479,1480,1485,1488,1491],{},[315,1481,1482],{},[233,1483,1484],{},"folder_id",[315,1486,1487],{},"string or null",[315,1489,1490],{},"Optional",[315,1492,1493],{},"The destination folder.",[296,1495,1496,1501,1504,1506],{},[315,1497,1498],{},[233,1499,1500],{},"metadata",[315,1502,1503],{},"object",[315,1505,1490],{},[315,1507,1508,1509,375],{},"Labels. See ",[249,1510,1512],{"href":1511},"\u002Freference\u002Flimits#files-and-folders","metadata limits",[296,1514,1515,1519,1521,1523],{},[315,1516,1517],{},[233,1518,1245],{},[315,1520,1386],{},[315,1522,1490],{},[315,1524,1525,1526,1528],{},"With ",[233,1527,1284],{},", replace exactly this revision.",[296,1530,1531,1535,1537,1539],{},[315,1532,1533],{},[233,1534,1284],{},[315,1536,1386],{},[315,1538,1490],{},[315,1540,1541,1542,375],{},"The file's current ",[233,1543,1313],{},[229,1545,1546,1549,1550,320,1552,1187,1555,1557,1558,240,1561,1564,1565,1568,1569,375],{},[398,1547,1548],{},"201",": ",[233,1551,746],{},[233,1553,1554],{},"state",[233,1556,918],{}," (86,400: send and complete the file within 24 hours). After that, transfer and completion return 409 ",[233,1559,1560],{},"upload_expired",[233,1562,1563],{},"upload_sealed","; prepare a new upload. A drive with too many transfers in progress returns 429 ",[233,1566,1567],{},"upload_limit"," with ",[233,1570,1571],{},"Retry-After",[844,1573,1348,1575],{"id":1574},"post-v1drivesdrive_iduploadsupload_idtransfer",[233,1576,1577],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002F{upload_id}\u002Ftransfer",[229,1579,1580,1581,1583,1584,915,1586,1589,1590,375],{},"Get or renew the transfer destination. Requires ",[233,1582,1357],{},"; send ",[233,1585,839],{},[398,1587,1588],{},"200",": one of the objects in ",[249,1591,1593],{"href":1592},"#follow-the-transfer-instructions","transfer instructions",[844,1595,1348,1597],{"id":1596},"post-v1drivesdrive_iduploadsupload_idmultipart",[233,1598,1599],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002F{upload_id}\u002Fmultipart",[229,1601,1602,1603,1605,1606,1609,1610,320,1613,320,1616,240,1619,1622,1623,1625,1626,1628,1629,1187,1632,1635],{},"Send a large file in parts. Requires ",[233,1604,1357],{},". Body: ",[233,1607,1608],{},"action",", one of ",[233,1611,1612],{},"begin",[233,1614,1615],{},"parts",[233,1617,1618],{},"complete",[233,1620,1621],{},"verify",", and for ",[233,1624,1615],{}," a ",[233,1627,1615],{}," array of 1 to 16 entries, each with ",[233,1630,1631],{},"part_number",[233,1633,1634],{},"md5"," (the part's MD5, base64).",[229,1637,1638,1549,1640,1643,1644,1647,1648,1643,1650,320,1653,240,1656,1647,1659,320,1662,320,1665,1187,1668,1671,1672,1674,1675,1677,1678,320,1680,320,1682,320,1684,1187,1686,375],{},[398,1639,1588],{},[233,1641,1642],{},"transport"," (",[233,1645,1646],{},"multipart","), ",[233,1649,1554],{},[233,1651,1652],{},"uploading",[233,1654,1655],{},"verifying",[233,1657,1658],{},"verified",[233,1660,1661],{},"part_size",[233,1663,1664],{},"part_count",[233,1666,1667],{},"verified_bytes",[233,1669,1670],{},"completed"," (the parts stored so far). After ",[233,1673,1615],{},", the answer also has ",[233,1676,1615],{},": for each part asked for, its ",[233,1679,1631],{},[233,1681,710],{},[233,1683,902],{},[233,1685,906],{},[233,1687,918],{},[392,1689,1690,1695,1709,1722],{},[395,1691,1692,1694],{},[233,1693,1612],{}," returns the part size and count, and which parts are already stored.",[395,1696,1697,1699,1700,1702,1703,1705,1706,1708],{},[233,1698,1615],{}," returns a link for each part you name. ",[233,1701,876],{}," the part's bytes to its ",[233,1704,902],{}," with exactly its ",[233,1707,906],{},". The link itself authorizes the part; do not send your credential to it.",[395,1710,1711,1713,1714,1716,1717,1719,1720,375],{},[233,1712,1618],{}," when every part is stored, then ",[233,1715,1621],{}," until ",[233,1718,1554],{}," is ",[233,1721,1658],{},[395,1723,1724,1725,1728,1729,375],{},"Finish with ",[249,1726,1618],{"href":1727},"#post-v2drivesdrive_iduploadsupload_idcomplete",", sending ",[233,1730,914],{},[229,1732,1733,1735,1736,1738],{},[233,1734,918],{}," is how many seconds a part's link stays valid: at most 3,600, and never longer than the upload itself has left. An older drive issues links of at most 600 seconds. When a link has run out, ask for the part again with ",[233,1737,1615],{},"; the parts already stored are kept.",[844,1740,1742,1743],{"id":1741},"put-v1drivesdrive_iduploadsupload_idcontent","PUT ",[233,1744,1745],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002F{upload_id}\u002Fcontent",[229,1747,1748,1749,1752,1753,915,1755,1549,1757,320,1759,1187,1761,375],{},"Send the original bytes through the API (the ",[233,1750,1751],{},"proxy"," transport). Requires ",[233,1754,1357],{},[398,1756,1588],{},[233,1758,746],{},[233,1760,1554],{},[233,1762,1763],{},"uploaded: true",[844,1765,1348,1767],{"id":1766},"post-v1drivesdrive_iduploadsupload_idcomplete",[233,1768,1769],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002F{upload_id}\u002Fcomplete",[229,1771,1772,1773,1605,1775,1777,1778,1780,1781,1549,1784,320,1786,1788,1789,320,1791,320,1793,320,1796,320,1799,1187,1801,1803,1804,1807,1808,1810,1811,1813,1814,1817],{},"Verify the bytes, save the file and start processing. Requires ",[233,1774,1357],{},[233,1776,914],{}," after a direct transfer, or ",[233,1779,839],{}," after a proxy transfer. ",[398,1782,1783],{},"202",[233,1785,746],{},[233,1787,1554],{},", and when known ",[233,1790,1245],{},[233,1792,1129],{},[233,1794,1795],{},"committed_revision",[233,1797,1798],{},"warnings",[233,1800,1202],{},[233,1802,1205],{},". Completing an upload whose bytes never arrived returns 409 ",[233,1805,1806],{},"upload_incomplete",". The preconditions are checked again here: a replacement whose file changed since it was prepared returns 412 ",[233,1809,1317],{},", and a new file whose ",[233,1812,404],{}," was taken meanwhile returns 409 ",[233,1815,1816],{},"already_exists",". Repeating completion with the same key recovers a lost answer.",[844,1819,1821,1822],{"id":1820},"get-v1drivesdrive_iduploadsupload_id","GET ",[233,1823,1824],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002F{upload_id}",[229,1826,1827],{},"Read an upload.",[290,1829,1830,1841],{},[293,1831,1832],{},[296,1833,1834,1836,1838],{},[299,1835,1366],{},[299,1837,1369],{},[299,1839,1840],{},"Meaning",[310,1842,1843,1854,1877,1888,1899,1910,1929,1942],{},[296,1844,1845,1849,1851],{},[315,1846,1847],{},[233,1848,746],{},[315,1850,1386],{},[315,1852,1853],{},"Upload UUID.",[296,1855,1856,1860,1862],{},[315,1857,1858],{},[233,1859,1554],{},[315,1861,1386],{},[315,1863,1864,1865,320,1868,320,1870,320,1872,240,1875,375],{},"For example ",[233,1866,1867],{},"awaiting_content",[233,1869,1186],{},[233,1871,1190],{},[233,1873,1874],{},"accepted",[233,1876,1198],{},[296,1878,1879,1883,1885],{},[315,1880,1881],{},[233,1882,1245],{},[315,1884,1487],{},[315,1886,1887],{},"The file, once known.",[296,1889,1890,1894,1896],{},[315,1891,1892],{},[233,1893,1129],{},[315,1895,1487],{},[315,1897,1898],{},"The processing operation, once known.",[296,1900,1901,1905,1907],{},[315,1902,1903],{},[233,1904,1795],{},[315,1906,1487],{},[315,1908,1909],{},"The file revision this upload made, once known.",[296,1911,1912,1916,1919],{},[315,1913,1914],{},[233,1915,1798],{},[315,1917,1918],{},"array",[315,1920,1921,1922,1924,1925,1928],{},"Each has a ",[233,1923,233],{},"; PDF page warnings also have a ",[233,1926,1927],{},"page"," number, from 1.",[296,1930,1931,1937,1939],{},[315,1932,1933,320,1935],{},[233,1934,1202],{},[233,1936,1205],{},[315,1938,1487],{},[315,1940,1941],{},"Why the upload failed.",[296,1943,1944,1949,1951],{},[315,1945,1946],{},[233,1947,1948],{},"timings",[315,1950,1503],{},[315,1952,1953],{},"See below.",[229,1955,1956,1958,1959,320,1962,1965,1966,1969,1970,320,1973,320,1976,320,1979,1187,1982,1985,1986,1989],{},[233,1957,1948],{}," has ",[233,1960,1961],{},"created_at",[233,1963,1964],{},"uploaded_at"," (bytes verified and saved), ",[233,1967,1968],{},"searchable_at"," (processing finished), and the durations in milliseconds ",[233,1971,1972],{},"transfer_ms",[233,1974,1975],{},"queue_ms",[233,1977,1978],{},"processing_ms",[233,1980,1981],{},"uploaded_to_searchable_ms",[233,1983,1984],{},"total_ms",". A value is ",[233,1987,1988],{},"null"," until it is known, or when a step was skipped; null does not mean zero.",[844,1991,1821,1993],{"id":1992},"get-v1workspacesworkspace_idoperationsoperation_id",[233,1994,1995],{},"\u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Foperations\u002F{operation_id}",[229,1997,1998,1999,2002],{},"Read an operation. Optional query ",[233,2000,2001],{},"drive_id"," limits the lookup to one drive.",[290,2004,2005,2015],{},[293,2006,2007],{},[296,2008,2009,2011,2013],{},[299,2010,1366],{},[299,2012,1369],{},[299,2014,1840],{},[310,2016,2017,2028,2050,2063,2074,2086,2098],{},[296,2018,2019,2023,2025],{},[315,2020,2021],{},[233,2022,746],{},[315,2024,1386],{},[315,2026,2027],{},"Operation UUID.",[296,2029,2030,2035,2045],{},[315,2031,2032],{},[233,2033,2034],{},"status",[315,2036,2037,320,2039,320,2041,320,2043],{},[233,2038,1186],{},[233,2040,1190],{},[233,2042,1194],{},[233,2044,1198],{},[315,2046,2047,2049],{},[233,2048,1194],{}," means processing finished.",[296,2051,2052,2058,2060],{},[315,2053,2054,320,2056],{},[233,2055,1202],{},[233,2057,1205],{},[315,2059,1487],{},[315,2061,2062],{},"Why the operation failed.",[296,2064,2065,2069,2071],{},[315,2066,2067],{},[233,2068,1961],{},[315,2070,1386],{},[315,2072,2073],{},"When it started.",[296,2075,2076,2081,2083],{},[315,2077,2078],{},[233,2079,2080],{},"completed_at",[315,2082,1487],{},[315,2084,2085],{},"When it finished.",[296,2087,2088,2093,2095],{},[315,2089,2090],{},[233,2091,2092],{},"document_count",[315,2094,1459],{},[315,2096,2097],{},"Files in the operation.",[296,2099,2100,2105,2107],{},[315,2101,2102],{},[233,2103,2104],{},"progress",[315,2106,1503],{},[315,2108,2109,2110,320,2113,2116,2117,375],{},"For progressive text records: ",[233,2111,2112],{},"accepted_documents",[233,2114,2115],{},"indexed_documents"," (processed) and ",[233,2118,2119],{},"failed_documents",[278,2121,2123],{"id":2122},"bulk-uploads","Bulk uploads",[229,2125,2126],{},"Bulk routes reserve, complete and check many files in one request each. Every file has its own result, so keep the files that succeeded and follow up on the ones that need attention. The SDK and the CLI use these routes for you. Not every drive has them: read the drive's capabilities first.",[844,2128,1821,2130],{"id":2129},"get-v1drivesdrive_iduploadscapabilities",[233,2131,2132],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002Fcapabilities",[229,2134,2135],{},"Read how the drive takes uploads. Read it before you upload more than one file.",[290,2137,2138,2147],{},[293,2139,2140],{},[296,2141,2142,2145],{},[299,2143,2144],{},"Answer",[299,2146,1840],{},[310,2148,2149,2167],{},[296,2150,2151,2156],{},[315,2152,2153],{},[233,2154,2155],{},"{\"version\":1,\"max_items\":50,\"max_body_bytes\":65536}",[315,2157,2158,2159,2162,2163,2166],{},"The drive has the bulk routes. ",[233,2160,2161],{},"max_items"," is the most files one bulk request names and ",[233,2164,2165],{},"max_body_bytes"," the largest JSON body of one. Keep every bulk request within them.",[296,2168,2169,2174],{},[315,2170,2171],{},[233,2172,2173],{},"{\"version\":2,\"max_items\":1,\"max_body_bytes\":65536}",[315,2175,2176,2177,2180,2181,915,2185,2187],{},"The drive takes files one at a time and has no bulk routes; they return 409 ",[233,2178,2179],{},"not_supported_on_this_drive",". Upload each file ",[249,2182,2184],{"href":2183},"#upload-one-file","on its own",[233,2186,2165],{}," is the largest JSON body an upload route accepts.",[229,2189,2190,2191,2194,2195,2198,2199,2202],{},"Treat a ",[233,2192,2193],{},"version"," you do not know as version 2: upload files one at a time. ",[233,2196,2197],{},"GET \u002Fv1\u002Fsdk\u002Fcontext"," also returns conservative bulk defaults in ",[233,2200,2201],{},"upload_batch","; the drive's own answer decides.",[844,2204,1348,2206],{"id":2205},"post-v1drivesdrive_iduploadsbatch",[233,2207,2208],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002Fbatch",[229,2210,2211,2212,2214,2215,2218,2219,2223,2224,1187,2226,2228,2229,2232],{},"Reserve uploads. Requires ",[233,2213,1357],{},". Send a ",[233,2216,2217],{},"files"," array; each entry has the ",[249,2220,2222],{"href":2221},"#post-v2drivesdrive_iduploads","single-upload fields"," except ",[233,2225,1245],{},[233,2227,1284],{},", plus ",[233,2230,2231],{},"key",": 1 to 128 characters, unique in the request and stable when you retry that file.",[427,2234,2236],{"className":1227,"code":2235,"language":1229,"meta":432,"style":432},"{\n  \"files\": [\n    {\n      \"key\": \"library-0001\",\n      \"external_id\": \"opening-hours.txt\",\n      \"filename\": \"opening-hours.txt\",\n      \"format\": \"txt\",\n      \"size_bytes\": 18,\n      \"sha256\": \"REPLACE_WITH_SHA256_OF_THE_FILE\"\n    }\n  ]\n}\n",[233,2237,2238,2242,2255,2260,2280,2299,2317,2335,2350,2367,2372,2377],{"__ignoreMap":432},[436,2239,2240],{"class":438,"line":439},[436,2241,1236],{"class":446},[436,2243,2244,2246,2248,2250,2252],{"class":438,"line":470},[436,2245,1241],{"class":446},[436,2247,2217],{"class":1244},[436,2249,579],{"class":446},[436,2251,288],{"class":446},[436,2253,2254],{"class":446}," [\n",[436,2256,2257],{"class":438,"line":509},[436,2258,2259],{"class":446},"    {\n",[436,2261,2262,2265,2267,2269,2271,2273,2276,2278],{"class":438,"line":548},[436,2263,2264],{"class":446},"      \"",[436,2266,2231],{"class":480},[436,2268,579],{"class":446},[436,2270,288],{"class":446},[436,2272,567],{"class":446},[436,2274,2275],{"class":450},"library-0001",[436,2277,579],{"class":446},[436,2279,1259],{"class":446},[436,2281,2282,2284,2286,2288,2290,2292,2295,2297],{"class":438,"line":555},[436,2283,2264],{"class":446},[436,2285,404],{"class":480},[436,2287,579],{"class":446},[436,2289,288],{"class":446},[436,2291,567],{"class":446},[436,2293,2294],{"class":450},"opening-hours.txt",[436,2296,579],{"class":446},[436,2298,1259],{"class":446},[436,2300,2301,2303,2305,2307,2309,2311,2313,2315],{"class":438,"line":585},[436,2302,2264],{"class":446},[436,2304,677],{"class":480},[436,2306,579],{"class":446},[436,2308,288],{"class":446},[436,2310,567],{"class":446},[436,2312,2294],{"class":450},[436,2314,579],{"class":446},[436,2316,1259],{"class":446},[436,2318,2319,2321,2323,2325,2327,2329,2331,2333],{"class":438,"line":603},[436,2320,2264],{"class":446},[436,2322,287],{"class":480},[436,2324,579],{"class":446},[436,2326,288],{"class":446},[436,2328,567],{"class":446},[436,2330,326],{"class":450},[436,2332,579],{"class":446},[436,2334,1259],{"class":446},[436,2336,2337,2339,2341,2343,2345,2348],{"class":438,"line":617},[436,2338,2264],{"class":446},[436,2340,710],{"class":480},[436,2342,579],{"class":446},[436,2344,288],{"class":446},[436,2346,2347],{"class":523}," 18",[436,2349,1259],{"class":446},[436,2351,2352,2354,2356,2358,2360,2362,2365],{"class":438,"line":631},[436,2353,2264],{"class":446},[436,2355,381],{"class":480},[436,2357,579],{"class":446},[436,2359,288],{"class":446},[436,2361,567],{"class":446},[436,2363,2364],{"class":450},"REPLACE_WITH_SHA256_OF_THE_FILE",[436,2366,736],{"class":446},[436,2368,2369],{"class":438,"line":645},[436,2370,2371],{"class":446},"    }\n",[436,2373,2374],{"class":438,"line":1077},[436,2375,2376],{"class":446},"  ]\n",[436,2378,2379],{"class":438,"line":1090},[436,2380,1300],{"class":446},[229,2382,2383,1549,2385,2387,2388,2390,2391,320,2393,2395,2396,2399,2400,1622,2402,2405,2406,320,2408,1187,2410,2412,2413,1187,2415,1324,2417,2420],{},[398,2384,1548],{},[233,2386,2217],{}," in request order. An accepted entry has its ",[233,2389,2231],{},", upload ",[233,2392,746],{},[233,2394,1554],{}," and, when bytes are still needed, a ",[233,2397,2398],{},"transfer"," object (",[233,2401,1642],{},[233,2403,2404],{},"direct"," the ",[233,2407,902],{},[233,2409,906],{},[233,2411,918],{},"). An entry that needs attention has ",[233,2414,2231],{},[233,2416,1202],{},[233,2418,2419],{},"retry_after_seconds"," when it can be retried later with the same key and inputs.",[844,2422,1348,2424],{"id":2423},"post-v1drivesdrive_iduploadsbatchcomplete",[233,2425,2426],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002Fbatch\u002Fcomplete",[229,2428,2429,2430,375],{},"After sending the bytes, complete the uploads. Requires ",[233,2431,1357],{},[427,2433,2435],{"className":1227,"code":2434,"language":1229,"meta":432,"style":432},"{\"files\":[{\"id\":\"UPLOAD_UUID\",\"transport\":\"direct\"}]}\n",[233,2436,2437],{"__ignoreMap":432},[436,2438,2439,2441,2443,2445,2447,2450,2452,2454,2456,2458,2460,2463,2465,2467,2469,2471,2473,2475,2477,2479,2481],{"class":438,"line":439},[436,2440,653],{"class":446},[436,2442,579],{"class":446},[436,2444,2217],{"class":1244},[436,2446,579],{"class":446},[436,2448,2449],{"class":446},":[{",[436,2451,579],{"class":446},[436,2453,746],{"class":480},[436,2455,579],{"class":446},[436,2457,288],{"class":446},[436,2459,579],{"class":446},[436,2461,2462],{"class":450},"UPLOAD_UUID",[436,2464,579],{"class":446},[436,2466,672],{"class":446},[436,2468,579],{"class":446},[436,2470,1642],{"class":480},[436,2472,579],{"class":446},[436,2474,288],{"class":446},[436,2476,579],{"class":446},[436,2478,2404],{"class":450},[436,2480,579],{"class":446},[436,2482,2483],{"class":446},"}]}\n",[229,2485,2486,1719,2488,240,2490,2492,2493,1549,2495,2497,2498,2500,2501,2503],{},[233,2487,1642],{},[233,2489,2404],{},[233,2491,1751],{},", as used for that file. ",[398,2494,1783],{},[233,2496,2217],{},", each with its ",[233,2499,1554],{}," and any ",[233,2502,1202],{},". Repeat with the same IDs to recover an interrupted answer.",[844,2505,1348,2507],{"id":2506},"post-v1drivesdrive_iduploadsbatchstatus",[233,2508,2509],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002Fbatch\u002Fstatus",[229,2511,2512,2513,1605,2515,2518,2519,1549,2521,2523,2524,320,2526,320,2528,320,2530,320,2532,320,2534,320,2536,1643,2539,320,2541,320,2543,240,2545,2547,2548,375],{},"Read many uploads at once. Requires ",[233,2514,1357],{},[233,2516,2517],{},"{\"ids\": [\"UPLOAD_UUID\", \"...\"]}",", unique IDs from this drive. ",[398,2520,1588],{},[233,2522,2217],{}," in the requested order, each with ",[233,2525,746],{},[233,2527,1554],{},[233,2529,1245],{},[233,2531,1129],{},[233,2533,1798],{},[233,2535,1202],{},[233,2537,2538],{},"processing_status",[233,2540,1186],{},[233,2542,1190],{},[233,2544,1194],{},[233,2546,1198],{},") and ",[233,2549,2550],{},"processing_error_code",[278,2552,2554],{"id":2553},"upload-capacity","Upload capacity",[229,2556,2557],{},"Each drive has its own capacity, shared by every client uploading to it:",[2559,2560,2561,2564],"ul",{},[395,2562,2563],{},"A limited number of active transfers (prepared, unfinished and unexpired single uploads).",[395,2565,2566],{},"A limited number of outstanding uploads, counting active transfers and files waiting for or in processing.",[229,2568,2569,2570,1568,2572,2574],{},"Past either, preparing an upload returns 429 ",[233,2571,1567],{},[233,2573,1571],{},". A transfer slot frees up once the file is completed. Files already completed stay queued for processing and do not expire.",[844,2576,1821,2578],{"id":2577},"get-v1drivesdrive_idingestion-metrics",[233,2579,2580],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fingestion-metrics",[229,2582,2583,2584,1549,2586,1643,2589,1647,2592,320,2594,320,2597,2600,2601,2604,2605,2608],{},"Read the drive's capacity and processing queue. ",[398,2585,1588],{},[233,2587,2588],{},"scope",[233,2590,2591],{},"drive",[233,2593,2001],{},[233,2595,2596],{},"active_transfers",[233,2598,2599],{},"transfer_limit"," (50), ",[233,2602,2603],{},"outstanding_limit"," (10,000) and ",[233,2606,2607],{},"processing",", with:",[290,2610,2611,2619],{},[293,2612,2613],{},[296,2614,2615,2617],{},[299,2616,1366],{},[299,2618,1840],{},[310,2620,2621,2632,2641,2651],{},[296,2622,2623,2629],{},[315,2624,2625,320,2627],{},[233,2626,1186],{},[233,2628,1190],{},[315,2630,2631],{},"Work waiting and in progress.",[296,2633,2634,2638],{},[315,2635,2636],{},[233,2637,1198],{},[315,2639,2640],{},"Uploads and operations that are still failed. Uploading the file again does not clear an earlier failure.",[296,2642,2643,2648],{},[315,2644,2645],{},[233,2646,2647],{},"pending_bytes",[315,2649,2650],{},"Original bytes still waiting for or in processing, as a decimal string.",[296,2652,2653,2658],{},[315,2654,2655],{},[233,2656,2657],{},"oldest_queued_ms",[315,2659,2660],{},"Age of the oldest queued item, or null.",[278,2662,2664],{"id":2663},"bulk-imports","Bulk imports",[229,2666,2667,2668,2671,2672,375],{},"Bulk imports load a large collection of TXT and Markdown files into one drive. They are available to organizations that have them enabled; for others, the import routes return 404 ",[233,2669,2670],{},"not_found"," or 503 ",[233,2673,2674],{},"temporarily_unavailable",[229,2676,2677,2678,375],{},"An import groups files into chunks. You declare the totals, upload each chunk to its own URL, acknowledge it, then seal the import. Files are processed while later chunks are still uploading. Choose a new UUID for each import and keep it: the import ID makes creation safe to retry, so these routes do not use ",[233,2679,1357],{},[229,2681,2682,2683,2685,2686,2690],{},"While an import batch is being applied to a drive, other writes to that drive return 503 ",[233,2684,2674],{},". Retry them later; other drives are not affected. Imports count toward ",[249,2687,2689],{"href":2688},"\u002Freference\u002Flimits#drive-limits","drive limits"," and your storage.",[290,2692,2693,2703],{},[293,2694,2695],{},[296,2696,2697,2700],{},[299,2698,2699],{},"Limit",[299,2701,2702],{},"Value",[310,2704,2705,2713,2721,2728,2736,2744,2752,2760],{},[296,2706,2707,2710],{},[315,2708,2709],{},"Source bytes per import",[315,2711,2712],{},"100,000,000,000",[296,2714,2715,2718],{},[315,2716,2717],{},"Files per import",[315,2719,2720],{},"100,000",[296,2722,2723,2726],{},[315,2724,2725],{},"Chunks per import",[315,2727,2720],{},[296,2729,2730,2733],{},[315,2731,2732],{},"Bytes per chunk",[315,2734,2735],{},"32,000,000",[296,2737,2738,2741],{},[315,2739,2740],{},"Files per chunk",[315,2742,2743],{},"10,000",[296,2745,2746,2749],{},[315,2747,2748],{},"Chunks declared per request",[315,2750,2751],{},"32",[296,2753,2754,2757],{},[315,2755,2756],{},"Chunks declared but not acknowledged",[315,2758,2759],{},"32, and at most 1,000,000,000 bytes",[296,2761,2762,2765],{},[315,2763,2764],{},"Formats",[315,2766,2767,1187,2769,2771],{},[233,2768,326],{},[233,2770,329],{},", UTF-8, not empty",[844,2773,2775],{"id":2774},"chunk-format","Chunk format",[229,2777,2778],{},"A chunk is a 4-byte big-endian manifest length, a JSON manifest, then the file bodies one after another. The manifest lists each file:",[427,2780,2782],{"className":1227,"code":2781,"language":1229,"meta":432,"style":432},"{\"schema\":\"flashdrive-import-chunk.v1\",\"mode\":\"create\",\"documents\":[\n {\"external_id\":\"guides\u002Fsetup.md\",\"filename\":\"setup.md\",\"format\":\"md\",\"metadata\":{},\n  \"expected_revision\":null,\"offset\":0,\"size_bytes\":1834,\"sha256\":\"\u003Chex>\"}]}\n",[233,2783,2784,2834,2898],{"__ignoreMap":432},[436,2785,2786,2788,2790,2793,2795,2797,2799,2802,2804,2806,2808,2811,2813,2815,2817,2820,2822,2824,2826,2829,2831],{"class":438,"line":439},[436,2787,653],{"class":446},[436,2789,579],{"class":446},[436,2791,2792],{"class":1244},"schema",[436,2794,579],{"class":446},[436,2796,288],{"class":446},[436,2798,579],{"class":446},[436,2800,2801],{"class":450},"flashdrive-import-chunk.v1",[436,2803,579],{"class":446},[436,2805,672],{"class":446},[436,2807,579],{"class":446},[436,2809,2810],{"class":1244},"mode",[436,2812,579],{"class":446},[436,2814,288],{"class":446},[436,2816,579],{"class":446},[436,2818,2819],{"class":450},"create",[436,2821,579],{"class":446},[436,2823,672],{"class":446},[436,2825,579],{"class":446},[436,2827,2828],{"class":1244},"documents",[436,2830,579],{"class":446},[436,2832,2833],{"class":446},":[\n",[436,2835,2836,2839,2841,2843,2845,2847,2849,2852,2854,2856,2858,2860,2862,2864,2866,2869,2871,2873,2875,2877,2879,2881,2883,2885,2887,2889,2891,2893,2895],{"class":438,"line":470},[436,2837,2838],{"class":446}," {",[436,2840,579],{"class":446},[436,2842,404],{"class":480},[436,2844,579],{"class":446},[436,2846,288],{"class":446},[436,2848,579],{"class":446},[436,2850,2851],{"class":450},"guides\u002Fsetup.md",[436,2853,579],{"class":446},[436,2855,672],{"class":446},[436,2857,579],{"class":446},[436,2859,677],{"class":480},[436,2861,579],{"class":446},[436,2863,288],{"class":446},[436,2865,579],{"class":446},[436,2867,2868],{"class":450},"setup.md",[436,2870,579],{"class":446},[436,2872,672],{"class":446},[436,2874,579],{"class":446},[436,2876,287],{"class":480},[436,2878,579],{"class":446},[436,2880,288],{"class":446},[436,2882,579],{"class":446},[436,2884,329],{"class":450},[436,2886,579],{"class":446},[436,2888,672],{"class":446},[436,2890,579],{"class":446},[436,2892,1500],{"class":480},[436,2894,579],{"class":446},[436,2896,2897],{"class":446},":{},\n",[436,2899,2900,2902,2904,2906,2909,2911,2914,2916,2918,2921,2923,2925,2927,2929,2931,2934,2936,2938,2940,2942,2944,2946,2949,2951],{"class":438,"line":509},[436,2901,1241],{"class":446},[436,2903,1284],{"class":480},[436,2905,579],{"class":446},[436,2907,2908],{"class":446},":null,",[436,2910,579],{"class":446},[436,2912,2913],{"class":480},"offset",[436,2915,579],{"class":446},[436,2917,288],{"class":446},[436,2919,2920],{"class":523},"0",[436,2922,672],{"class":446},[436,2924,579],{"class":446},[436,2926,710],{"class":480},[436,2928,579],{"class":446},[436,2930,288],{"class":446},[436,2932,2933],{"class":523},"1834",[436,2935,672],{"class":446},[436,2937,579],{"class":446},[436,2939,381],{"class":480},[436,2941,579],{"class":446},[436,2943,288],{"class":446},[436,2945,579],{"class":446},[436,2947,2948],{"class":450},"\u003Chex>",[436,2950,579],{"class":446},[436,2952,2483],{"class":446},[229,2954,2955,2957,2958,1187,2960,2962,2963,2965,2966,2968,2969,1719,2971,2973,2974,2977,2978,2981,2982,1187,2984,2987,2988,2991],{},[233,2956,2792],{}," is always the value shown. ",[233,2959,2913],{},[233,2961,710],{}," locate each file in the bodies, and ",[233,2964,381],{}," is the file's digest. In ",[233,2967,2819],{}," mode, ",[233,2970,1284],{},[233,2972,1988],{}," and the external IDs are new. In ",[233,2975,2976],{},"replace"," mode, give each file's current revision; otherwise the import reports ",[233,2979,2980],{},"import_revision_conflict",". The chunk's own ",[233,2983,381],{},[233,2985,2986],{},"encoded_bytes"," cover the whole chunk, and ",[233,2989,2990],{},"source_bytes"," is the sum of its file sizes.",[844,2993,1742,2995],{"id":2994},"put-v1drivesdrive_idimportsimport_id",[233,2996,2997],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fimports\u002F{import_id}",[229,2999,3000,3001,3004,3005,3007,3008,3011,3012,3014,3015,3018,3019,375],{},"Create the import with ",[233,3002,3003],{},"{\"source_bytes\": \u003Ctotal>, \"documents\": \u003Ctotal>}",". One import takes at most 100,000 files (the ",[233,3006,2828],{}," total you declare) and 100,000,000,000 source bytes; larger totals return 400 ",[233,3009,3010],{},"invalid_upload_batch",", so split the collection into several imports. ",[398,3013,1548],{},": the import. Repeating the same request returns the same import; other totals return 409 ",[233,3016,3017],{},"idempotency_conflict",". Totals past the drive limits return 409 ",[233,3020,3021],{},"drive_limit_exceeded",[229,3023,3024,3025,320,3027,1643,3029,320,3032,240,3035,1647,3038,3041,3042,1187,3044,3046,3047,320,3050,320,3053,2116,3056,3059,3060,3063,3064,3066],{},"The import has ",[233,3026,746],{},[233,3028,1554],{},[233,3030,3031],{},"open",[233,3033,3034],{},"sealed",[233,3036,3037],{},"closed",[233,3039,3040],{},"expires_at"," (Unix milliseconds), the declared ",[233,3043,2990],{},[233,3045,2828],{},", the counters ",[233,3048,3049],{},"declared_*",[233,3051,3052],{},"acknowledged_*",[233,3054,3055],{},"searchable_*",[233,3057,3058],{},"failed_*"," for bytes and documents, ",[233,3061,3062],{},"released"," (unused reserved storage was returned) and ",[233,3065,1618],{}," (sealed, and everything acknowledged is processed).",[844,3068,1348,3070],{"id":3069},"post-v1drivesdrive_idimportsimport_idchunks",[233,3071,3072],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fimports\u002F{import_id}\u002Fchunks",[229,3074,3075,3076,3079,3080,3082,3083,3085,3086,1705,3088,3090,3091,3093,3094,3097,3098,375],{},"Declare 1 to 32 chunks: ",[233,3077,3078],{},"{\"chunks\":[{\"sequence\":0,\"sha256\":\"\u003Chex>\",\"encoded_bytes\":4096,\"source_bytes\":4000,\"documents\":12}]}",". Number chunks from 0 without gaps. Each returned chunk has a ",[233,3081,2398],{}," object: ",[233,3084,876],{}," the chunk bytes to its ",[233,3087,902],{},[233,3089,906],{}," within ",[233,3092,918],{}," seconds. Declaring the same chunk again returns a fresh destination. 409 ",[233,3095,3096],{},"request_in_progress"," means too many chunks are waiting for acknowledgement or too much declared content is waiting for processing: acknowledge chunks or wait, then retry. Declaring past the import's totals, or the same sequence with other values, returns 409 ",[233,3099,3017],{},[844,3101,1348,3103],{"id":3102},"post-v1drivesdrive_idimportsimport_idchunkssequenceacknowledge",[233,3104,3105],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fimports\u002F{import_id}\u002Fchunks\u002F{sequence}\u002Facknowledge",[229,3107,3108,3109,3111,3112,3114,3115,3117],{},"Send ",[233,3110,839],{}," after the chunk upload succeeds. The service checks the stored chunk against its declaration and returns a receipt; repeating returns the same receipt. 404 ",[233,3113,2670],{}," means the chunk is not stored yet. 400 ",[233,3116,3010],{}," means the chunk does not match its declaration, or holds an unsupported format, invalid UTF-8 or an empty file.",[844,3119,1348,3121],{"id":3120},"post-v1drivesdrive_idimportsimport_idseal",[233,3122,3123],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fimports\u002F{import_id}\u002Fseal",[229,3125,3126,3127,3130,3131,3133],{},"Send the final totals: ",[233,3128,3129],{},"{\"chunks\": \u003Ccount>, \"source_bytes\": \u003Ctotal>, \"documents\": \u003Ctotal>}",". They must match the declared chunks, and every chunk must be acknowledged; otherwise 409 ",[233,3132,3017],{},". Sealing ends the uploads; processing continues.",[844,3135,1821,3137],{"id":3136},"get-v1drivesdrive_idimportsimport_id",[233,3138,2997],{},[229,3140,3141,3142,3145,3146,3149,3150,320,3152,320,3155,2500,3158,375],{},"Read progress and a page of chunks: ",[233,3143,3144],{},"after"," (default -1) and ",[233,3147,3148],{},"limit"," (1 to 1,000, default 100). Each chunk lists its ",[233,3151,1554],{},[233,3153,3154],{},"attempts",[233,3156,3157],{},"last_error",[233,3159,3160],{},"failed_operations",[844,3162,3164],{"id":3163},"other-import-actions","Other import actions",[2559,3166,3167,3175,3183],{},[395,3168,3169,1568,3172,3174],{},[233,3170,3171],{},"POST ...\u002Fclose",[233,3173,839],{}," stops the import early and releases unused storage.",[395,3176,3177,1568,3180,3182],{},[233,3178,3179],{},"POST ...\u002Frecover",[233,3181,839],{}," restores access to an existing import, for example after a lost reply to creation.",[395,3184,3185,1568,3188,3191,3192,3194,3195,3198],{},[233,3186,3187],{},"POST ...\u002Foperations\u002F{operation_id}\u002Fretry",[233,3189,3190],{},"{\"request_id\": \"\u003Cuuid>\"}"," retries a failed operation listed in ",[233,3193,3160],{},". Reuse the same ",[233,3196,3197],{},"request_id"," when you retry the request.",[229,3200,3201,3202,3204,3205,3207,3208,3210,3211,3213,3214,3216],{},"An open import that passes its ",[233,3203,3040],{}," closes. While imports are paused for maintenance, creating one returns 503 ",[233,3206,2674],{}," and declaring or acknowledging chunks returns 409 ",[233,3209,1560],{},": read the import, and if its ",[233,3212,1554],{}," is still ",[233,3215,3031],{},", retry later.",[3218,3219,3220],"style",{},"html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}",{"title":432,"searchDepth":470,"depth":470,"links":3222},[3223,3224,3228,3229,3245,3255,3259],{"id":280,"depth":470,"text":281},{"id":389,"depth":470,"text":390,"children":3225},[3226,3227],{"id":846,"depth":509,"text":847},{"id":1122,"depth":509,"text":1123},{"id":1212,"depth":470,"text":1213},{"id":1343,"depth":470,"text":1344,"children":3230},[3231,3233,3235,3237,3239,3241,3243],{"id":1347,"depth":509,"text":3232},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads",{"id":1574,"depth":509,"text":3234},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002F{upload_id}\u002Ftransfer",{"id":1596,"depth":509,"text":3236},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002F{upload_id}\u002Fmultipart",{"id":1741,"depth":509,"text":3238},"PUT \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002F{upload_id}\u002Fcontent",{"id":1766,"depth":509,"text":3240},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002F{upload_id}\u002Fcomplete",{"id":1820,"depth":509,"text":3242},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002F{upload_id}",{"id":1992,"depth":509,"text":3244},"GET \u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Foperations\u002F{operation_id}",{"id":2122,"depth":470,"text":2123,"children":3246},[3247,3249,3251,3253],{"id":2129,"depth":509,"text":3248},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002Fcapabilities",{"id":2205,"depth":509,"text":3250},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002Fbatch",{"id":2423,"depth":509,"text":3252},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002Fbatch\u002Fcomplete",{"id":2506,"depth":509,"text":3254},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fuploads\u002Fbatch\u002Fstatus",{"id":2553,"depth":470,"text":2554,"children":3256},[3257],{"id":2577,"depth":509,"text":3258},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fingestion-metrics",{"id":2663,"depth":470,"text":2664,"children":3260},[3261,3262,3264,3266,3268,3270,3272],{"id":2774,"depth":509,"text":2775},{"id":2994,"depth":509,"text":3263},"PUT \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fimports\u002F{import_id}",{"id":3069,"depth":509,"text":3265},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fimports\u002F{import_id}\u002Fchunks",{"id":3102,"depth":509,"text":3267},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fimports\u002F{import_id}\u002Fchunks\u002F{sequence}\u002Facknowledge",{"id":3120,"depth":509,"text":3269},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fimports\u002F{import_id}\u002Fseal",{"id":3136,"depth":509,"text":3271},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fimports\u002F{import_id}",{"id":3163,"depth":509,"text":3164},"Upload files of any type, replace a specific revision, and follow processing.",null,{},{"title":200},{"title":200,"description":3273},"VpSQ8zmw1E2zyK2FL1C9nlm97hugQuP9mlHzOrm5WXk",[3280,3282],{"title":196,"path":197,"stem":198,"description":3281,"children":-1},"Organize drives and folders, read and write files, follow changes, and give sandboxes access.",{"title":204,"path":205,"stem":206,"description":3283,"children":-1},"Read storage and usage, and manage prepaid balances and invoices.",1795366546182]