games.gamesgamesgamesgames.putPopularity

trezy.codes View official

Documentation

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

main procedure

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

Input

Encodingapplication/json
games array Required

List of games with popularity data to upsert.

Output

Encodingapplication/json
upserted integer Required

Number of records upserted.

Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "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 object

No description available.

Properties

ccu integer Required

Concurrent player count.

minimum: 0
steamId string Required

Steam app ID.

View raw schema
{
  "type": "object",
  "required": [
    "steamId",
    "ccu"
  ],
  "properties": {
    "ccu": {
      "type": "integer",
      "minimum": 0,
      "description": "Concurrent player count."
    },
    "steamId": {
      "type": "string",
      "description": "Steam app ID."
    }
  }
}

Lexicon Garden

@