POST

Create Folder


Creates a new folder in the Media Manager.

Use the parentFolderId parameter to specify in which existing folder you want the new folder to be created. If no folder is specified, the new folder is created in the media-root folder.

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 Events
Manage Portfolio
Access Verticals by Automations
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/site-media/v1/folders

Body Params
displayNamestringRequiredmaxLength 200

Folder name that appears in the Media Manager.


parentFolderIdstringmaxLength 100

ID of the folder's parent folder.

Response Object
folderFolder

Information about the newly created folder.

Create a folder
Request
cURL
curl -X POST \ 'https://www.wixapis.com/site-media/v1/folders' \ -H 'Authorization: <AUTH>' \ -H 'Content-Type: application/json' \ --data-binary '{ "displayName": "New Folder", "parentFolderId": "25284aa06584441ea94338fdcfbaba12" }'
Response
JSON
{ "folder": { "id": "d147e1ab3e8b4114ad93d13bb9e23540", "displayName": "New Folder", "parentFolderId": "25284aa06584441ea94338fdcfbaba12", "createdDate": "2022-08-30T16:56:29.000Z", "updatedDate": "2022-08-30T16:56:29.000Z", "state": "OK" } }
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?