Drive
Zip files and folders
POST/api/v1/drive/zip-jobs
Who can use this: Any signed-in accountAs Markdown
The zip is built in the background and saved as a new file in a folder called Archives at your top level, made the first time it is needed. A folder goes in whole, subfolders and all. The answer is a job id to follow with See if a zip is ready, and the name and place the finished file will have.
Parameters
| Name | Where | What it is |
|---|---|---|
| file_ids | body | Ids of files to put in the zip. Give this, folder_ids, or both.e.g. [41,42] |
| folder_ids | body | Ids of folders to put in the zip, with everything inside them.e.g. [7] |
Good to know
- Ids that aren't yours, and anything in Trash, are quietly left out. With no ids, or nothing left to zip, the answer is 400.
- Two files with the same name both go in, one of them with a number added, such as notes (01).txt.
- If the service that builds zips is down, the answer is 502 or 504; try again later.