StatsHub Docs
Endpoint referenceAdmin

/admin/player-assignments/reconcile

The scope is the union of three optional selectors — explicit player ids, a team, a tournament — so a caller can queue one player or a whole competition in the same shape of request.

POST
/api/v2/admin/player-assignments/reconcile

The scope is the union of three optional selectors — explicit player ids, a team, a tournament — so a caller can queue one player or a whole competition in the same shape of request. Duplicates across selectors are collapsed.

A dry run reports what would be queued without queueing it, and is checked before the empty-scope guard: asking what an empty scope would do is a legitimate question and answers 200, while actually running it is a 400.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/api/v2/admin/player-assignments/reconcile" \  -H "Content-Type: application/json" \  -d '{    "options": {      "batchSize": 0,      "dryRun": true,      "forceRefresh": true    },    "playerIds": [      0.1    ],    "teamId": 0,    "tournamentId": 0  }'
{  "$schema": "https://example.com/schemas/AdminPlayerAssignmentsReconcileOKBody.json",  "batchSize": 0,  "batchesQueued": 0,  "dryRun": true,  "errors": null,  "messageIds": [    "string"  ],  "success": true,  "totalPlayers": 0}