Youtube: delete playlist items formatting

I assume this is failing for me because of formatting but I’m not sure. I pass a JSON array of video IDs via webhook to be deleted from a playlist. I select the array as shown, and then receive an error, last screenshot



Is this a formatting issue or does this action not delete multiple?

Hello @daniel,

May I ask which action you used to get the Video IDs? Is it List Video?

I have checked the action and it seems working with the list selected

Hello @MichelleBergeron, as you’re familiar with Youtube action, would you mind advice this case?

I sent it via a webhook.

A more broad question might be: what I really want to do is simply delete all the videos in a playlist. The only way I could see to do it is sending a list of video ids, but that doesn’t seem like the best way to do it, really

Hi @daniel,

How about deleting the playlist and create a new one? On another note, I think Pipedream can have an action to list all videos in playlist to help you on this. I have created a ticket here to track it: [ACTION] Youtube - List Playlist videos · Issue #5982 · PipedreamHQ/pipedream · GitHub

1 Like

Ive thought about the delete playlist/recreate thing, possible but Id prefer to not do that. But that action sounds perfect! Thanks!

Hi @daniel. I think the issue has to do with the videoIds. Below is an example of data emitted from the source/trigger New Videos in Playlist. There’s a short videoId under contentDetails that looks like the ids in your array. However, the ID the API is looking for is the long one labeled “id”. I don’t know why Youtube would have two different types of videoIds, but it looks like that’s the case. Lol

1 Like

Interesting, I’ll take a look at that, thanks!

Apparently, it doesn’t want the video id. Suppose the same video is in the playlist two times? That ID apparently is the unique ID for that occurrence of the video within that playlist. Makes sense, I suppose haha

So I got this working but ran into this