Files
Bring back a cleared video
Bring back a watched video cleared from storage
POST
A video the user finished is cleared from their storage after their clearWatchedDays setting (the file's clearedAt): it stays in the library and stops counting against the quota. Playing or downloading it brings it back on its own; this does it ahead of time. ready: it is back in storage now and counts again. restoring: Fastwater is downloading it again in transferId (play it as it downloads with POST /transfers/{id}/watch). unavailable: its source is gone; add it again. A file in storage is ready as it is.
bearer files:readheader
AuthorizationBearer <token>An API key, an OAuth access token, or a signed-in session token.
Scope: files:read
id*stringLength
1 <= lengthWhere the file is
application/json- response
state*stringValue in
"ready""restoring""unavailable"transferId*string|nullfile*curl -X POST 'https://fastwater.app/v1/files/string/restore'Example Response
{ "state": "ready", "transferId": "string", "file": { "id": "string", "name": "string", "sizeBytes": 0, "mimeType": "string", "type": "video", "playable": true, "mediaInfo": { "container": "string", "durationSeconds": 0, "bitRate": 0, "video": { "codec": "string", "profile": "string", "width": 0, "height": 0, "pixFmt": "string" }, "audio": [ { "codec": "string", "channels": 0, "language": "string", "title": "string", "default": true } ], "subtitles": [ { "codec": "string", "language": "string", "title": "string", "forced": true, "default": true } ], "playable": true }, "original": { "name": "string", "sizeBytes": 0, "mimeType": "string", "mediaInfo": { "container": "string", "durationSeconds": 0, "bitRate": 0, "video": { "codec": "string", "profile": "string", "width": 0, "height": 0, "pixFmt": "string" }, "audio": [ { "codec": "string", "channels": 0, "language": "string", "title": "string", "default": true } ], "subtitles": [ { "codec": "string", "language": "string", "title": "string", "forced": true, "default": true } ], "playable": true } }, "subtitleCount": 0, "transferId": "string", "folder": "string", "progress": { "fileId": "string", "positionSeconds": 0, "durationSeconds": 0, "completed": true, "clientId": "string", "updatedAt": "2019-08-24T14:15:22Z" }, "expiresAt": "2019-08-24T14:15:22Z", "kept": "self", "clearedAt": "2019-08-24T14:15:22Z", "media": { "titleId": "string", "kind": "movie", "title": "string", "year": 0, "season": 0, "episode": 0, "episodeName": "string", "stillPath": "string", "posterPath": "string", "backdropPath": "string", "logoPath": "string" }, "clutter": true, "thumbnailUrl": "string", "markers": { "intro": { "startSeconds": 0, "endSeconds": 0 }, "credits": { "startSeconds": 0 } }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}