Great question — answering as the UphillTech team:
As with any sport, this is an organisational aspect outside of the rules, and usually left to the specific organiser's discretion. The relevant governing body should put out regulations covering circumstances such as how players can be replaced between games in the event of injury. In the absence of a higher authority such as a regional or national association directing otherwise, this is down to what the tournament organisers can provide and will allow. For example, FIBA's 'Internal Regulations Book 3 Players and Officials' section 129: National Member Federations are entitled to register the following team delegation members on the Preliminary Team Delegation Roster: a. Maximum of...
Full answer by Nij: https://sports.stackexchange.com/a/28836 (CC BY-SA 4.0).
Need it done for your business? UphillTech.