View as Markdown
Google Drive icon

Google Drive ACTION

Update Shared Drive

Update an existing shared drive. See the documentation for more information
  • Action
  • Writes data
  • Destructive
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Google Drive account once, then configure and run Update Shared Drive 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: "google_drive-update-shared-drive",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    google_drive: { authProvisionId: "apn_xxxxxxx" },
    drive: "Drive",
    useDomainAdminAccess: true,
  },
})

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.

Update Shared Drive inputs
Property Type Description
drive Drive string
Select a shared drive to update
Required Dynamic
useDomainAdminAccess Use Domain Admin Access boolean
Issue the request as a domain administrator
Optional
themeId Theme ID string
The theme from which the background image and color will be set. Cannot be set if Color or Background Image Link are used.
Optional Dynamic
backgroundImageLink Background Image Link string
A link to the new background image for the shared drive. Cannot be set if Theme ID is used (it already sets the background image).
Optional
colorRgb Color string
The new color of this shared drive as an RGB hex string. Cannot be set if Theme ID is used (it already sets the color).
Optional
restrictions Restrictions object
A set of restrictions that apply to this shared drive or items inside this shared drive. See restrictions in the Drive resource representation.
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
google_drive-update-shared-drive
Version
0.1.25
App
Google Drive
Authentication
OAuth
Read-only
No
Destructive
Yes
Open world
Yes