Recover files (from Recycle Bin)
POST /nd/api/file/restore_file
POST body parameters
| Parameter | Type | Description |
|---|---|---|
file_ids |
string[] |
File IDs to restore |
restoreAll |
boolean |
True without file_ids restores all items |
Response
Fields listed in the source: code, success.
Confirm the scope before restoring all items. Only retained recycle-bin items can be restored.
Calling the Endpoint
Use Authorization: Bearer <access_token>. GET parameters belong in the URL query; normal business POST requests use JSON. Check HTTP status and then the business result. Confirm array serialization and ambiguous types with the deployment instead of inventing fields.