Playlists

Add an item to a playlist

This adds a song to a playlist. setting check=1 will not add duplicates to the playlist

post/playlists/{playlist_id}/add

Path parameters

playlist_idstring required

Unique identifier of the playlist.

Query parameters

idstring

UID of the object to add to playlist

object_type'song' | 'album' | 'artist' | 'playlist'

Default: song

type'song' | 'album' | 'artist' | 'playlist'

DEPRECATED, use object_type instead. Will be removed in API9

Request body

idstring required

UID of the object to add to playlist

object_type'song' | 'album' | 'artist' | 'playlist'

Default: song

type'song' | 'album' | 'artist' | 'playlist' required

DEPRECATED, use object_type instead. Will be removed in API9

Response

Success

successstring

Changes

Changed in 6 of the 46 revisions of this API.115

    • added the new optional query request parameter object_type

      new-optional-request-parameter

    • added the new optional request property object_type (media type: application/json)

      new-optional-request-property

    • added the new optional request property object_type (media type: application/x-www-form-urlencoded)

      new-optional-request-property

    • query request parameter type was deprecated

      request-parameter-deprecated

    • api operation id playlistAdd was added

      api-operation-id-added

    • added optional request body

      request-body-added-optional

    • the query request parameter id became optional

      request-parameter-became-optional

    • the query request parameter type became optional

      request-parameter-became-optional

    • added the non-success response with the status 401

      response-non-success-status-added

    • added the non-success response with the status 403

      response-non-success-status-added

    • added the non-success response with the status 404

      response-non-success-status-added

    • added the non-success response with the status 500

      response-non-success-status-added

    • removed the non-success response with the status 400

      response-non-success-status-removed

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the non-success response with the status 400

      response-non-success-status-added

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation