[{"data":1,"prerenderedAt":3882},["ShallowReactive",2],{"navigation_docs":3,"-reference-content-api":223,"-reference-content-api-surround":3877},[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":196,"body":225,"description":3871,"extension":749,"links":3872,"meta":3873,"navigation":3874,"path":197,"seo":3875,"stem":198,"__hash__":3876},"docs\u002F7.reference\u002F03.content-api.md",{"type":226,"value":227,"toc":3789},"minimark",[228,237,273,284,289,409,436,440,477,508,653,662,967,970,974,982,1003,1009,1023,1029,1038,1044,1055,1061,1073,1110,1116,1121,1203,1209,1219,1225,1240,1253,1259,1267,1273,1294,1298,1304,1307,1370,1401,1406,1411,1457,1469,1475,1493,1499,1507,1512,1517,1558,1572,1578,1598,1603,1610,1641,1647,1690,1693,1699,1702,1773,1817,1823,1829,1847,1853,1906,1912,1926,1930,1934,1945,1996,2043,2047,2056,2144,2150,2154,2172,2228,2260,2264,2270,2275,2314,2323,2335,2339,2350,2443,2495,2541,2545,2563,2609,2623,2733,2755,2759,2767,2809,2827,2831,2843,2847,2868,2872,2880,2968,3028,3050,3111,3115,3139,3165,3169,3172,3177,3190,3268,3287,3302,3307,3329,3338,3342,3348,3379,3382,3457,3463,3496,3500,3511,3517,3590,3599,3654,3660,3679,3685,3694,3700,3705,3709,3785],[229,230,231,232,236],"p",{},"This page covers the routes for drives, folders and files: reading and streaming original files, editing them in place, the change feed, and sandbox tokens. To upload files, see the ",[233,234,235],"a",{"href":201},"uploads API",".",[229,238,239,240,243,244,248,249,252,253,256,257,260,261,264,265,269,270,236],{},"Use a ",[233,241,242],{"href":45},"workspace API key"," with permission ",[245,246,247],"code",{},"search"," to read, or ",[245,250,251],{},"read_write"," to add, change and delete. A signed-in user's access token works too; the user needs a workspace role that allows the action (a ",[245,254,255],{},"viewer"," reads, an ",[245,258,259],{},"editor"," or ",[245,262,263],{},"admin"," also writes). A ",[233,266,268],{"href":267},"#sandbox-tokens","sandbox token"," works on its one drive or folder. IDs must belong to the workspace the credential can reach; anything else returns 404 ",[245,271,272],{},"not_found",[229,274,275,276,279,280,283],{},"See ",[233,277,278],{"href":189},"authentication"," for request headers and response formats, and ",[233,281,282],{"href":209},"errors and recovery"," for failed requests.",[285,286,288],"h2",{"id":287},"create-a-drive","Create a drive",[290,291,296],"pre",{"className":292,"code":293,"language":294,"meta":295,"style":295},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -X POST \"https:\u002F\u002Fapi.flashdrive.space\u002Fv1\u002Fworkspaces\u002F$WORKSPACE_ID\u002Fdrives\" \\\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: create-handbooks-1\" \\\n  -d '{\"name\":\"Handbooks\"}'\n","bash","",[245,297,298,334,352,366,380,394],{"__ignoreMap":295},[299,300,303,307,311,314,318,321,325,328,331],"span",{"class":301,"line":302},"line",1,[299,304,306],{"class":305},"sBMFI","curl",[299,308,310],{"class":309},"sfazB"," -X",[299,312,313],{"class":309}," POST",[299,315,317],{"class":316},"sMK4o"," \"",[299,319,320],{"class":309},"https:\u002F\u002Fapi.flashdrive.space\u002Fv1\u002Fworkspaces\u002F",[299,322,324],{"class":323},"sTEyZ","$WORKSPACE_ID",[299,326,327],{"class":309},"\u002Fdrives",[299,329,330],{"class":316},"\"",[299,332,333],{"class":323}," \\\n",[299,335,337,340,342,345,348,350],{"class":301,"line":336},2,[299,338,339],{"class":309},"  -H",[299,341,317],{"class":316},[299,343,344],{"class":309},"Authorization: Bearer ",[299,346,347],{"class":323},"$FLASHDRIVE_API_KEY",[299,349,330],{"class":316},[299,351,333],{"class":323},[299,353,355,357,359,362,364],{"class":301,"line":354},3,[299,356,339],{"class":309},[299,358,317],{"class":316},[299,360,361],{"class":309},"Flashdrive-Client: my-app\u002F1.0.0",[299,363,330],{"class":316},[299,365,333],{"class":323},[299,367,369,371,373,376,378],{"class":301,"line":368},4,[299,370,339],{"class":309},[299,372,317],{"class":316},[299,374,375],{"class":309},"Content-Type: application\u002Fjson",[299,377,330],{"class":316},[299,379,333],{"class":323},[299,381,383,385,387,390,392],{"class":301,"line":382},5,[299,384,339],{"class":309},[299,386,317],{"class":316},[299,388,389],{"class":309},"Idempotency-Key: create-handbooks-1",[299,391,330],{"class":316},[299,393,333],{"class":323},[299,395,397,400,403,406],{"class":301,"line":396},6,[299,398,399],{"class":309},"  -d",[299,401,402],{"class":316}," '",[299,404,405],{"class":309},"{\"name\":\"Handbooks\"}",[299,407,408],{"class":316},"'\n",[229,410,411,412,415,416,419,420,423,424,427,428,431,432,435],{},"The 201 response is the new drive. Its ",[245,413,414],{},"status"," starts as ",[245,417,418],{},"creating","; read the drive again until it is ",[245,421,422],{},"ready"," before you upload to it (",[245,425,426],{},"failed"," means setup did not finish). Keep ",[245,429,430],{},"id"," for later requests, and the drive's ",[245,433,434],{},"ETag"," for changes.",[285,437,439],{"id":438},"resources","Resources",[229,441,442,446,447,450,451,453,454,457,458,453,461,446,463,453,465,260,467,469,470,473,474,476],{},[443,444,445],"strong",{},"Drive"," (",[245,448,449],{},"GET \u002Fv1\u002Fdrives\u002F{drive_id}","): ",[245,452,430],{},", ",[245,455,456],{},"name"," (1 to 120 characters), ",[245,459,460],{},"version",[245,462,414],{},[245,464,418],{},[245,466,422],{},[245,468,426],{},") and ",[245,471,472],{},"document_count"," (the number of files, as a decimal string), with the drive's ",[245,475,434],{}," header.",[229,478,479,482,483,453,485,457,487,490,491,453,493,496,497,500,501,469,504,507],{},[443,480,481],{},"Folder",": ",[245,484,430],{},[245,486,456],{},[245,488,489],{},"parent_folder_id"," (null at the drive's top level), ",[245,492,460],{},[245,494,495],{},"created_at"," (null for folders made before dates were recorded), ",[245,498,499],{},"path"," (folder names joined by ",[245,502,503],{},"\u002F",[245,505,506],{},"depth"," (1 at the top level, at most 64).",[290,509,513],{"className":510,"code":511,"language":512,"meta":295,"style":295},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"id\": \"FOLDER_UUID\",\n  \"name\": \"Policies\",\n  \"parent_folder_id\": null,\n  \"version\": \"1\",\n  \"created_at\": \"2026-11-09T10:00:00Z\",\n  \"path\": \"Policies\",\n  \"depth\": 1\n}\n","json",[245,514,515,520,543,562,575,594,613,632,647],{"__ignoreMap":295},[299,516,517],{"class":301,"line":302},[299,518,519],{"class":316},"{\n",[299,521,522,525,528,530,533,535,538,540],{"class":301,"line":336},[299,523,524],{"class":316},"  \"",[299,526,430],{"class":527},"spNyl",[299,529,330],{"class":316},[299,531,532],{"class":316},":",[299,534,317],{"class":316},[299,536,537],{"class":309},"FOLDER_UUID",[299,539,330],{"class":316},[299,541,542],{"class":316},",\n",[299,544,545,547,549,551,553,555,558,560],{"class":301,"line":354},[299,546,524],{"class":316},[299,548,456],{"class":527},[299,550,330],{"class":316},[299,552,532],{"class":316},[299,554,317],{"class":316},[299,556,557],{"class":309},"Policies",[299,559,330],{"class":316},[299,561,542],{"class":316},[299,563,564,566,568,570,572],{"class":301,"line":368},[299,565,524],{"class":316},[299,567,489],{"class":527},[299,569,330],{"class":316},[299,571,532],{"class":316},[299,573,574],{"class":316}," null,\n",[299,576,577,579,581,583,585,587,590,592],{"class":301,"line":382},[299,578,524],{"class":316},[299,580,460],{"class":527},[299,582,330],{"class":316},[299,584,532],{"class":316},[299,586,317],{"class":316},[299,588,589],{"class":309},"1",[299,591,330],{"class":316},[299,593,542],{"class":316},[299,595,596,598,600,602,604,606,609,611],{"class":301,"line":396},[299,597,524],{"class":316},[299,599,495],{"class":527},[299,601,330],{"class":316},[299,603,532],{"class":316},[299,605,317],{"class":316},[299,607,608],{"class":309},"2026-11-09T10:00:00Z",[299,610,330],{"class":316},[299,612,542],{"class":316},[299,614,616,618,620,622,624,626,628,630],{"class":301,"line":615},7,[299,617,524],{"class":316},[299,619,499],{"class":527},[299,621,330],{"class":316},[299,623,532],{"class":316},[299,625,317],{"class":316},[299,627,557],{"class":309},[299,629,330],{"class":316},[299,631,542],{"class":316},[299,633,635,637,639,641,643],{"class":301,"line":634},8,[299,636,524],{"class":316},[299,638,506],{"class":527},[299,640,330],{"class":316},[299,642,532],{"class":316},[299,644,646],{"class":645},"sbssI"," 1\n",[299,648,650],{"class":301,"line":649},9,[299,651,652],{"class":316},"}\n",[229,654,655,446,658,661],{},[443,656,657],{},"File",[245,659,660],{},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments\u002F{document_id}","):",[663,664,665,681],"table",{},[666,667,668],"thead",{},[669,670,671,675,678],"tr",{},[672,673,674],"th",{},"Field",[672,676,677],{},"Type",[672,679,680],{},"Meaning",[682,683,684,701,713,726,758,771,791,826,845,866,878,895,910,944,955],"tbody",{},[669,685,686,691,694],{},[687,688,689],"td",{},[245,690,430],{},[687,692,693],{},"string",[687,695,696,697,700],{},"The file's UUID (",[245,698,699],{},"document_id"," in routes).",[669,702,703,708,710],{},[687,704,705],{},[245,706,707],{},"external_id",[687,709,693],{},[687,711,712],{},"Your stable key for the file within the drive, at most 1,024 UTF-8 bytes. Uploads usually set it to the file's relative path.",[669,714,715,720,723],{},[687,716,717],{},[245,718,719],{},"filename",[687,721,722],{},"string or null",[687,724,725],{},"The file's name.",[669,727,728,733,735],{},[687,729,730],{},[245,731,732],{},"source_format",[687,734,722],{},[687,736,737,738,453,741,453,744,453,747,260,750,753,754,757],{},"The upload format: ",[245,739,740],{},"pdf",[245,742,743],{},"docx",[245,745,746],{},"txt",[245,748,749],{},"md",[245,751,752],{},"file","; ",[245,755,756],{},"text"," for text records added as JSON.",[669,759,760,765,768],{},[687,761,762],{},[245,763,764],{},"source_bytes",[687,766,767],{},"integer, string or null",[687,769,770],{},"Size of the original file.",[669,772,773,778,788],{},[687,774,775],{},[245,776,777],{},"text_status",[687,779,780,453,782,453,785],{},[245,781,756],{},[245,783,784],{},"none",[245,786,787],{},"processing",[687,789,790],{},"Whether the file's text can be read with the text route.",[669,792,793,798,800],{},[687,794,795],{},[245,796,797],{},"text_status_reason",[687,799,722],{},[687,801,802,803,806,807,810,811,813,814,260,817,820,821,825],{},"Why there is no text: ",[245,804,805],{},"no_text_layer"," (a PDF or DOCX without text), ",[245,808,809],{},"not_text_format"," (a file stored as format ",[245,812,752],{},"), ",[245,815,816],{},"extraction_failed",[245,818,819],{},"too_large_to_index"," (over the ",[233,822,824],{"href":823},"\u002Freference\u002Flimits#reading-and-writing-files","text-reading limits",").",[669,827,828,833,835],{},[687,829,830],{},[245,831,832],{},"latest_revision",[687,834,693],{},[687,836,837,838,840,841,844],{},"The current revision. Its strong ",[245,839,434],{}," (such as ",[245,842,843],{},"\"3\"",") guards the next change.",[669,846,847,852,854],{},[687,848,849],{},[245,850,851],{},"content_revision",[687,853,693],{},[687,855,856,857,859,860,863,864,236],{},"The revision of the file's current bytes. A read of the original accepts any revision from this one to ",[245,858,832],{}," in ",[245,861,862],{},"If-Match",". A replacement, move, rename or deletion needs ",[245,865,832],{},[669,867,868,873,875],{},[687,869,870],{},[245,871,872],{},"folder_id",[687,874,722],{},[687,876,877],{},"The folder, or null at the top level.",[669,879,880,885,888],{},[687,881,882],{},[245,883,884],{},"metadata",[687,886,887],{},"object",[687,889,890,891,894],{},"Your labels, plus ",[245,892,893],{},"media.*"," facts the service reads from media files.",[669,896,897,905,907],{},[687,898,899,453,902],{},[245,900,901],{},"operation_id",[245,903,904],{},"operation_state",[687,906,693],{},[687,908,909],{},"The processing operation for the current revision.",[669,911,912,917,919],{},[687,913,914],{},[245,915,916],{},"kind",[687,918,722],{},[687,920,921,453,923,453,926,453,929,453,932,453,935,453,938,260,941,236],{},[245,922,740],{},[245,924,925],{},"document",[245,927,928],{},"presentation",[245,930,931],{},"spreadsheet",[245,933,934],{},"image",[245,936,937],{},"video",[245,939,940],{},"audio",[245,942,943],{},"other",[669,945,946,950,952],{},[687,947,948],{},[245,949,495],{},[687,951,722],{},[687,953,954],{},"When the file was first added.",[669,956,957,962,964],{},[687,958,959],{},[245,960,961],{},"updated_at",[687,963,722],{},[687,965,966],{},"When the current revision was accepted (last modified).",[229,968,969],{},"Responses can also carry fields not listed here; ignore fields you do not use.",[285,971,973],{"id":972},"drives","Drives",[975,976,978,979],"h3",{"id":977},"get-v1workspacesworkspace_iddrives","GET ",[245,980,981],{},"\u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fdrives",[229,983,984,985,988,989,992,993,453,995,453,997,999,1000,236],{},"List drives. Query: ",[245,986,987],{},"limit"," (1 to 100, default 50), ",[245,990,991],{},"cursor",". Each entry has ",[245,994,430],{},[245,996,456],{},[245,998,460],{}," and ",[245,1001,1002],{},"etag",[975,1004,1006,1007],{"id":1005},"post-v1workspacesworkspace_iddrives","POST ",[245,1008,981],{},[229,1010,1011,1012,1015,1016,1018,1019,1022],{},"Create a drive. Requires ",[245,1013,1014],{},"Idempotency-Key",". Body: ",[245,1017,456],{}," (required, 1 to 120 characters). ",[443,1020,1021],{},"201",": the new drive.",[975,1024,978,1026],{"id":1025},"get-v1drivesdrive_id",[245,1027,1028],{},"\u002Fv1\u002Fdrives\u002F{drive_id}",[229,1030,1031,1032,1035,1036,476],{},"Read a drive. ",[443,1033,1034],{},"200",": the drive, with its ",[245,1037,434],{},[975,1039,1041,1042],{"id":1040},"patch-v1drivesdrive_id","PATCH ",[245,1043,1028],{},[229,1045,1046,1047,1015,1049,1051,1052,1054],{},"Rename a drive. Requires ",[245,1048,862],{},[245,1050,456],{}," (1 to 120 characters). ",[443,1053,1034],{},": the updated drive.",[975,1056,1058,1059],{"id":1057},"delete-v1drivesdrive_id","DELETE ",[245,1060,1028],{},[229,1062,1063,1064,999,1066,1068,1069,1072],{},"Delete a drive. Requires ",[245,1065,1014],{},[245,1067,862],{},". ",[443,1070,1071],{},"204"," with no body.",[1074,1075,1076,1083,1096,1103],"ul",{},[1077,1078,1079,1080,236],"li",{},"Without a body, the drive must be empty; otherwise the request returns 409 ",[245,1081,1082],{},"drive_not_empty",[1077,1084,1085,1086,1089,1090,1093,1094,236],{},"A signed-in person (not an API key or MCP connection) can permanently delete a drive with everything in it by sending ",[245,1087,1088],{},"{\"delete_contents\": true, \"confirm_name\": \"\u003Cthe drive's exact name>\"}",". Access closes at once. A name that does not match returns 400 ",[245,1091,1092],{},"invalid_name",". Where this option is not offered, the request returns 404 ",[245,1095,272],{},[1077,1097,1098,1099,1102],{},"A drive with work in progress returns 409 ",[245,1100,1101],{},"drive_busy",": wait, then retry with the same key.",[1077,1104,1105,1106,1109],{},"The workspace's default drive returns 409 ",[245,1107,1108],{},"default_drive_in_use",": choose another default first.",[975,1111,978,1113],{"id":1112},"get-v1drivesdrive_idusage",[245,1114,1115],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fusage",[229,1117,1118,1119,532],{},"Read how many files and bytes a drive holds. ",[443,1120,1034],{},[663,1122,1123,1133],{},[666,1124,1125],{},[669,1126,1127,1129,1131],{},[672,1128,674],{},[672,1130,677],{},[672,1132,680],{},[682,1134,1135,1147,1158,1170,1182],{},[669,1136,1137,1141,1144],{},[687,1138,1139],{},[245,1140,472],{},[687,1142,1143],{},"integer",[687,1145,1146],{},"Files in the drive, not counting the trash.",[669,1148,1149,1153,1155],{},[687,1150,1151],{},[245,1152,764],{},[687,1154,1143],{},[687,1156,1157],{},"Bytes of those files.",[669,1159,1160,1165,1167],{},[687,1161,1162],{},[245,1163,1164],{},"deleted_document_count",[687,1166,1143],{},[687,1168,1169],{},"Files in the trash that have not been removed yet.",[669,1171,1172,1177,1179],{},[687,1173,1174],{},[245,1175,1176],{},"deleted_source_bytes",[687,1178,1143],{},[687,1180,1181],{},"Bytes of the files in the trash.",[669,1183,1184,1189,1191],{},[687,1185,1186],{},[245,1187,1188],{},"stored_bytes",[687,1190,1143],{},[687,1192,1193,1195,1196,1198,1199,236],{},[245,1194,764],{}," plus ",[245,1197,1176],{},": what the drive holds towards its ",[233,1200,1202],{"href":1201},"\u002Freference\u002Flimits#drive-limits","size limit",[229,1204,1205,1206,1208],{},"Every byte count is a whole number of bytes of original file content. Storage is billed in decimal gigabytes: 1 GB is 1,000,000,000 bytes. A deleted file stays in the deleted fields and in ",[245,1207,1188],{}," until its hour in the trash has passed and it is removed, which can take a little longer than the hour.",[229,1210,1211,1212,1215,1216,236],{},"A workspace API key or a signed-in member who can read the drive can read its usage. A sandbox token, and a key limited to one drive or to imports, cannot (403 ",[245,1213,1214],{},"forbidden","). A drive that does not support this yet returns 409 ",[245,1217,1218],{},"not_supported_on_this_drive",[975,1220,1006,1222],{"id":1221},"post-v1drivesdrive_idmove",[245,1223,1224],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fmove",[229,1226,1227,1228,753,1230,1232,1233,1236,1237,236],{},"Move a drive to another workspace of the same organization. Requires ",[245,1229,1014],{},[245,1231,862],{}," is optional. Body: ",[245,1234,1235],{},"workspace_id"," (required). Only a signed-in admin of both workspaces can move a drive; API keys and MCP connections cannot. Files are not copied: the old workspace's members and keys lose access, and the new workspace's gain it. A workspace's default drive, or a drive another feature depends on, returns 409 ",[245,1238,1239],{},"relationship_conflict",[229,1241,1242,482,1244,453,1246,453,1248,999,1251,236],{},[443,1243,1034],{},[245,1245,430],{},[245,1247,1235],{},[245,1249,1250],{},"previous_workspace_id",[245,1252,460],{},[975,1254,978,1256],{"id":1255},"get-v1workspacesworkspace_iddefault-drive",[245,1257,1258],{},"\u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fdefault-drive",[229,1260,1261,1262,999,1265,236],{},"Read the workspace's default drive: ",[245,1263,1264],{},"default_drive_id",[245,1266,460],{},[975,1268,1270,1271],{"id":1269},"put-v1workspacesworkspace_iddefault-drive","PUT ",[245,1272,1258],{},[229,1274,1275,1276,999,1278,1015,1280,1283,1284,482,1286,999,1288,1290,1291,236],{},"Choose the default drive. Requires ",[245,1277,1014],{},[245,1279,862],{},[245,1281,1282],{},"drive_id"," (required). ",[443,1285,1034],{},[245,1287,1264],{},[245,1289,460],{},". A drive that is not active in this workspace returns 409 ",[245,1292,1293],{},"default_drive_unavailable",[285,1295,1297],{"id":1296},"folders","Folders",[975,1299,978,1301],{"id":1300},"get-v1drivesdrive_idfolders",[245,1302,1303],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffolders",[229,1305,1306],{},"List the folders directly inside one folder.",[663,1308,1309,1318],{},[666,1310,1311],{},[669,1312,1313,1316],{},[672,1314,1315],{},"Query",[672,1317,680],{},[682,1319,1320,1329,1344,1359],{},[669,1321,1322,1326],{},[687,1323,1324],{},[245,1325,489],{},[687,1327,1328],{},"The folder to list; omit for the drive's top level.",[669,1330,1331,1336],{},[687,1332,1333],{},[245,1334,1335],{},"sort",[687,1337,1338,1340,1341,1343],{},[245,1339,430],{}," (default) or ",[245,1342,456],{}," (case-insensitive).",[669,1345,1346,1351],{},[687,1347,1348],{},[245,1349,1350],{},"order",[687,1352,1353,1340,1356,236],{},[245,1354,1355],{},"asc",[245,1357,1358],{},"desc",[669,1360,1361,1367],{},[687,1362,1363,453,1365],{},[245,1364,987],{},[245,1366,991],{},[687,1368,1369],{},"1 to 100, default 50.",[229,1371,1372,1373,453,1375,453,1377,453,1379,453,1381,999,1383,1385,1386,999,1389,1392,1393,1396,1397,1400],{},"Each entry has ",[245,1374,430],{},[245,1376,456],{},[245,1378,489],{},[245,1380,460],{},[245,1382,1002],{},[245,1384,495],{},", and may carry ",[245,1387,1388],{},"folder_count",[245,1390,1391],{},"file_count"," (each counted up to 1,000), ",[245,1394,1395],{},"item_count"," (up to 2,000) and ",[245,1398,1399],{},"counts_capped"," (true when a count stopped at its cap).",[975,1402,1006,1404],{"id":1403},"post-v1drivesdrive_idfolders",[245,1405,1303],{},[229,1407,1408,1409,236],{},"Create a folder. Requires ",[245,1410,1014],{},[663,1412,1413,1427],{},[666,1414,1415],{},[669,1416,1417,1419,1421,1424],{},[672,1418,674],{},[672,1420,677],{},[672,1422,1423],{},"Presence",[672,1425,1426],{},"Guidance",[682,1428,1429,1443],{},[669,1430,1431,1435,1437,1440],{},[687,1432,1433],{},[245,1434,456],{},[687,1436,693],{},[687,1438,1439],{},"Required",[687,1441,1442],{},"1 to 120 characters.",[669,1444,1445,1449,1451,1454],{},[687,1446,1447],{},[245,1448,489],{},[687,1450,722],{},[687,1452,1453],{},"Optional",[687,1455,1456],{},"The parent folder; null or omitted for the top level.",[229,1458,1459,1461,1462,1465,1466,236],{},[443,1460,1021],{},": the folder. A sibling folder with the same name returns 409 ",[245,1463,1464],{},"duplicate_name",". Folders nest at most 64 levels and a folder path holds at most 1,024 bytes; deeper returns 400 ",[245,1467,1468],{},"folder_too_deep",[975,1470,1006,1472],{"id":1471},"post-v1drivesdrive_idfoldersensure",[245,1473,1474],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffolders\u002Fensure",[229,1476,1477,1478,1015,1480,1483,1484,482,1486,1488,1489,999,1491,236],{},"Create a folder tree in one call. Requires ",[245,1479,1014],{},[245,1481,1482],{},"{\"paths\": [\"reports\u002F2026\u002Fq3\"]}",", at most 500 paths of at most 64 names each (5,000 names in all). Missing folders are created and existing ones reused. ",[443,1485,1034],{},[245,1487,1296],{},", each with ",[245,1490,499],{},[245,1492,430],{},[975,1494,978,1496],{"id":1495},"get-v1drivesdrive_idfoldersfolder_id",[245,1497,1498],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffolders\u002F{folder_id}",[229,1500,1501,1502,1504,1505,476],{},"Read a folder. ",[443,1503,1034],{},": the folder, with its ",[245,1506,434],{},[975,1508,1041,1510],{"id":1509},"patch-v1drivesdrive_idfoldersfolder_id",[245,1511,1498],{},[229,1513,1514,1515,236],{},"Rename a folder, move it under another folder of the same drive, or both. Its files and subfolders go with it. Requires ",[245,1516,862],{},[663,1518,1519,1531],{},[666,1520,1521],{},[669,1522,1523,1525,1527,1529],{},[672,1524,674],{},[672,1526,677],{},[672,1528,1423],{},[672,1530,1426],{},[682,1532,1533,1545],{},[669,1534,1535,1539,1541,1543],{},[687,1536,1537],{},[245,1538,456],{},[687,1540,693],{},[687,1542,1453],{},[687,1544,1442],{},[669,1546,1547,1551,1553,1555],{},[687,1548,1549],{},[245,1550,489],{},[687,1552,722],{},[687,1554,1453],{},[687,1556,1557],{},"The new parent; null moves the folder to the top level.",[229,1559,1560,1562,1563,1566,1567,1569,1570,825],{},[443,1561,1034],{},": the folder. A folder cannot move into itself or one of its subfolders (409 ",[245,1564,1565],{},"folder_cycle","), past 64 levels (400 ",[245,1568,1468],{},"), or onto a sibling's name (409 ",[245,1571,1464],{},[975,1573,978,1575],{"id":1574},"get-v1drivesdrive_idfoldersfolder_idsummary",[245,1576,1577],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffolders\u002F{folder_id}\u002Fsummary",[229,1579,1580,1581,482,1583,1585,1586,1589,1590,1593,1594,1597],{},"Count what is in a folder and everything below it, for example before deleting it. ",[443,1582,1034],{},[245,1584,1296],{}," (counting this one), ",[245,1587,1588],{},"documents"," (files), ",[245,1591,1592],{},"bytes"," (size of the files counted) and ",[245,1595,1596],{},"capped"," (true when a count stopped at 10,000; the folder holds more).",[975,1599,1058,1601],{"id":1600},"delete-v1drivesdrive_idfoldersfolder_id",[245,1602,1498],{},[229,1604,1605,1606,999,1608,236],{},"Delete a folder. Requires ",[245,1607,1014],{},[245,1609,862],{},[1074,1611,1612,1621],{},[1077,1613,1614,1615,1617,1618,236],{},"An empty folder: ",[443,1616,1071],{}," with no body. A folder that is not empty returns 409 ",[245,1619,1620],{},"folder_not_empty",[1077,1622,1623,1624,1627,1628,1631,1632,453,1634,999,1637,1640],{},"With ",[245,1625,1626],{},"?recursive=true",", the folder, its subfolders and every file in them: ",[443,1629,1630],{},"202"," with ",[245,1633,901],{},[245,1635,1636],{},"folders_total",[245,1638,1639],{},"documents_total",". The folders disappear at once; delete the files with the step route below.",[975,1642,1006,1644],{"id":1643},"post-v1drivesdrive_idfolder-deletionsdeletion_idstep",[245,1645,1646],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffolder-deletions\u002F{deletion_id}\u002Fstep",[229,1648,1649,1650,1653,1654,1656,1657,1660,1661,1663,1664,482,1666,453,1668,446,1671,260,1674,813,1677,453,1679,999,1681,1684,1685,1687,1688,236],{},"Delete the next batch of up to 200 files of a recursive folder deletion. ",[245,1651,1652],{},"deletion_id"," is the ",[245,1655,901],{}," from the 202 above. Send ",[245,1658,1659],{},"{}"," with a new ",[245,1662,1014],{}," each time. ",[443,1665,1034],{},[245,1667,901],{},[245,1669,1670],{},"state",[245,1672,1673],{},"running",[245,1675,1676],{},"finished",[245,1678,1636],{},[245,1680,1639],{},[245,1682,1683],{},"documents_deleted",". Repeat until ",[245,1686,1670],{}," is ",[245,1689,1676],{},[285,1691,22],{"id":1692},"find-files",[975,1694,978,1696],{"id":1695},"get-v1drivesdrive_idfiles",[245,1697,1698],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffiles",[229,1700,1701],{},"List files by path, or find them with a glob pattern.",[663,1703,1704,1712],{},[666,1705,1706],{},[669,1707,1708,1710],{},[672,1709,1315],{},[672,1711,680],{},[682,1713,1714,1745,1758],{},[669,1715,1716,1721],{},[687,1717,1718],{},[245,1719,1720],{},"pattern",[687,1722,1723,1724,999,1727,1730,1731,1734,1735,999,1738,1741,1742,1744],{},"Optional glob, 1 to 500 characters. ",[245,1725,1726],{},"*",[245,1728,1729],{},"?"," stay within a folder, ",[245,1732,1733],{},"**"," crosses folders, ",[245,1736,1737],{},"[a-z]",[245,1739,1740],{},"{a,b}"," work. A pattern without ",[245,1743,503],{}," matches file names at any depth.",[669,1746,1747,1751],{},[687,1748,1749],{},[245,1750,872],{},[687,1752,1753,1754,1757],{},"Optional folder ID, or ",[245,1755,1756],{},"root"," for files at the top level.",[669,1759,1760,1766],{},[687,1761,1762,453,1764],{},[245,1763,987],{},[245,1765,991],{},[687,1767,1768,1769,1772],{},"1 to 100, default 50. Send ",[245,1770,1771],{},"next_cursor"," back with the same other parameters.",[229,1774,1775,482,1777,453,1780,999,1782,992,1785,453,1787,1789,1790,813,1792,453,1794,453,1796,453,1799,1802,1803,999,1806,1809,1810,1812,1813,1816],{},[443,1776,1034],{},[245,1778,1779],{},"data",[245,1781,1771],{},[245,1783,1784],{},"complete",[245,1786,699],{},[245,1788,499],{}," (the file's ",[245,1791,707],{},[245,1793,719],{},[245,1795,872],{},[245,1797,1798],{},"format",[245,1800,1801],{},"size_bytes"," (of the original file), ",[245,1804,1805],{},"revision",[245,1807,1808],{},"searchable"," (whether processing has finished). Follow ",[245,1811,1771],{}," until it is null; ",[245,1814,1815],{},"complete: false"," means the call stopped before covering the whole drive, and a page can be empty while a cursor remains.",[229,1818,1819,1820,236],{},"To find conflict and other recovery copies, use ",[245,1821,1822],{},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Frecovery-files",[975,1824,978,1826],{"id":1825},"get-v1drivesdrive_iddocuments",[245,1827,1828],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments",[229,1830,1831,1832,1834,1835,1837,1838,453,1840,1842,1843,236],{},"List files with their full details. Query: ",[245,1833,872],{}," (omit for all files, ",[245,1836,1756],{}," for files at the top level), ",[245,1839,987],{},[245,1841,991],{},". Each entry has the ",[233,1844,1846],{"href":1845},"#resources","file fields",[975,1848,978,1850],{"id":1849},"get-v1workspacesworkspace_iddocuments",[245,1851,1852],{},"\u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fdocuments",[229,1854,1855,1856,1858,1859,453,1861,453,1863,453,1865,453,1867,453,1869,453,1871,260,1873,813,1875,453,1877,992,1879,453,1881,453,1883,453,1886,453,1888,453,1890,453,1892,453,1894,453,1896,453,1898,453,1900,453,1902,999,1904,236],{},"List files of one kind across the workspace's drives you can read, newest first. Query: ",[245,1857,916],{}," (required: ",[245,1860,740],{},[245,1862,925],{},[245,1864,928],{},[245,1866,931],{},[245,1868,934],{},[245,1870,937],{},[245,1872,940],{},[245,1874,943],{},[245,1876,987],{},[245,1878,991],{},[245,1880,430],{},[245,1882,1282],{},[245,1884,1885],{},"drive_name",[245,1887,872],{},[245,1889,707],{},[245,1891,719],{},[245,1893,732],{},[245,1895,764],{},[245,1897,916],{},[245,1899,832],{},[245,1901,884],{},[245,1903,495],{},[245,1905,961],{},[975,1907,978,1909],{"id":1908},"get-v1drivesdrive_iddocumentsdocument_id",[245,1910,1911],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments\u002F{document_id}",[229,1913,1914,1915,1917,1918,1920,1921,1923,1924,236],{},"Read one file. ",[443,1916,1034],{},": the ",[233,1919,1846],{"href":1845},", with a strong ",[245,1922,434],{}," for ",[245,1925,832],{},[285,1927,1929],{"id":1928},"read-files","Read files",[975,1931,1933],{"id":1932},"read-text-by-lines-or-bytes","Read text by lines or bytes",[229,1935,1936,1939,1940,1687,1942,1944],{},[245,1937,1938],{},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments\u002F{document_id}\u002Ftext"," reads a file's text. It works for files whose ",[245,1941,777],{},[245,1943,756],{},": TXT, Markdown, and the text of PDF and DOCX files.",[663,1946,1947,1955],{},[666,1948,1949],{},[669,1950,1951,1953],{},[672,1952,1315],{},[672,1954,680],{},[682,1956,1957,1970,1983],{},[669,1958,1959,1967],{},[687,1960,1961,453,1964],{},[245,1962,1963],{},"start_line",[245,1965,1966],{},"line_count",[687,1968,1969],{},"Read by lines: the first line (from 1) and how many, up to 2,000. The byte limit may end a page sooner.",[669,1971,1972,1980],{},[687,1973,1974,453,1977],{},[245,1975,1976],{},"offset",[245,1978,1979],{},"length",[687,1981,1982],{},"Read by bytes: the first byte (from 0) of the UTF-8 text and how many, up to 32,768.",[669,1984,1985,1989],{},[687,1986,1987],{},[245,1988,1805],{},[687,1990,1991,1992,1995],{},"Optional. Answer 412 ",[245,1993,1994],{},"stale_version"," if the file's latest revision is different.",[229,1997,1998,1999,1631,2002,453,2004,453,2006,453,2009,999,2012,2015,2016,999,2019,2022,2023,1631,2026,453,2028,2030,2031,453,2033,999,2035,2038,2039,999,2041,236],{},"Without parameters, the route returns the first lines. A line read answers ",[245,2000,2001],{},"mode: \"lines\"",[245,2003,756],{},[245,2005,1963],{},[245,2007,2008],{},"end_line",[245,2010,2011],{},"next_line",[245,2013,2014],{},"total_lines"," (null when unknown); a line longer than the byte limit is cut, with ",[245,2017,2018],{},"line_truncated: true",[245,2020,2021],{},"next_offset"," where it continues. A byte read answers ",[245,2024,2025],{},"mode: \"bytes\"",[245,2027,756],{},[245,2029,1976],{}," (moved forward past a split character), ",[245,2032,1979],{},[245,2034,2021],{},[245,2036,2037],{},"total_bytes",". Both carry ",[245,2040,699],{},[245,2042,1805],{},[975,2044,2046],{"id":2045},"read-or-stream-the-original-file","Read or stream the original file",[229,2048,2049,2052,2053,236],{},[245,2050,2051],{},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments\u002F{document_id}\u002Fsource"," returns the file's current original bytes. Files added as JSON text records have no original and return 404 ",[245,2054,2055],{},"source_unavailable",[663,2057,2058,2067],{},[666,2059,2060],{},[669,2061,2062,2065],{},[672,2063,2064],{},"Header or query",[672,2066,680],{},[682,2068,2069,2103,2113,2131],{},[669,2070,2071,2076],{},[687,2072,2073],{},[245,2074,2075],{},"Range",[687,2077,2078,2079,453,2082,260,2085,2088,2089,2092,2093,1631,2096,2099,2100,236],{},"One byte range: ",[245,2080,2081],{},"bytes=a-b",[245,2083,2084],{},"bytes=a-",[245,2086,2087],{},"bytes=-n",". Answers 206 with ",[245,2090,2091],{},"Content-Range",". A range that starts at or past the end returns 400 ",[245,2094,2095],{},"invalid_json",[245,2097,2098],{},"details.field"," ",[245,2101,2102],{},"range",[669,2104,2105,2110],{},[687,2106,2107],{},[245,2108,2109],{},"If-Range",[687,2111,2112],{},"Serve the range only while this ETag still matches; otherwise the whole file.",[669,2114,2115,2119],{},[687,2116,2117],{},[245,2118,862],{},[687,2120,2121,2122,2124,2125,2127,2128,2130],{},"Answer 412 ",[245,2123,1994],{}," unless the tag names a revision from ",[245,2126,851],{}," to ",[245,2129,832],{},", so a reader never mixes two versions of the bytes.",[669,2132,2133,2138],{},[687,2134,2135],{},[245,2136,2137],{},"disposition",[687,2139,2140,2143],{},[245,2141,2142],{},"inline"," shows images, audio, video, PDF and plain text in place; anything else is an attachment.",[229,2145,2146,2149],{},[245,2147,2148],{},"HEAD"," on the same route returns the size and ETag without the body.",[975,2151,2153],{"id":2152},"make-a-signed-link","Make a signed link",[229,2155,2156,2157,2160,2161,2164,2165,2167,2168,2171],{},"For a program that cannot send an ",[245,2158,2159],{},"Authorization"," header, such as ",[245,2162,2163],{},"ffmpeg",", a media player or ",[245,2166,306],{}," in a sandbox, ",[245,2169,2170],{},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments\u002F{document_id}\u002Fsource\u002Flink"," makes a short-lived URL.",[663,2173,2174,2186],{},[666,2175,2176],{},[669,2177,2178,2180,2182,2184],{},[672,2179,674],{},[672,2181,677],{},[672,2183,1423],{},[672,2185,1426],{},[682,2187,2188,2205],{},[669,2189,2190,2195,2197,2199],{},[687,2191,2192],{},[245,2193,2194],{},"ttl_seconds",[687,2196,1143],{},[687,2198,1453],{},[687,2200,2201,2202,236],{},"60 to 3,600 seconds; 900 when omitted. A link made from a CLI sign-in lasts at most 300 seconds. Outside the range returns 400 ",[245,2203,2204],{},"invalid_expiry",[669,2206,2207,2211,2218,2220],{},[687,2208,2209],{},[245,2210,2137],{},[687,2212,2213,453,2215],{},[245,2214,2142],{},[245,2216,2217],{},"attachment",[687,2219,1453],{},[687,2221,2222,2224,2225,2227],{},[245,2223,2217],{}," (default) downloads the file; ",[245,2226,2142],{}," shows passive types in place.",[229,2229,2230,482,2232,453,2235,446,2238,813,2241,453,2244,999,2246,2248,2249,999,2251,2253,2254,2256,2257,2259],{},[443,2231,1021],{},[245,2233,2234],{},"url",[245,2236,2237],{},"method",[245,2239,2240],{},"GET",[245,2242,2243],{},"expires_at",[245,2245,1801],{},[245,2247,1002],{},". The URL answers ",[245,2250,2240],{},[245,2252,2148],{},", with ",[245,2255,2075],{},", for this one file and the version current when the link was made. After the file changes, it returns 412 ",[245,2258,1994],{},": make a new link. Treat a link like a password. A sandbox token cannot make links.",[285,2261,2263],{"id":2262},"change-files","Change files",[229,2265,2266,2267,2269],{},"Every change to a file checks the revision you read, so nothing is overwritten by accident. If the file changed since, the change is refused with 412 ",[245,2268,1994],{}," and nothing is written. Read the file again, then decide whether your change still applies.",[229,2271,2272,2273,532],{},"To replace a text record, or to move, rename or delete a file, send the revision in ",[245,2274,862],{},[1074,2276,2277,2296,2305],{},[1077,2278,2279,2281,2282,2284,2285,2287,2288,2291,2292,2295],{},[245,2280,862],{}," holds one entity tag: the file's ",[245,2283,434],{}," as you read it, which is its ",[245,2286,832],{}," in quotation marks, such as ",[245,2289,2290],{},"\"7\"",". A weak tag (",[245,2293,2294],{},"W\u002F\"7\"",") names the same revision.",[1077,2297,2298,2299,2301,2302,236],{},"Without ",[245,2300,862],{},", the request returns 428 ",[245,2303,2304],{},"precondition_required",[1077,2306,2307,2308,2310,2311,2313],{},"Any other value, such as ",[245,2309,1726],{},", a list of tags or a tag that is not a revision, returns 412 ",[245,2312,1994],{},", as an older revision does.",[229,2315,2316,2317,2320,2321,236],{},"A text edit and a replacement upload carry the revision in the body, as ",[245,2318,2319],{},"expected_revision",". Changing a folder works the same way with the folder's ",[245,2322,434],{},[229,2324,2325,2326,2328,2329,2331,2332,2334],{},"A new file needs an ",[245,2327,707],{}," that the drive does not have yet. Adding a text record or preparing an upload with an ",[245,2330,707],{}," that already exists returns 428 ",[245,2333,2304],{}," and changes nothing. To change the existing file, read it, then replace that revision.",[975,2336,2338],{"id":2337},"edit-text-in-place","Edit text in place",[229,2340,2341,2344,2345,2347,2348,236],{},[245,2342,2343],{},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments\u002F{document_id}\u002Fedits"," replaces exact pieces of text in a TXT or Markdown file, or a file stored as format ",[245,2346,752],{}," whose bytes are UTF-8 text. Requires ",[245,2349,1014],{},[290,2351,2353],{"className":510,"code":2352,"language":512,"meta":295,"style":295},"{\n  \"expected_revision\": \"7\",\n  \"edits\": [\n    {\"old\": \"Refunds within 30 days.\", \"new\": \"Refunds within 45 days.\"}\n  ]\n}\n",[245,2354,2355,2359,2378,2392,2434,2439],{"__ignoreMap":295},[299,2356,2357],{"class":301,"line":302},[299,2358,519],{"class":316},[299,2360,2361,2363,2365,2367,2369,2371,2374,2376],{"class":301,"line":336},[299,2362,524],{"class":316},[299,2364,2319],{"class":527},[299,2366,330],{"class":316},[299,2368,532],{"class":316},[299,2370,317],{"class":316},[299,2372,2373],{"class":309},"7",[299,2375,330],{"class":316},[299,2377,542],{"class":316},[299,2379,2380,2382,2385,2387,2389],{"class":301,"line":354},[299,2381,524],{"class":316},[299,2383,2384],{"class":527},"edits",[299,2386,330],{"class":316},[299,2388,532],{"class":316},[299,2390,2391],{"class":316}," [\n",[299,2393,2394,2397,2399,2402,2404,2406,2408,2411,2413,2416,2418,2421,2423,2425,2427,2430,2432],{"class":301,"line":368},[299,2395,2396],{"class":316},"    {",[299,2398,330],{"class":316},[299,2400,2401],{"class":305},"old",[299,2403,330],{"class":316},[299,2405,532],{"class":316},[299,2407,317],{"class":316},[299,2409,2410],{"class":309},"Refunds within 30 days.",[299,2412,330],{"class":316},[299,2414,2415],{"class":316},",",[299,2417,317],{"class":316},[299,2419,2420],{"class":305},"new",[299,2422,330],{"class":316},[299,2424,532],{"class":316},[299,2426,317],{"class":316},[299,2428,2429],{"class":309},"Refunds within 45 days.",[299,2431,330],{"class":316},[299,2433,652],{"class":316},[299,2435,2436],{"class":301,"line":382},[299,2437,2438],{"class":316},"  ]\n",[299,2440,2441],{"class":301,"line":396},[299,2442,652],{"class":316},[663,2444,2445,2457],{},[666,2446,2447],{},[669,2448,2449,2451,2453,2455],{},[672,2450,674],{},[672,2452,677],{},[672,2454,1423],{},[672,2456,1426],{},[682,2458,2459,2475],{},[669,2460,2461,2465,2467,2469],{},[687,2462,2463],{},[245,2464,2319],{},[687,2466,693],{},[687,2468,1439],{},[687,2470,2471,2472,2474],{},"The ",[245,2473,832],{}," you read.",[669,2476,2477,2481,2484,2486],{},[687,2478,2479],{},[245,2480,2384],{},[687,2482,2483],{},"array",[687,2485,1439],{},[687,2487,2488,2489,2491,2492,2494],{},"1 to 100 edits, applied in order. Each ",[245,2490,2401],{}," (non-empty) must occur exactly once in the text as the earlier edits left it; ",[245,2493,2420],{}," replaces it.",[229,2496,2497,2498,2500,2501,453,2504,453,2506,453,2509,453,2511,999,2514,2517,2518,2521,2522,2524,2525,2528,2529,2532,2533,2536,2537,2540],{},"All edits apply or none do. ",[443,2499,1630],{},": the edit's ",[245,2502,2503],{},"upload_id",[245,2505,901],{},[245,2507,2508],{},"base_revision",[245,2510,1801],{},[245,2512,2513],{},"sha256",[245,2515,2516],{},"replacements",", plus ",[245,2519,2520],{},"committed_revision"," once known. An ",[245,2523,2401],{}," that does not occur returns 409 ",[245,2526,2527],{},"edit_text_not_found","; one that occurs more than once returns 409 ",[245,2530,2531],{},"edit_text_not_unique",". A file that is not UTF-8 text returns 400 ",[245,2534,2535],{},"edit_not_text",", and one larger than 8 MiB returns 413 ",[245,2538,2539],{},"edit_too_large",": write it by bytes or upload a new version. A retry with the same key and body replays the first answer.",[975,2542,2544],{"id":2543},"write-bytes-at-an-offset","Write bytes at an offset",[229,2546,2547,2550,2551,453,2554,2557,2558,2560,2561,236],{},[245,2548,2549],{},"PATCH \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments\u002F{document_id}\u002Fsource"," writes the request body into the file's original as a new version. Send ",[245,2552,2553],{},"Content-Type: application\u002Foctet-stream",[245,2555,2556],{},"Content-Length",", an ",[245,2559,1014],{},", and the file's ETag in ",[245,2562,862],{},[663,2564,2565,2573],{},[666,2566,2567],{},[669,2568,2569,2571],{},[672,2570,1315],{},[672,2572,680],{},[682,2574,2575,2584,2599],{},[669,2576,2577,2581],{},[687,2578,2579],{},[245,2580,1976],{},[687,2582,2583],{},"Write at this byte. At most the current size: a write cannot leave a gap.",[669,2585,2586,2591],{},[687,2587,2588],{},[245,2589,2590],{},"append=true",[687,2592,2593,2594,260,2596,236],{},"Write at the end of the file. Give ",[245,2595,1976],{},[245,2597,2598],{},"append",[669,2600,2601,2606],{},[687,2602,2603],{},[245,2604,2605],{},"truncate",[687,2607,2608],{},"Optional. Cut the file to this many bytes first; at most the current size.",[229,2610,2611,2612,2615,2616,2619,2620,825],{},"A request body holds at most 64 MiB (413 ",[245,2613,2614],{},"body_too_large","); send larger edits as several requests. The result still counts toward the ",[233,2617,2618],{"href":213},"file size limit"," (413 ",[245,2621,2622],{},"file_too_large",[290,2624,2626],{"className":292,"code":2625,"language":294,"meta":295,"style":295},"curl -X PATCH \"https:\u002F\u002Fapi.flashdrive.space\u002Fv1\u002Fdrives\u002F$DRIVE_ID\u002Fdocuments\u002F$DOCUMENT_ID\u002Fsource?append=true\" \\\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: log-append-1\" \\\n  -H \"If-Match: $DOCUMENT_ETAG\" \\\n  --data-binary @new-lines.log\n",[245,2627,2628,2658,2672,2684,2696,2709,2725],{"__ignoreMap":295},[299,2629,2630,2632,2634,2637,2639,2642,2645,2648,2651,2654,2656],{"class":301,"line":302},[299,2631,306],{"class":305},[299,2633,310],{"class":309},[299,2635,2636],{"class":309}," PATCH",[299,2638,317],{"class":316},[299,2640,2641],{"class":309},"https:\u002F\u002Fapi.flashdrive.space\u002Fv1\u002Fdrives\u002F",[299,2643,2644],{"class":323},"$DRIVE_ID",[299,2646,2647],{"class":309},"\u002Fdocuments\u002F",[299,2649,2650],{"class":323},"$DOCUMENT_ID",[299,2652,2653],{"class":309},"\u002Fsource?append=true",[299,2655,330],{"class":316},[299,2657,333],{"class":323},[299,2659,2660,2662,2664,2666,2668,2670],{"class":301,"line":336},[299,2661,339],{"class":309},[299,2663,317],{"class":316},[299,2665,344],{"class":309},[299,2667,347],{"class":323},[299,2669,330],{"class":316},[299,2671,333],{"class":323},[299,2673,2674,2676,2678,2680,2682],{"class":301,"line":354},[299,2675,339],{"class":309},[299,2677,317],{"class":316},[299,2679,361],{"class":309},[299,2681,330],{"class":316},[299,2683,333],{"class":323},[299,2685,2686,2688,2690,2692,2694],{"class":301,"line":368},[299,2687,339],{"class":309},[299,2689,317],{"class":316},[299,2691,2553],{"class":309},[299,2693,330],{"class":316},[299,2695,333],{"class":323},[299,2697,2698,2700,2702,2705,2707],{"class":301,"line":382},[299,2699,339],{"class":309},[299,2701,317],{"class":316},[299,2703,2704],{"class":309},"Idempotency-Key: log-append-1",[299,2706,330],{"class":316},[299,2708,333],{"class":323},[299,2710,2711,2713,2715,2718,2721,2723],{"class":301,"line":396},[299,2712,339],{"class":309},[299,2714,317],{"class":316},[299,2716,2717],{"class":309},"If-Match: ",[299,2719,2720],{"class":323},"$DOCUMENT_ETAG",[299,2722,330],{"class":316},[299,2724,333],{"class":323},[299,2726,2727,2730],{"class":301,"line":615},[299,2728,2729],{"class":309},"  --data-binary",[299,2731,2732],{"class":309}," @new-lines.log\n",[229,2734,2735,482,2737,453,2739,453,2741,453,2743,453,2745,999,2747,2517,2749,2751,2752,236],{},[443,2736,1630],{},[245,2738,2503],{},[245,2740,901],{},[245,2742,2508],{},[245,2744,1976],{},[245,2746,1801],{},[245,2748,2513],{},[245,2750,2520],{}," once known. Retrying with the same key and bytes replays the write; the same key with other bytes returns 409 ",[245,2753,2754],{},"idempotency_conflict",[975,2756,2758],{"id":2757},"move-or-rename-a-file","Move or rename a file",[229,2760,2761,2764,2765,236],{},[245,2762,2763],{},"PATCH \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments\u002F{document_id}"," with the file's ETag in ",[245,2766,862],{},[663,2768,2769,2781],{},[666,2770,2771],{},[669,2772,2773,2775,2777,2779],{},[672,2774,674],{},[672,2776,677],{},[672,2778,1423],{},[672,2780,1426],{},[682,2782,2783,2796],{},[669,2784,2785,2789,2791,2793],{},[687,2786,2787],{},[245,2788,872],{},[687,2790,722],{},[687,2792,1453],{},[687,2794,2795],{},"The destination folder; null for the top level.",[669,2797,2798,2802,2804,2806],{},[687,2799,2800],{},[245,2801,719],{},[687,2803,693],{},[687,2805,1453],{},[687,2807,2808],{},"At most 255 UTF-8 bytes.",[229,2810,2811,482,2813,999,2815,2818,2819,2821,2822,2824,2825,236],{},[443,2812,1630],{},[245,2814,901],{},[245,2816,2817],{},"documents[].revision"," (the new revision), or ",[443,2820,1034],{}," with the current revision when nothing changes. A name another file in the destination folder already has returns 409 ",[245,2823,1464],{},". The file keeps its ",[245,2826,707],{},[975,2828,2830],{"id":2829},"replace-a-file","Replace a file",[229,2832,2833,2834,999,2836,2838,2839,236],{},"To replace an uploaded file with new bytes, upload the new version naming its ",[245,2835,699],{},[245,2837,2319],{},". See ",[233,2840,2842],{"href":2841},"\u002Freference\u002Fuploads-api#replace-a-specific-revision","replace a specific revision",[975,2844,2846],{"id":2845},"delete-a-file","Delete a file",[229,2848,2849,1631,2852,2854,2855,2857,2858,2860,2861,482,2863,999,2865,2867],{},[245,2850,2851],{},"DELETE \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments\u002F{document_id}",[245,2853,1014],{}," and the file's ETag in ",[245,2856,862],{}," (428 ",[245,2859,2304],{}," without it). ",[443,2862,1630],{},[245,2864,901],{},[245,2866,2817],{},". The file moves to trash for one hour before final deletion. Storage reclamation is asynchronous.",[975,2869,2871],{"id":2870},"delete-many-files","Delete many files",[229,2873,2874,2877,2878,236],{},[245,2875,2876],{},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments\u002Fdelete"," deletes up to 1,000 files in one request. Requires ",[245,2879,1014],{},[290,2881,2883],{"className":292,"code":2882,"language":294,"meta":295,"style":295},"curl -X POST \"https:\u002F\u002Fapi.flashdrive.space\u002Fv1\u002Fdrives\u002F$DRIVE_ID\u002Fdocuments\u002Fdelete\" \\\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: clear-drafts-1\" \\\n  -d '{\"documents\":[{\"id\":\"DOCUMENT_UUID\",\"expected_revision\":\"3\"}]}'\n",[245,2884,2885,2906,2920,2932,2944,2957],{"__ignoreMap":295},[299,2886,2887,2889,2891,2893,2895,2897,2899,2902,2904],{"class":301,"line":302},[299,2888,306],{"class":305},[299,2890,310],{"class":309},[299,2892,313],{"class":309},[299,2894,317],{"class":316},[299,2896,2641],{"class":309},[299,2898,2644],{"class":323},[299,2900,2901],{"class":309},"\u002Fdocuments\u002Fdelete",[299,2903,330],{"class":316},[299,2905,333],{"class":323},[299,2907,2908,2910,2912,2914,2916,2918],{"class":301,"line":336},[299,2909,339],{"class":309},[299,2911,317],{"class":316},[299,2913,344],{"class":309},[299,2915,347],{"class":323},[299,2917,330],{"class":316},[299,2919,333],{"class":323},[299,2921,2922,2924,2926,2928,2930],{"class":301,"line":354},[299,2923,339],{"class":309},[299,2925,317],{"class":316},[299,2927,361],{"class":309},[299,2929,330],{"class":316},[299,2931,333],{"class":323},[299,2933,2934,2936,2938,2940,2942],{"class":301,"line":368},[299,2935,339],{"class":309},[299,2937,317],{"class":316},[299,2939,375],{"class":309},[299,2941,330],{"class":316},[299,2943,333],{"class":323},[299,2945,2946,2948,2950,2953,2955],{"class":301,"line":382},[299,2947,339],{"class":309},[299,2949,317],{"class":316},[299,2951,2952],{"class":309},"Idempotency-Key: clear-drafts-1",[299,2954,330],{"class":316},[299,2956,333],{"class":323},[299,2958,2959,2961,2963,2966],{"class":301,"line":396},[299,2960,399],{"class":309},[299,2962,402],{"class":316},[299,2964,2965],{"class":309},"{\"documents\":[{\"id\":\"DOCUMENT_UUID\",\"expected_revision\":\"3\"}]}",[299,2967,408],{"class":316},[663,2969,2970,2982],{},[666,2971,2972],{},[669,2973,2974,2976,2978,2980],{},[672,2975,674],{},[672,2977,677],{},[672,2979,1423],{},[672,2981,1426],{},[682,2983,2984,2997,3011],{},[669,2985,2986,2990,2992,2994],{},[687,2987,2988],{},[245,2989,1588],{},[687,2991,2483],{},[687,2993,1439],{},[687,2995,2996],{},"1 to 1,000 entries, each file once, in a body of at most 262,144 bytes.",[669,2998,2999,3004,3006,3008],{},[687,3000,3001],{},[245,3002,3003],{},"documents[].id",[687,3005,693],{},[687,3007,1439],{},[687,3009,3010],{},"The file's ID.",[669,3012,3013,3018,3020,3022],{},[687,3014,3015],{},[245,3016,3017],{},"documents[].expected_revision",[687,3019,693],{},[687,3021,1439],{},[687,3023,3024,3025,3027],{},"The revision you read, as a decimal string: what ",[245,3026,862],{}," is to a single delete.",[229,3029,3030,482,3032,453,3034,3036,3037,3039,3040,3042,3043,3046,3047,236],{},[443,3031,1630],{},[245,3033,901],{},[245,3035,1588],{}," (each file's ",[245,3038,430],{}," and the ",[245,3041,1805],{}," the delete left it at), ",[245,3044,3045],{},"usage"," and the drive's ",[245,3048,3049],{},"sequence",[1074,3051,3052,3061,3075,3083,3096,3105],{},[1077,3053,3054,3055,3057,3058,3060],{},"The files are deleted together or not at all. If any entry names a file that does not exist, is already deleted or is in another drive, the request returns 404 ",[245,3056,272],{},"; if any entry's revision is not the file's, it returns 412 ",[245,3059,1994],{},". In both cases nothing is deleted. Read the files again, correct the list and send it with a new key.",[1077,3062,3063,3064,3068,3069,3071,3072,236],{},"Every file goes to the trash and can be restored for one hour, like ",[233,3065,3067],{"href":3066},"#delete-a-file","a single deleted file",". Files deleted by one request share its ",[245,3070,901],{},". Until they are removed they count towards the drive's ",[233,3073,3045],{"href":3074},"#get-v2drivesdrive_idusage",[1077,3076,3077,3078,3080,3081,236],{},"Sending the same body again with the same ",[245,3079,1014],{}," returns the first answer and deletes nothing more, even if the files were restored in between. The same key with a different body returns 409 ",[245,3082,2754],{},[1077,3084,3085,3086,3089,3090,3093,3094,236],{},"More than 1,000 entries, or none, returns 400 ",[245,3087,3088],{},"invalid_batch_size",", with the drive's limit in ",[245,3091,3092],{},"details.max_items",". An entry listed twice returns 400 ",[245,3095,2095],{},[1077,3097,3098,3099,3101,3102,236],{},"A sandbox token cannot use this route (403 ",[245,3100,1214],{},"); it deletes files ",[233,3103,3104],{"href":3066},"one at a time",[1077,3106,3107,3108,3110],{},"A drive that does not support this yet returns 409 ",[245,3109,1218],{},". Delete its files one at a time.",[285,3112,3114],{"id":3113},"conflict-copies","Conflict copies",[229,3116,3117,3118,3120,3121,3124,3125,3128,3129,3132,3133,3135,3136,236],{},"When two edits meet, nothing is overwritten. The API refuses the later write with 412 ",[245,3119,1994],{},". A mounted drive and ",[245,3122,3123],{},"flashdrive push"," handle that refusal for you: your version is kept beside the file as a recovery copy such as ",[245,3126,3127],{},"name (conflict 20261114T010203Z a1b2c3d4).ext",", and the drive's version stays at the original name. Find them with the ",[245,3130,3131],{},"recovery"," tool (or ",[245,3134,1822],{},"). See ",[233,3137,3138],{"href":147},"mount and sync",[229,3140,3141,3142,3146,3147,3151,3152,3155,3156,3159,3160,3164],{},"To resolve a conflict copy, compare it with the original. Merge the changes into the original (an ",[233,3143,3145],{"href":3144},"#edit-text-in-place","edit",", a ",[233,3148,3150],{"href":3149},"#write-bytes-at-an-offset","byte write"," or a ",[233,3153,3154],{"href":2841},"replacement upload"," against the original's current revision), then ",[233,3157,3158],{"href":3066},"delete"," the copy. To keep both, ",[233,3161,3163],{"href":3162},"#move-or-rename-a-file","rename"," the copy.",[285,3166,3168],{"id":3167},"text-records","Text records",[229,3170,3171],{},"You can also add text without a file. Text records have no original bytes; they are read with the text route.",[975,3173,1006,3175],{"id":3174},"post-v1drivesdrive_iddocuments",[245,3176,1828],{},[229,3178,3179,3180,3182,3183,3185,3186,3189],{},"Add text records. Requires ",[245,3181,1014],{},". The body is JSON with a ",[245,3184,1588],{}," array, or NDJSON (",[245,3187,3188],{},"Content-Type: application\u002Fx-ndjson",") with one record object per line. A request holds 1 to 1,000 records and at most 10,000,000 bytes.",[663,3191,3192,3204],{},[666,3193,3194],{},[669,3195,3196,3198,3200,3202],{},[672,3197,674],{},[672,3199,677],{},[672,3201,1423],{},[672,3203,1426],{},[682,3205,3206,3229,3242,3255],{},[669,3207,3208,3212,3214,3216],{},[687,3209,3210],{},[245,3211,707],{},[687,3213,693],{},[687,3215,1439],{},[687,3217,3218,3219,3221,3222,3224,3225,3228],{},"Your stable key, at most 1,024 UTF-8 bytes; distinct within the request and new to the drive. If the drive already has any record's ",[245,3220,707],{},", the whole request returns 428 ",[245,3223,2304],{},"; replace that record with ",[245,3226,3227],{},"PUT"," instead.",[669,3230,3231,3235,3237,3239],{},[687,3232,3233],{},[245,3234,756],{},[687,3236,693],{},[687,3238,1439],{},[687,3240,3241],{},"At most 2,000,000 UTF-8 bytes.",[669,3243,3244,3248,3250,3252],{},[687,3245,3246],{},[245,3247,884],{},[687,3249,887],{},[687,3251,1453],{},[687,3253,3254],{},"Flat labels: at most 64 fields and 8,000 bytes; string, number, boolean or null values.",[669,3256,3257,3261,3263,3265],{},[687,3258,3259],{},[245,3260,872],{},[687,3262,722],{},[687,3264,1453],{},[687,3266,3267],{},"The folder.",[229,3269,3270,482,3272,999,3274,3276,3277,999,3279,3281,3282,3286],{},[443,3271,1630],{},[245,3273,901],{},[245,3275,1588],{}," (each with ",[245,3278,430],{},[245,3280,1805],{},"). Follow the ",[233,3283,3285],{"href":3284},"\u002Freference\u002Fuploads-api#get-v2workspacesworkspace_idoperationsoperation_id","operation"," until it finishes.",[229,3288,3289,3290,3293,3294,3297,3298,3301],{},"The optional ",[245,3291,3292],{},"X-Ingestion-Mode"," header takes ",[245,3295,3296],{},"atomic"," (the default: the whole request is applied together) or ",[245,3299,3300],{},"progressive"," (records are processed in groups, in request order, where your organization has it enabled). Use the same mode when you retry.",[975,3303,1270,3305],{"id":3304},"put-v1drivesdrive_iddocumentsdocument_id",[245,3306,1911],{},[229,3308,3309,3310,999,3312,3314,3315,3317,3318,999,3320,3322,3323,482,3325,999,3327,236],{},"Replace a text record. Requires ",[245,3311,1014],{},[245,3313,862],{}," with the ETag you read. Body: ",[245,3316,756],{}," (required), ",[245,3319,884],{},[245,3321,872],{},". Metadata replaces the earlier labels, and an omitted folder puts the record at the top level. ",[443,3324,1630],{},[245,3326,901],{},[245,3328,1588],{},[229,3330,3331,3332,3334,3335,3228],{},"Use ",[245,3333,3227],{}," only for text records. On an uploaded file it would drop the original bytes and name; replace an uploaded file with an ",[233,3336,3337],{"href":2841},"upload",[285,3339,3341],{"id":3340},"follow-changes","Follow changes",[229,3343,3344,3347],{},[245,3345,3346],{},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fchanges"," lists what changed in a drive since a cursor, so a sync job or a sandbox can keep up without listing the whole drive again.",[3349,3350,3351,3360,3369],"ol",{},[1077,3352,3353,3354,3356,3357,3359],{},"Call it without ",[245,3355,991],{},". It returns no changes and a ",[245,3358,991],{}," for the drive's current position.",[1077,3361,3362,3363,3365,3366,3368],{},"List the drive, then call again with the saved ",[245,3364,991],{},". Optional ",[245,3367,987],{}," is 1 to 1,000 (default 500).",[1077,3370,3371,3372,3374,3375,3378],{},"Apply each change in order, save the new ",[245,3373,991],{},", and call again while ",[245,3376,3377],{},"has_more"," is true. Save the cursor even when there were no changes.",[229,3380,3381],{},"Each change has:",[663,3383,3384,3392],{},[666,3385,3386],{},[669,3387,3388,3390],{},[672,3389,674],{},[672,3391,680],{},[682,3393,3394,3403,3418,3429,3444],{},[669,3395,3396,3400],{},[687,3397,3398],{},[245,3399,3049],{},[687,3401,3402],{},"The drive's change sequence, as a decimal string.",[669,3404,3405,3409],{},[687,3406,3407],{},[245,3408,916],{},[687,3410,3411,3414,3415,3417],{},[245,3412,3413],{},"upsert"," (the file was added or changed, or moved into your folder) or ",[245,3416,3158],{}," (deleted, or moved out of your folder).",[669,3419,3420,3426],{},[687,3421,3422,453,3424],{},[245,3423,699],{},[245,3425,1805],{},[687,3427,3428],{},"The file and its revision.",[669,3430,3431,3439],{},[687,3432,3433,453,3435,453,3437],{},[245,3434,707],{},[245,3436,872],{},[245,3438,719],{},[687,3440,3441,3442,236],{},"The file's key, folder and name; can be null on a ",[245,3443,3158],{},[669,3445,3446,3452],{},[687,3447,3448,453,3450],{},[245,3449,901],{},[245,3451,904],{},[687,3453,3454,3455,236],{},"The processing operation; the state is null on a ",[245,3456,3158],{},[229,3458,3459,3460,236],{},"A change may repeat, but none is lost. A cursor works only for the drive and the token scope that made it; another returns 400 ",[245,3461,3462],{},"invalid_cursor",[229,3464,3465,3466,3469,3470,3472,3473,3476,3477,3479,3480,999,3482,3484,3485,3487,3488,3491,3492,3495],{},"Add ",[245,3467,3468],{},"version=2"," to every call to follow the drive's version 2 feed, which also answers the drive's current ",[245,3471,3049],{},". A sandbox token limited to a folder must use it: without it, the call returns 410 ",[245,3474,3475],{},"api_version_retired",". The CLI and the Python SDK use it on their own. In that feed, a file that moved out of the folder appears as a ",[245,3478,3158],{}," with only ",[245,3481,699],{},[245,3483,1805],{},", and folder entries (a ",[245,3486,916],{}," beginning ",[245,3489,3490],{},"folder_",") may appear. A cursor that cannot be continued returns 410 ",[245,3493,3494],{},"cursor_reset",": start again without a cursor and list the drive or folder.",[285,3497,3499],{"id":3498},"sandbox-tokens","Sandbox tokens",[229,3501,3502,3503,3506,3507,3510],{},"A sandbox token gives a cloud sandbox, container or job access to one drive (optionally one folder and its subfolders), read or read-write, for a limited time. Use it as the sandbox's API key, for example in ",[245,3504,3505],{},"FLASHDRIVE_API_KEY",". The token is returned once: never print or log it, and revoke it when the job ends. See ",[233,3508,3509],{"href":151},"sandboxes"," for the setup.",[975,3512,1006,3514],{"id":3513},"post-v1drivesdrive_idsandbox-tokens",[245,3515,3516],{},"\u002Fv1\u002Fdrives\u002F{drive_id}\u002Fsandbox-tokens",[663,3518,3519,3531],{},[666,3520,3521],{},[669,3522,3523,3525,3527,3529],{},[672,3524,674],{},[672,3526,677],{},[672,3528,1423],{},[672,3530,1426],{},[682,3532,3533,3552,3565,3578],{},[669,3534,3535,3540,3547,3549],{},[687,3536,3537],{},[245,3538,3539],{},"access",[687,3541,3542,453,3545],{},[245,3543,3544],{},"read",[245,3546,251],{},[687,3548,1439],{},[687,3550,3551],{},"What the sandbox can do.",[669,3553,3554,3558,3560,3562],{},[687,3555,3556],{},[245,3557,872],{},[687,3559,722],{},[687,3561,1453],{},[687,3563,3564],{},"Limit the token to this folder and below; omit for the whole drive.",[669,3566,3567,3571,3573,3575],{},[687,3568,3569],{},[245,3570,2194],{},[687,3572,1143],{},[687,3574,1453],{},[687,3576,3577],{},"300 to 43,200 seconds (5 minutes to 12 hours); 3,600 when omitted.",[669,3579,3580,3584,3586,3588],{},[687,3581,3582],{},[245,3583,456],{},[687,3585,693],{},[687,3587,1453],{},[687,3589,1442],{},[229,3591,3592,3594,3595,3598],{},[443,3593,1021],{},": the token's details and ",[245,3596,3597],{},"token",", the secret.",[229,3600,3601,3602,453,3604,453,3606,453,3609,453,3611,453,3613,453,3615,453,3617,446,3620,2099,3622,260,3625,3628,3629,3631,3632,3635,3636,453,3638,453,3640,999,3643,446,3645,453,3648,260,3651,825],{},"Token details: ",[245,3603,430],{},[245,3605,456],{},[245,3607,3608],{},"display_prefix",[245,3610,1235],{},[245,3612,1282],{},[245,3614,872],{},[245,3616,3539],{},[245,3618,3619],{},"minted_by",[245,3621,916],{},[245,3623,3624],{},"user",[245,3626,3627],{},"key",", its ",[245,3630,430],{},", and for a key the ",[245,3633,3634],{},"user_id"," who made it), ",[245,3637,495],{},[245,3639,2243],{},[245,3641,3642],{},"revoked_at",[245,3644,1670],{},[245,3646,3647],{},"live",[245,3649,3650],{},"ended",[245,3652,3653],{},"revoked",[975,3655,978,3657],{"id":3656},"get-v1workspacesworkspace_idsandbox-tokens",[245,3658,3659],{},"\u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fsandbox-tokens",[229,3661,3662,3663,453,3665,446,3667,3669,3670,3673,3674,3676,3677,236],{},"List tokens, newest first, without secrets. Query: ",[245,3664,1282],{},[245,3666,1670],{},[245,3668,3647],{},", the default, or ",[245,3671,3672],{},"recent"," to include tokens that ended or were revoked in the last 30 days), ",[245,3675,987],{}," (1 to 100, default 50) and ",[245,3678,991],{},[975,3680,1006,3682],{"id":3681},"post-v1workspacesworkspace_idsandbox-tokenstoken_idextend",[245,3683,3684],{},"\u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fsandbox-tokens\u002F{token_id}\u002Fextend",[229,3686,3687,3688,3690,3691,3693],{},"Give a live token a new time limit counted from now. Body: ",[245,3689,2194],{}," (300 to 43,200; 3,600 when omitted). ",[443,3692,1034],{},": the token's details.",[975,3695,1058,3697],{"id":3696},"delete-v1workspacesworkspace_idsandbox-tokenstoken_id",[245,3698,3699],{},"\u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fsandbox-tokens\u002F{token_id}",[229,3701,3702,3703,3693],{},"Revoke a token at once. The sandbox's next request is refused. ",[443,3704,1034],{},[975,3706,3708],{"id":3707},"rules","Rules",[1074,3710,3711,3725,3728,3731,3776],{},[1077,3712,3713,3714,3716,3717,3719,3720,260,3722,3724],{},"Make tokens with a workspace API key or as a signed-in user. A ",[245,3715,251],{}," token needs a ",[245,3718,251],{}," key, or an ",[245,3721,259],{},[245,3723,263],{}," role.",[1077,3726,3727],{},"A token never lasts longer than the API key that made it, and ends when that key or sign-in ends or its person loses access to the workspace.",[1077,3729,3730],{},"A token cannot make links or other tokens, and it can call only a fixed set of drive, folder, file, upload, operation and change-feed routes on its own drive. Other routes refuse it.",[1077,3732,3733,3734,3736,3737,453,3740,453,3743,453,3746,453,3749,453,3752,453,3755,453,3758,453,3761,453,3764,453,3767,453,3770,999,3773,236],{},"A ",[245,3735,251],{}," token cannot write agent instruction files or folders, in any letter case: ",[245,3738,3739],{},"AGENTS.md",[245,3741,3742],{},"CLAUDE.md",[245,3744,3745],{},"GEMINI.md",[245,3747,3748],{},"SKILL.md",[245,3750,3751],{},".cursorrules",[245,3753,3754],{},".windsurfrules",[245,3756,3757],{},"copilot-instructions.md",[245,3759,3760],{},".github",[245,3762,3763],{},".claude",[245,3765,3766],{},".codex",[245,3768,3769],{},".cursor",[245,3771,3772],{},".vscode",[245,3774,3775],{},".agents",[1077,3777,3778,3779,1631,3782,236],{},"Past the workspace's token limits, the API returns 429 ",[245,3780,3781],{},"auth_rate_limited",[245,3783,3784],{},"Retry-After",[3786,3787,3788],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}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}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":295,"searchDepth":336,"depth":336,"links":3790},[3791,3792,3793,3812,3830,3839,3844,3852,3853,3859,3860],{"id":287,"depth":336,"text":288},{"id":438,"depth":336,"text":439},{"id":972,"depth":336,"text":973,"children":3794},[3795,3797,3799,3800,3802,3804,3806,3808,3810],{"id":977,"depth":354,"text":3796},"GET \u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fdrives",{"id":1005,"depth":354,"text":3798},"POST \u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fdrives",{"id":1025,"depth":354,"text":449},{"id":1040,"depth":354,"text":3801},"PATCH \u002Fv1\u002Fdrives\u002F{drive_id}",{"id":1057,"depth":354,"text":3803},"DELETE \u002Fv1\u002Fdrives\u002F{drive_id}",{"id":1112,"depth":354,"text":3805},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fusage",{"id":1221,"depth":354,"text":3807},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fmove",{"id":1255,"depth":354,"text":3809},"GET \u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fdefault-drive",{"id":1269,"depth":354,"text":3811},"PUT \u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fdefault-drive",{"id":1296,"depth":336,"text":1297,"children":3813},[3814,3816,3818,3820,3822,3824,3826,3828],{"id":1300,"depth":354,"text":3815},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffolders",{"id":1403,"depth":354,"text":3817},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffolders",{"id":1471,"depth":354,"text":3819},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffolders\u002Fensure",{"id":1495,"depth":354,"text":3821},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffolders\u002F{folder_id}",{"id":1509,"depth":354,"text":3823},"PATCH \u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffolders\u002F{folder_id}",{"id":1574,"depth":354,"text":3825},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffolders\u002F{folder_id}\u002Fsummary",{"id":1600,"depth":354,"text":3827},"DELETE \u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffolders\u002F{folder_id}",{"id":1643,"depth":354,"text":3829},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffolder-deletions\u002F{deletion_id}\u002Fstep",{"id":1692,"depth":336,"text":22,"children":3831},[3832,3834,3836,3838],{"id":1695,"depth":354,"text":3833},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Ffiles",{"id":1825,"depth":354,"text":3835},"GET \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments",{"id":1849,"depth":354,"text":3837},"GET \u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fdocuments",{"id":1908,"depth":354,"text":660},{"id":1928,"depth":336,"text":1929,"children":3840},[3841,3842,3843],{"id":1932,"depth":354,"text":1933},{"id":2045,"depth":354,"text":2046},{"id":2152,"depth":354,"text":2153},{"id":2262,"depth":336,"text":2263,"children":3845},[3846,3847,3848,3849,3850,3851],{"id":2337,"depth":354,"text":2338},{"id":2543,"depth":354,"text":2544},{"id":2757,"depth":354,"text":2758},{"id":2829,"depth":354,"text":2830},{"id":2845,"depth":354,"text":2846},{"id":2870,"depth":354,"text":2871},{"id":3113,"depth":336,"text":3114},{"id":3167,"depth":336,"text":3168,"children":3854},[3855,3857],{"id":3174,"depth":354,"text":3856},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments",{"id":3304,"depth":354,"text":3858},"PUT \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fdocuments\u002F{document_id}",{"id":3340,"depth":336,"text":3341},{"id":3498,"depth":336,"text":3499,"children":3861},[3862,3864,3866,3868,3870],{"id":3513,"depth":354,"text":3863},"POST \u002Fv1\u002Fdrives\u002F{drive_id}\u002Fsandbox-tokens",{"id":3656,"depth":354,"text":3865},"GET \u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fsandbox-tokens",{"id":3681,"depth":354,"text":3867},"POST \u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fsandbox-tokens\u002F{token_id}\u002Fextend",{"id":3696,"depth":354,"text":3869},"DELETE \u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Fsandbox-tokens\u002F{token_id}",{"id":3707,"depth":354,"text":3708},"Organize drives and folders, read and write files, follow changes, and give sandboxes access.",null,{},{"title":196},{"title":196,"description":3871},"631VRqxZDeJK0RZ-2nmJ_CQ2JaNe_ss_YDGshhc8_Yk",[3878,3880],{"title":192,"path":193,"stem":194,"description":3879,"children":-1},"Manage organizations, workspaces, members, invitations, and API keys while signed in.",{"title":200,"path":201,"stem":202,"description":3881,"children":-1},"Upload files of any type, replace a specific revision, and follow processing.",1795366546182]