Restore File from Trash
Restore File from Trash
Restores a file that was previously moved to trash.
Method: POST
URL: {{base_url}}/files/{{file_id}}/restore
Authentication
This endpoint requires authentication.
- Recommended: Bearer token in the
Authorizationheader:
Notes:
-
If your collection/folder already sets auth, this request can inherit auth.
-
Ensure
{{access_token}}is a valid, non-expired token.
Required variables
Set these variables at the environment or collection level:
Path Parameters
Example request URL:
Sample request
Sample success response
A successful request typically returns HTTP 200 OK.
Common errors
-
400 Bad Request
- Invalid or missing
file_id
- Invalid or missing
-
401 Unauthorized / 403 Forbidden
-
Missing/invalid
Authorizationheader -
Expired
{{access_token}}
-
-
404 Not Found
-
File with the given
file_iddoes not exist -
File is not in trash
-
Notes
-
This endpoint restores a soft-deleted file from trash.
-
The file will be returned to its original folder.
-
Once restored, the
deleted_atfield becomes null, indicating the file is active again.
