Reset Password
Check your e-mail for further instructions.
Reset
Name
getcollectionpublink
Auth
yes
Description
Generates a public link to a collection, owned by the current user.
This method has the same optional parameters as getfilepublink.
Note: Public links pointing to a collection have the advantage that are real time image of the collection, while tree links are snapshots.
URL
https://api.pcloud.com/getcollectionpublink
Required
Parameter | Description |
collectionid | int the id of the collection |
Optional
Parameter | Description |
expire | datetime Datetime when the link will stop working |
maxdownloads | int Maximum number of downloads from this folder (even for the same file). |
maxtraffic | int Maximum traffic that this link will consume (in bytes, started downloads will not be cut to fit in this limit) |
shortlink | int If set, a short link will also be generated |
Example
{ "result": 0, "link": "https://my.pcloud.com/#page=publink&code=PUBLIC_LINK_CODE", "code": "PUBLIC_LINK_CODE", "linkid": LINK_ID }
Code | Description |
1000 | Log in required. |
1013 | Date/time format not understood. |
1057 | Please provide 'collectionid'. |
2000 | Log in failed. |
2014 | Please verify your email address to preform this action. |
2065 | Collection not found. |
4000 | Too many login tries from this IP address. |
5000 | Internal error. Try again later. |