Reset Password
Check your e-mail for further instructions.
Reset
Name
getfilehistory
Auth
yes
Description
returns event history of a file identified by fileid. File might be a deleted one. The output format is the same as of diff method.
URL
https://api.pcloud.com/getfilehistory
Required
| Parameters | Description |
| fileid | int fileid of a file that history is requested for |
Example
{
"result": 0,
"entries": [
{
"event": "createfile",
"time": "Mon, 14 Oct 2013 03:24:43 +0000",
"diffid": 13924,
"metadata": {
"isshared": true,
"thumb": false,
"contenttype": "video\/mp4",
"size": 0,
"category": 2,
"hash": 14841775194319522618,
"parentfolderid": 397140,
"modified": "Mon, 14 Oct 2013 03:24:43 +0000",
"isfolder": false,
"created": "Mon, 14 Oct 2013 03:24:43 +0000",
"fileid": 2712167,
"id": "f2712167",
"icon": "video",
"name": "GOPR0002.MP4",
"ismine": true
}
},
{
"event": "modifyfile",
"time": "Mon, 14 Oct 2013 04:07:25 +0000",
"diffid": 13927,
"metadata": {
"isshared": true,
"thumb": true,
"contenttype": "video\/mp4",
"size": 1993278633,
"category": 2,
"hash": 4322830267003041431,
"parentfolderid": 397140,
"modified": "Mon, 14 Oct 2013 04:07:25 +0000",
"isfolder": false,
"created": "Mon, 14 Oct 2013 03:24:43 +0000",
"fileid": 2712167,
"id": "f2712167",
"icon": "video",
"name": "GOPR0002.MP4",
"ismine": true
}
}
]
}
| Code | Description |
| 1000 | Log in required. |
| 1029 | Please provide 'fileid'. |
| 2000 | Log in failed. |
| 2009 | File not found. |
| 4000 | Too many login tries from this IP address. |
| 5000 | Internal error. Try again later. |