Web: Common: Api: Added fileCopyAs action

This commit is contained in:
Ilya Oleshko 2021-11-29 16:31:40 +03:00
parent 7a5fbcbc2a
commit 0b9a9b633d

View File

@ -797,3 +797,15 @@ export function checkFillFormDraft(fileId) {
data: { fileId },
});
}
export function fileCopyAs(fileId, title, folderId, enableExternalExt) {
return request({
method: "post",
url: `file/${fileId}/copyas`,
data: {
title,
folderId,
enableExternalExt,
},
});
}