View as Markdown
Zoho WorkDrive icon

Zoho WorkDrive ACTION

Upload File

Upload a new file to your WorkDrive account. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Zoho WorkDrive account once, then configure and run Upload File from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "zoho_workdrive-upload-file",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    zoho_workdrive: { authProvisionId: "apn_xxxxxxx" },
    teamId: "Team ID",
    folderType: "Folder Type",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Upload File inputs
Property Type Description
teamId Team ID string
The unique ID that represents a team.
Required Dynamic
folderType Folder Type string
Whether to retrieve team folders or privatespace folders
Required Dynamic
parentId Parent ID string
The unique ID of the folder where files are to be uploaded. Select a folder to view its subfolders.
Required Dynamic
filename Filename string
The name of the file should be URL encoded with UTF-8 Charset.
Optional
overrideNameExist Override Name Exist boolean
If set as true, a file with the matching name will be uploaded as a top version over the existing file. If set as false, a file with the matching name will have the timestamp added to it on upload.
Optional
content File Path or URL string
Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.pdf).
Required
syncDir SyncDir dir
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
zoho_workdrive-upload-file
Version
0.0.10
App
Zoho WorkDrive
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes