post
https://api.fastpix.io/v1/on-demand/playlists
This endpoint creates a new playlist within a specified workspace. A playlist acts as a container for organizing media items either manually or based on filters and metadata.
Playlists can be created in two modes
- Manual: Creates an empty playlist without any initial media items. Use this mode for manual curation, where you add items later in a user-defined sequence.
- Smart: Auto-populates the playlist at creation time based on the filter criteria (for example, a video creation date range) that you provide in the request.
For more details, see Create and manage playlist.
How it works
- When you send a
POSTrequest to this endpoint, FastPix creates a playlist and returns a playlist ID, using which items can be added later in a user-defined sequence. - You can create a smart playlist that is auto-populated based on the metadata in the request body.
Example
An e-learning platform creates a new playlist titled Beginner Python Series through the API. The response returns a unique playlist ID. The platform uses this ID to add a series of video tutorials to the playlist in a defined order. The playlist appears on the frontend as a structured learning path for learners.