Updates a file.
Specify the parentFolderId
parameter to move a file from its current folder to a different folder.
You can only call this method when authenticated as a Wix app or Wix user identity.
function updateFileDescriptor(file: FileDescriptor): Promise<FileDescriptor>;
The file to update.
import { files } from "@wix/media";
async function updateFileDescriptor(file) {
const response = await files.updateFileDescriptor(file);
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.