connect
Set default YouTube playlist
Sets the default playlist used when publishing videos for this account. When a post does not specify a playlistId, the default playlist is not automatically used (it is stored for client-side convenience).
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
accountIdstring
defaultPlaylistIdstring
defaultPlaylistName?string
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.updateYoutubeDefaultPlaylist({ path: { accountId: 'account_abc123', }, body: { defaultPlaylistId: 'defaultplaylist_abc123', },});console.log(data);{
"success": true
}Empty
{
"error": "Unauthorized"
}Empty
List YouTube playlists GET
Returns the playlists available for a connected YouTube account. Use this to get a playlist ID when creating a YouTube post with the playlistId field.
List posts GET
Returns a paginated list of posts. Published posts include platformPostUrl with the public URL on each platform.