add custom playlist actions, #48

This commit is contained in:
Simon 2024-11-08 15:00:36 +07:00
parent d01e1bdf1d
commit fe139572fc
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -22,6 +22,15 @@ Subscribe/Unsubscribe to a list of playlists:
**POST**: Update Playlist item, only valid for custom playlists
This expects an object with a key `video_id` to indicate the video in the playlist to modify and a key `action` to represent what to do. The action can be:
- `create`: Create a video entry in the playlist
- `remove`: Remove a video from the playlist
- `up`: Move a video up
- `down`: Move a video down
- `top`: Move a video to the top
- `bottom`: Move a video to the bottom
Delete playlist, metadata only:
**DELETE** `/api/playlist/<playlist_id>/`
Delete playlist, also delete all videos in playlist: