Configure auto-swap
configure_auto_swapEnable or disable automatic thumbnail rotation and set drop rules, QPTR thresholds, and run frequency. Reduce failed runs by checking the queue first, as rotation needs queued replacements.
Instructions
Turn a game's automatic thumbnail rotation on or off and set its rules. Turning it on schedules the next run and clears any self-disabled flag. Every field is optional: only what is passed changes. Rotation pulls replacements from the queue, so a game with an empty queue will run and do nothing — check get_queue before turning it on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | Yes | Game name or universe id. | |
| enabled | No | Turn rotation on or off. | |
| dropCount | No | How many of the worst live thumbnails to drop per run. | |
| qptrThreshold | No | QPTR floor as a percentage, not a fraction: 2 means 2%. Live thumbnails under it are candidates to drop. | |
| frequencyMinutes | No | Minutes between runs. The scheduler ticks every few minutes, so anything under that is rounded up in practice. | |
| instantDropMinImpressions | No | How many impressions a thumbnail needs before a bad QPTR is trusted enough to drop it immediately. |