POST

Bulk Restore Files From Trash Bin


Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Bookings Services and Settings
Manage Media Manager
Manage Portfolio
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/site-media/v1/bulk/trash-bin/files/restore

Body Params
fileIdsArray <string>RequiredmaxItems 1000maxLength 1000

IDs of the files to restore from the Media Manager's trash bin.

You can also specify the files' Wix media URLs. For example, ["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]. Learn more about the file ID parameter (SDK | REST).

Response Object
Returns an empty object.
Bulk restore deleted files
Request
cURL
curl -X POST \ 'https://www.wixapis.com/site-media/v1/bulk/trash-bin/files/restore' \ -H 'Authorization: <AUTH>' \ -H 'Content-Type: application/json' \ --data-binary '{ "fileIds": ["4acbb8_7596aeebcf5c41eca01c0d99667ac967.mp3", "3vcbb7_7446aeebcf5c41eca01c0d99665bc866.mp3"] }'
Response
JSON
{}
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?