Skip to the content
  1. API reference
  2. Read and write a user's library

Update playlist items

PUT/api/{integrationUserUUID}/playlists/{playlistId}/items
CoreAuthBasicDevTokenDocsSessionToken

Check which services support updating playlist items

Modify the order of items within a user's playlist based on the parameters provided in the request body. The reordering process starts from the position specified by rangeStart and encompasses the next rangeLength items. The destination for these reordered items is determined by the insertBefore property (starts with 0).

Examples: - To move the first two items to the end of a playlist containing 10 items, set rangeStart as 0, rangeLength to 2 and insertBefore as 10. - To move the last item to the start of the playlist containing 10 items, set rangeStart to 9, rangeLength to 1 and insertBefore to 0.

Path parameters

integrationUserUUID
uuidrequired

The connected user: the integrationUserUUID from the sign-in callback.

playlistId
stringrequired

ID of the playlist

Request body

application/json · required

rangeStart
number
requiredThe position of the first item to be reordered
rangeLength
number
requiredThe amount of items to be reordered
insertBefore
number
requiredThe position where the items should be inserted

Response

200ok

Errors

404

Your account has no connected user with this uuid, or the item does not exist.

412

The user must sign in again (IntegrationUserNotAuthenticated).

429

Too many requests. Wait for the seconds in Retry-After.