Files
Restore deleted files
Restore recently deleted files
POST
Up to 500 file IDs from GET /files/deleted. They go back to their folders and count against the storage quota again, so they must all fit (quota_exceeded, 403). A file Fastwater still has is back at once. Otherwise it is back in the library while Fastwater downloads it again from its torrent (downloading): it plays once that finishes, or as it downloads. Auto-delete counts from now. A file with neither stays deleted (unavailable); IDs not in Recently deleted are skipped.
bearer files:writeheader
AuthorizationBearer <token>An API key, an OAuth access token, or a signed-in session token.
Scope: files:write
application/json- body
fileIds*array<>Items
1 <= items <= 500Restored
application/json- response
restored*integerdownloading*integerunavailable*integercurl -X POST 'https://fastwater.app/v1/files/deleted/restore' \ -H 'Content-Type: application/json' \ -d '{ "fileIds": [ "string" ]}'Example Response
{ "restored": 0, "downloading": 0, "unavailable": 0}