Reset Password
Check your e-mail for further instructions.
Reset
Name
changepublink
Auth
yes
Description
Modify a specified public link
URL
https://api.pcloud.com/changepublink
Required
| Parameter | Description |
| linkid | int the ID of the link to be changed |
Optional
One or more of the following optional parameters MUST be specified:
| Parameter | Description |
| shortlink | int Setting this will create a short link for the link. The response will contain shortcode and shortlink fields. |
| deleteshortlink | int Setting this will delete the short link associated with the link |
| expire | datetime Sets a new expiration date for the link |
| deleteexpire | datetime If set, deletes link's expiration time (the link will not expire) |
| maxtraffic | int modifies the traffic limit, set to 0 for unlimited |
| maxdownloads | int modifies the downloads limit, set to 0 for unlimited |
| linkpassword | string Sets password for the link. |
Example
{
result: 0
}
| Code | Description |
| 1000 | Log in required. |
| 1013 | Date/time format not understood. |
| 1030 | Please provide 'linkid'. |
| 2000 | Log in failed. |
| 2027 | Invalid or already deleted link. |
| 4000 | Too many login tries from this IP address. |
| 5000 | Internal error. Try again later. |