function removeDumpFromPlaylist
removeDumpFromPlaylist(
playlistId: string,
dumpId: string,
requestingUserId: string,
canModerate: boolean
): void

Takes a dump out of a playlist, for DELETE /api/playlists/:playlistId/dumps/:dumpId, and broadcasts playlist_dumps_updated. A dump that isn't in it is no error.

Parameters

playlistId: string
dumpId: string
requestingUserId: string
canModerate: boolean

Return Type

void

Throws

APIException

404 when there is no such playlist, 403 when the user is neither its owner nor a moderator.

Usage

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