PATCH

Update Folder


Updates a folder.

You can use the parentFolderId parameter to move a folder from its current parent folder to a different parent 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
PATCH
https://www.wixapis.com/site-media/v1/folders/{folder.id}

Path Params
folder.idstringRequired

Folder ID. Generated when a folder is created in the Media Manager.

Body Params
folderFolderRequired

Folder to update.

Response Object
folderFolder

Information about the updated folder.

Update a folder
Request
cURL
curl -X PATCH \ 'https://www.wixapis.com/site-media/v1/folders/12vn4498977596aeebcf5c41eca01c0d99667ac9' \ -H 'Authorization: <AUTH>' \ -H 'Content-Type: application/json' \ -d '{ "folder": { "displayName": "New Folder Name", "parentFolderId": "media-root" }, "fieldMask": { "paths": [ "folder.displayName", "folder.parentFolderId" ] } }'
Response
JSON
{ "folder": { "id": "12vn4498977596aeebcf5c41eca01c0d99667ac9", "displayName": "New Folder Name", "parentFolderId": "media-root", "createdDate": "2022-04-17T21:48:34.000Z", "updatedDate": "2022-08-30T17:09:48.000Z", "state": "OK" } }
Errors
400Invalid Argument

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

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