View as Markdown
YouTube Data icon

YouTube Data ACTION

Update Video Details

Updates a video's metadata. See the documentation for more information
  • Action
  • Writes data
  • Destructive
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's YouTube Data account once, then configure and run Update Video Details 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: "youtube_data_api-update-video-details",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    youtube_data_api: { authProvisionId: "apn_xxxxxxx" },
    videoId: "Video ID",
    title: "Title",
  },
})

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 Video Details inputs
Property Type Description
videoId Video ID string
Select the video to update. E.g. wslno0wDSFQ
Required Dynamic
title Title string
The video's title
Optional
description Description string
The video's description
Optional
tags Tags string[]
A list of keyword tags associated with the video. Tags may contain spaces.
Optional
regionCode Region Code string
The regionCode parameter instructs the API to return results for the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. For example: US, GB, BR
Optional
categoryId Video Category Id string
Select the video's category
Optional Dynamic
onBehalfOfContentOwner On Behalf Of Content Owner string

This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.

The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

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
youtube_data_api-update-video-details
Version
0.0.3
App
YouTube Data
Authentication
OAuth
Read-only
No
Destructive
Yes
Open world
Yes