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.
function updateFolder(_id: string, folder: UpdateFolder): Promise<Folder>;
Folder ID. Generated when a folder is created in the Media Manager.
Folder to update.
import { folders } from "@wix/media";
async function updateFolder(id, folder) {
const response = await folders.updateFolder(id, folder);
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.