Add media to a playlist by ID
This endpoint allows you to add one or more media items to an existing playlist. By passing the media ID(s) in the request, the specified media items are appended to the playlist in the order provided.
#### How it works
- When a user sends a PATCH request to this endpoint with the `playlistId` as path parameter and a list of media ID(s) in the request body, FastPix adds the specified media items to the playlist and returns the updated playlist details.
#### Example
An e-learning platform adds new video tutorials to the "Beginner Python Series" playlist by sending their media IDs in the request. The playlist is updated with the new content, ensuring learners have access to the latest tutorials in sequence.
Authentication
AuthorizationBasic
FastPix APIs are secured with Basic Authentication.
Use your Access Token ID as the username and Secret Key as the password in the Authorization header of each API request.
- <b>Username:</b> Access Token ID
- <b>Password:</b> Secret Key
Activate your FastPix account to generate your API credentials. <a href="https://docs.fastpix.io/docs/activate-account" target="_blank">See the guide here</a>
Path parameters
playlistId
The unique id of the playlist you want to perform the operation on.
Request
This endpoint expects an object.
mediaIds
Response
Added media to playlist successfully
success
Shows the request status. Returns true for success and false for failure.
data