Reset Password
Check your e-mail for further instructions.
Reset
Name
declineshare
Auth
yes
Description
Decline a share request.
The request can be either identified by sharerequestid as reported by diff or by a code that comes from email.
If the optional parameter block is set, all future share requests from the offering user will be automatically declined.
URL
https://api.pcloud.com/declineshare
Required
Parameter | Description |
sharerequestid | int The id of the share request |
code | string The code that was sent to the user's email |
Optional
Parameter | Description |
block | int If set, all future share requests from the offering user will be automatically declined. |
Example
{ "result": 0 }
Code | Description |
1000 | Log in required. |
1025 | Please provide 'sharerequestid' or 'code' to accept a share. |
2000 | Log in failed. |
2021 | Non existing share request. It might be already accepted or cancelled by the sending user. |
2022 | Wrong user to accept the share. |
4000 | Too many login tries from this IP address. |