Drive
Restore a file from Trash
POST/api/v1/drive/files/:id/restore
Who can use this: Any signed-in accountAs Markdown
The file goes back where it was. If its folder is in Trash too, that folder and any above it come back as well, so the file has somewhere to land; their other contents stay in Trash. Links you shared for it work again.
Parameters
| Name | Where | What it is |
|---|---|---|
| id required | path | The file's id.e.g. 42 |
Good to know
- A file that isn't in your Trash answers 404.