Sonos Music API > removeFromContainer

Sonos uses removeFromContainer to remove content from a playlist. See Add playlists for details.

Request parameters

Name Type Description
id string(128) Unique ID of the playlist.
indices string List of comma-delimited indexes of the tracks to remove. These indexes are the current track positions in the playlist. The list can also include ranges. For example: 1,2,4-7.
updateId string(128) Future implementation. Can be used to handle editing collisions and data concurrency validation.

Response

Name Type Description
updateId string(128) Future implementation. Can be used to handle editing collisions and data concurrency validation.

Details

As with the root playlists node, a playlist (a mediaCollection object) must have specific attributes that enable playlist editing features in Sonos firmware. Specifically, it must have readOnly=false to enable removeFromContainer functionality. For example:

Sample request

Sample response