Set your tastes
const url = 'https://api.thebgdb.org/v1/account/preferences';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"designers":["uwe-rosenberg"],"mechanics":["worker-placement"],"categories":["farming"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.thebgdb.org/v1/account/preferences \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "designers": [ "uwe-rosenberg" ], "mechanics": [ "worker-placement" ], "categories": [ "farming" ] }'Replaces the liked terms of each kind the body names, by slug (as in GET /designers, /mechanics, /families and /categories); a kind left out stays as it is, and an empty list clears it. Up to 30 of each kind. {} changes nothing but records that the member was asked. A term removed from the catalog later disappears from the member’s tastes.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
{ "designers": [ "uwe-rosenberg" ], "mechanics": [ "worker-placement" ], "categories": [ "farming" ]}Responses
Section titled “Responses”The member’s tastes, as now saved.
object
object
object
How many games it is on.
object
How many games it is on.
object
How many games it is on.
object
How many games it is on.
When the member first saved their tastes or skipped the website’s question; null if never.
Example
{ "data": { "designers": [ { "slug": "uwe-rosenberg", "name": "Uwe Rosenberg", "games": 74 } ], "mechanics": [ { "slug": "worker-placement", "name": "Worker Placement", "games": 2210 } ], "families": [], "categories": [ { "slug": "farming", "name": "Farming", "games": 512 } ], "askedAt": "2026-11-22T10:04:11.120Z" }}A kind is not a list of slugs (invalid_preferences), lists more than the limit (too_many_preferences), or names a slug the catalog does not have (preference_not_found).
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 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"}Too many requests, or too many of these sent today (code says which).
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"}