games.gamesgamesgamesgames.putPopularity

trezy.codes View official

{
  "id": "games.gamesgamesgamesgames.putPopularity",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "games"
          ],
          "properties": {
            "games": {
              "type": "array",
              "items": {
                "ref": "#gamePopularity",
                "type": "ref"
              },
              "description": "List of games with popularity data to upsert."
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "upserted"
          ],
          "properties": {
            "upserted": {
              "type": "integer",
              "description": "Number of records upserted."
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Upsert game popularity data (concurrent player counts). Requires admin auth."
    },
    "gamePopularity": {
      "type": "object",
      "required": [
        "steamId",
        "ccu"
      ],
      "properties": {
        "ccu": {
          "type": "integer",
          "minimum": 0,
          "description": "Concurrent player count."
        },
        "steamId": {
          "type": "string",
          "description": "Steam app ID."
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}

Validate Record

Validate a record against games.gamesgamesgamesgames.putPopularity

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:4jrld6fwpnwqehtce56qshzv
CID
bafyreiagxittcovlp4djgrxnkwjq5i4twmzsojz7od7dnzkqmon6ughhm4
Indexed At
2026-03-23 17:57 UTC
AT-URI
at://did:plc:4jrld6fwpnwqehtce56qshzv/com.atproto.lexicon.schema/games.gamesgamesgamesgames.putPopularity

Lexicon Garden

@