Reset Password
Check your e-mail for further instructions.
Reset
Name
savezip
Auth
yes
Description
Create a zip file in the user's filesystem.
Recognizes the same parameters as getzip without forcedownload and filename.
Expects as parameter a defined tree.
Additionally expects the usual topath or tofolderid+toname.
URL
https://api.pcloud.com/savezip
Optional
Parameter | Description |
timeoffset | string desired time offset |
topath | string path where to save the zip archive |
tofolderid | int foldre id of the folder, where to save the zip archive |
toname | string filename of the desired zip archive |
progresshash | string key to retrieve the progress for the zipping process If you want to see the progres, please pass progresshash, different for every method call. To get the progress use savezipprogress |
Output
If successful creates the zip archive and returns its metadata.
Example
{ result: 0, metadata: { parentfolderid: 0, category: 5, hash: 3415575675870461400, ismine: true, created: "Thu, 03 Oct 2013 09:47:16 +0000", modified: "Thu, 03 Oct 2013 09:47:16 +0000", contenttype: "application/zip", path: "/Simple archive.zip", name: "Simple archive.zip", size: 17675984, isfolder: false, isshared: false, fileid: 1792497, icon: "archive", thumb: false, id: "f1792497" } }
Code | Description |
1000 | Log in required. |
1016 | No full topath or toname/tofolderid provided. |
1017 | Invalid 'folderid' provided. |
1018 | Invalid 'fileid' provided. |
2000 | Log in failed. |
2001 | Invalid file/folder name. |
2002 | A component of parent directory does not exist. |
2003 | Access denied. You do not have permissions to preform this operation. |
2004 | File or folder alredy exists. |
2008 | User is over quota. |
2009 | File not found. |
4000 | Too many login tries from this IP address. |
5000 | Internal error. Try again later. |
5001 | Internal upload error. |