Open
Description
Adding a track to a playlist cannot be done efficiently.
I am using the API to add tracks to a playlist. Currently my procedure is as follows:
- GET the enitre playlist including all tracks and all track information. (
https://api.soundcloud.com/playlists/<playlist_id>
) - From the response of the GET, take the ID of each track.
- PUT
https://api.soundcloud.com/playlists/<playlist_id>
withtracks
set to the enitre list of track ids + the track id of the track to be added.
This is very inefficient because:
- I need to make two requests just to add a track to a playlist.
- The first request response can be huge for large playlists especially because all details for each track are included.
Ideally we would like to just have a seperate endpoint to add a track to a playlist. However, having a way to just fetch all tracks in a playlist without all detailed information of the tracks would already be a huge improvement.
Is there some way to do this?
Activity