Add a playlist to another game
const url = 'https://api.thebgdb.org/v1/playlists/7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21/games';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"game":"catan-seafarers"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.thebgdb.org/v1/playlists/7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21/games \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "game": "catan-seafarers" }'Links a listed playlist to one more game. It keeps its title, its votes and its score, shared by every game it is linked to. Adding the address of a listed playlist with POST /games/{id}/playlists does the same. The member’s email address must be confirmed; it counts against the 20 playlists a day.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The playlist’s id.
Example
7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21Request Bodyrequired
Section titled “Request Bodyrequired”object
The game’s id or address (slug).
Example
{ "game": "catan-seafarers"}Responses
Section titled “Responses”The playlist is linked to the game.
object
object
youtube covers YouTube and YouTube Music.
Where to listen, built from the service and the playlist’s id there.
Votes up minus votes down.
How many members voted, either way.
Display name of the member who added it; null for a playlist the catalog imported rather than a member added.
Example
{ "data": { "id": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21", "provider": "spotify", "kind": "playlist", "title": "Island traders: calm medieval folk", "url": "https://open.spotify.com/playlist/37i9dQZF1DX4sWSpwq3LiO", "score": 4, "votes": 6, "submittedBy": "Ana", "createdAt": "2026-11-20T18:04:11.120Z" }}The request has no valid session token.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}The member has not confirmed their email address.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}No playlist has this id, or no game is named game.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}The playlist is already linked to this game, or it is no longer shown.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}Rate limited, more than five posts in a minute, or 20 playlists already added today.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}