games.gamesgamesgamesgames.putPopularity

Upsert game popularity data (concurrent player counts). Requires admin auth.

Details · procedure
Kindprocedure
Authoritygamesgamesgamesgames.games
Indexed
cid bafyreiagxittcovlp4djgrxnkwjq5i4twmzsojz7od7dnzkqmon6ughhm4

Checks

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