function createPlaylist
createPlaylist(
userId: string
): Playlist

Creates a playlist owned by userId, for POST /api/playlists, filed under the playlist categories req names. If it is public, it notifies the users its description mentions. It links the attachments the description embeds and broadcasts playlist_created.

Parameters

userId: string

Return Type

Throws

APIException

400 when a category id names no playlist category.

Usage

import { createPlaylist } from "api/services/playlist-service.ts";