Retrieves a list of folders in the Media Manager's trash bin.
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the folder's parent folder.
Name of the field to sort by.
Sort order.
Maximum number of items to return in the results.
Pointer to the next or previous page in the list of results.
Pass the relevant cursor token from the pagingMetadata
object in the previous call's response.
Not relevant for the first request.
List of folders in the Media Manager's trash bin.
The next cursor if it exists.
This example sorts by updatedDate
in DESC
order with a paging limit of 2.
curl -X GET \
'https://www.wixapis.com/site-media/v1/trash-bin/folders?sort.fieldName=updateDate&sort.order=DESC&paging.limit=2' \
-H 'Authorization: <AUTH>'
{
"folders": [
{
"id": "d147e1ab3e8b4114ad93d13bb9e23540",
"displayName": "New Folder",
"parentFolderId": "trash-root",
"createdDate": "2022-08-30T16:56:29Z",
"updatedDate": "2022-08-30T16:56:29Z",
"state": "OK"
},
{
"id": "5bfba6861eed4f009c6abba0dc8b47db",
"displayName": "New Folder 2",
"parentFolderId": "trash-root",
"createdDate": "2022-04-17T15:37:02Z",
"updatedDate": "2022-04-26T20:09:32Z",
"state": "OK"
}
],
"nextCursor": {
"cursors": {
"next": ""
},
"hasNext": false
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.