googleDrive.moveFile add or remove parent folders for a Drive file.
Example
Inputs
ProvidefileId and at least one value in addParentIds or removeParentIds. A second argument with account selects a Google Account.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Add or remove parent folders for a Drive file.
googleDrive.moveFile add or remove parent folders for a Drive file.
import { automation, onDashboardRun } from "automate.ax"
import { googleDrive } from "automate.ax/google-drive"
export default automation("Move file", () => {
onDashboardRun({ title: "Move file" })
googleDrive.moveFile({
fileId: "file-id",
addParentIds: ["destination-id"],
removeParentIds: ["source-id"],
})
})
fileId and at least one value in addParentIds or removeParentIds. A second argument with account selects a Google Account.