Playlist api

Is there an api and or http api way to create playlists and add items to playlist?