# games.gamesgamesgamesgames.refreshPublisherCounts

> Queue a job that recounts how many games each organization is credited as publishing. Search uses the counts to tell established publishers from fan teams. Admins only. One refresh runs at a time.

- Kind: procedure
- Authority: gamesgamesgamesgames.games
- Lexicon: 1
- Published by [gamesgamesgamesgames.games](https://lexicon.garden/identity/did:web:gamesgamesgamesgames.games), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.refreshPublisherCounts)
- [Schema JSON](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.refreshPublisherCounts/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.refreshPublisherCounts/analytics)

## Procedure (`games.gamesgamesgamesgames.refreshPublisherCounts`)

Type: procedure · POST

### Input (application/json)

- `dryRun` (boolean): Count only, and report what would change.
  - Constraints: default: false

### Output (application/json)

- `alreadyQueued` (boolean): True when a refresh was already pending or running; jobId is that job, and nothing new was queued.
- `jobId` (string, required)
  - Constraints: maxLength: 128
- `status` (string): The existing job's status, when alreadyQueued is true.
  - Constraints: maxLength: 32, knownValues: pending | running

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Queue a job that recounts how many games each organization is credited as publishing. Search uses the counts to tell established publishers from fan teams. Admins only. One refresh runs at a time.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "dryRun": {
              "default": false,
              "description": "Count only, and report what would change.",
              "type": "boolean"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "alreadyQueued": {
              "description": "True when a refresh was already pending or running; jobId is that job, and nothing new was queued.",
              "type": "boolean"
            },
            "jobId": {
              "maxLength": 128,
              "type": "string"
            },
            "status": {
              "description": "The existing job's status, when alreadyQueued is true.",
              "knownValues": [
                "pending",
                "running"
              ],
              "maxLength": 32,
              "type": "string"
            }
          },
          "required": [
            "jobId"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "games.gamesgamesgamesgames.refreshPublisherCounts",
  "lexicon": 1
}
```
