# games.gamesgamesgamesgames.autoAcceptContributions

> Queue a job that applies pending contributions from auto-accept accounts to the catalogue, oldest first. Admins sweep every auto-accept account; an auto-accept account can sweep only its own contributions. Only one sweep per account 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.autoAcceptContributions)
- [Schema JSON](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.autoAcceptContributions/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.autoAcceptContributions/analytics)

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

Type: procedure · POST

### Input (application/json)

- `after` (string): Resume from this cursor. Use the `after` a previous sweep reported.
  - Constraints: maxLength: 4096
- `dryRun` (boolean): Report what would be applied without writing anything.
  - Constraints: default: false
- `limit` (integer): How many pending contributions the job looks at.
  - Constraints: minimum: 1, maximum: 5000, default: 500
- `writes` (string): full writes the game, a verification and a review. minimal writes the game and the review, which is what marks the contribution as no longer pending.
  - Constraints: maxLength: 64, knownValues: full | minimal

### Output (application/json)

- `alreadyQueued` (boolean): True when a sweep for the same account was already pending or running; jobId is that sweep.
- `jobId` (string, required)
  - Constraints: maxLength: 128
- `startedAt` (string · datetime): When the existing sweep started running, when alreadyQueued is true and it has started.
- `status` (string): The existing sweep'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 applies pending contributions from auto-accept accounts to the catalogue, oldest first. Admins sweep every auto-accept account; an auto-accept account can sweep only its own contributions. Only one sweep per account runs at a time.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "after": {
              "description": "Resume from this cursor. Use the `after` a previous sweep reported.",
              "maxLength": 4096,
              "type": "string"
            },
            "dryRun": {
              "default": false,
              "description": "Report what would be applied without writing anything.",
              "type": "boolean"
            },
            "limit": {
              "default": 500,
              "description": "How many pending contributions the job looks at.",
              "maximum": 5000,
              "minimum": 1,
              "type": "integer"
            },
            "writes": {
              "description": "full writes the game, a verification and a review. minimal writes the game and the review, which is what marks the contribution as no longer pending.",
              "knownValues": [
                "full",
                "minimal"
              ],
              "maxLength": 64,
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "alreadyQueued": {
              "description": "True when a sweep for the same account was already pending or running; jobId is that sweep.",
              "type": "boolean"
            },
            "jobId": {
              "maxLength": 128,
              "type": "string"
            },
            "startedAt": {
              "description": "When the existing sweep started running, when alreadyQueued is true and it has started.",
              "format": "datetime",
              "type": "string"
            },
            "status": {
              "description": "The existing sweep's status, when alreadyQueued is true.",
              "knownValues": [
                "pending",
                "running"
              ],
              "maxLength": 32,
              "type": "string"
            }
          },
          "required": [
            "jobId"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "games.gamesgamesgamesgames.autoAcceptContributions",
  "lexicon": 1
}
```
