Reset Password
Check your e-mail for further instructions.
Reset
Name
savepubzip
Auth
yes
Description
Create a zip archive file of a public link file in the current user filesystem
Same as savezip, but works on public file identified by code
Takes code and optional parameters to define a tree and streams a zip file.
The code could be obtained from:
URL
https://api.pcloud.com/savepubzip
Required
| Parameter | Description |
| code | string either 'code' or 'shortcode' |
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 |
Output
If successful creates the zip archive and returns its metadata.
| Code | Description |
| 1000 | Log in required. |
| 1016 | No full topath or toname/tofolderid provided. |
| 1017 | Invalid 'folderid' provided. |
| 1018 | Invalid 'fileid' provided. |
| 1028 | Please provide link 'code'. |
| 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. |
| 4000 | Too many login tries from this IP address. |
| 5000 | Internal error. Try again later. |
| 5001 | Internal upload error. |
| 7001 | Invalid link 'code'. |
| 7002 | This link is deleted by the owner. |
| 7004 | This link has expired. |
| 7005 | This link has reached its traffic limit. |
| 7006 | This link has reached maximum downloads. |