{
"id": "org.lichess.puzzle.getDaily",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "NoDailyPuzzle",
"description": "No puzzle could be selected for the day."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"day",
"puzzle"
],
"properties": {
"day": {
"type": "string",
"description": "the UTC day the puzzle belongs to, as YYYY-MM-DD."
},
"puzzle": {
"ref": "org.lichess.puzzle.defs#puzzleView",
"type": "ref"
}
}
},
"encoding": "application/json"
},
"description": "Get the puzzle of the day: one shared puzzle per UTC day, selected to target the current average rating of established players and to favor popular, frequently-played puzzles. The pick is stable for the whole UTC day and never repeats a previous day's puzzle."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}