Appearance
Playlists and combined requests
Who: listener (owner, member, source owner); system (smart refresh, expiry).
Entry points
| Kind | Entry |
|---|---|
| REST | POST /playlists, GET /me/playlists, GET /profiles/:profileId/playlists, GET/PATCH/DELETE /playlists/:id, GET/POST /playlists/:id/items, POST …/items/remove, PATCH …/items/:itemId/position, GET/POST …/members, DELETE …/members/:userId, POST …/refresh |
| REST (combined) | POST /playlists/combined, GET /playlists/:id/sources, GET /me/playlist-requests, POST /playlist-requests/:id/decision |
| Follow | POST /follows { targetType: "playlist" } |
| Assistant | save_playlist confirmation card |
| Deep link | playlist, playlistRequest (playlist/:id/requests/:requestId) |
| Push | playlist.collab_request, playlist.collab_decided |
Flow
- Own / collaborative: create, add items, reorder, cover, public/private; add members to co-edit. Event
playlists.playlist.changed→ search index; first time listed → social activity. - Smart: rules →
playlists.smart-refresh(on change) andplaylists.smart-sweep(scheduled). - Combined:
POST /playlists/combined { sources: [playlistIds] }→ playlist pending; every other source owner getsplaylist.collab_request(deep linkplaylistRequest). - Owner decides
POST /playlist-requests/:id/decision { accept | decline }→playlists.source.decided; accepted owners are credited, declined sources removed; requester getsplaylist.collab_decided. playlists.combined-expirydrops requests nobody answered.- Delete →
playlists.playlist.deleted→ removed from search.
Exit states
| State | Code | Actions | Client next |
|---|---|---|---|
| Saved | — | — | — |
| Not allowed | PLAYLIST_FORBIDDEN, PLAYLIST_NOT_EDITABLE, PLAYLIST_NOT_FOUND | — | — |
| Items | PLAYLIST_ITEM_DUPLICATE, PLAYLIST_ITEM_UNAVAILABLE, PLAYLIST_FULL, PLAYLIST_RANK_INVALID | — | — |
| Members | PLAYLIST_MEMBER_EXISTS, PLAYLIST_MEMBER_NOT_FOUND | — | — |
| Smart rules | PLAYLIST_RULES_INVALID | — | — |
| Combined | PLAYLIST_SOURCE_INVALID, PLAYLIST_SOURCE_NOT_FOUND, PLAYLIST_SOURCE_DECIDED | — | Refresh the request |