Updates a folder.
You can use the parentFolderId
parameter to move a folder from its current parent folder to a different parent folder.
You can only call this method when authenticated as a Wix app or Wix user identity.
Folder ID. Generated when a folder is created in the Media Manager.
Folder to update.
Information about the updated folder.
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"
]
}
}'
{
"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"
}
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.