1️⃣ Unregistered player(s) after the match can be identified by using API call Get Unregistered People for a Match:
/basketball/matches/{matchId}/persons/unregistered
The call returns the list of persons who participated in the match, yet were unknown to the system. The unregistered player(s) will have a temporary ID with the negative value.
2️⃣ To solve unregistered players API call Resolve an unregistered person to a registered person is required:
/basketball/matches/{matchId}/persons/unregistered/resolve
The call resolves an unknown person in a match into a registered person from Stats Engine (make sure the player is present in Stats Engine and assigned to correct team roster). When executed this method reassigns all records from the unknown person to the registered person.
Use Body Content {"temporaryId":-1,"personId":xxxx}.
-
- temporaryID usually is -1, but if there are more unregistered players temporary IDs are -2, -3, -4, etc.
- personId is an ID of the player who played in the game and is present in Stats Engine.
3️⃣ After all unregistered players are resolved API call Match Statistics Rebuild from Actions is needed to update match statistics for players.
/basketball/leagues/{leagueId}/statistics/matches/build