Retrieves a list of folders in the Media Manager. To retrieve a list of folders within a specific folder in the Media Manager, specify the specific folder's ID in the parentFolderId
parameter. If no folder is specified, the method retrieves a list of folders within the root folder of the Media Manager.
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the folder's parent folder.
Default: media-root
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.
Information about the folders in the requested folder.
The next cursor if it exists.
This example sorts by displayName
in DESC
order with a paging limit of 2.
curl -X GET \
'https://www.wixapis.com/site-media/v1/folders?parentFolderId=25284aa06584441ea94338fdcfbaba12&sort.fieldName=displayName&sort.order=DESC&paging.limit=2' \
-H 'Authorization: <AUTH>'
{
"folders": [
{
"id": "d147e1ab3e8b4114ad93d13bb9e23540",
"displayName": "misc",
"parentFolderId": "25284aa06584441ea94338fdcfbaba12",
"createdDate": "2022-08-30T16:56:29Z",
"updatedDate": "2022-08-30T16:56:29Z",
"state": "OK"
},
{
"id": "5bfba6861eed4f009c6abba0dc8b47db",
"displayName": "images",
"parentFolderId": "25284aa06584441ea94338fdcfbaba12",
"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.