def update_code tournament_code, allowed_participants: nil, map_type: nil, pick_type: nil, spectator_type: nil
      body = {
        "allowedSummonerIds" => allowed_participants,
        "mapType"            => map_type,
        "pickType"           => pick_type,
        "spectatorType"      => spectator_type
      }.compact
      perform_request api_url("codes/#{tournament_code}"), :put, body
    end
def update_code tournament_code, allowed_participants: nil, map_type: nil, pick_type: nil, spectator_type: nil
      body = {
        "allowedSummonerIds" => allowed_participants,
        "mapType"            => map_type,
        "pickType"           => pick_type,
        "spectatorType"      => spectator_type
      }.compact
      perform_request api_url("codes/#{tournament_code}"), :put, body
    end
Update the pick type, map, spectator type, or allowed summoners for a code.
 @param [String] tournament_code The tournament code to update
 @param [Array<Integer>] allowed_participants List of participants in order to validate the players eligible to join the lobby.
 @param [String] map_type The map type of the game. Valid values are SUMMONERS_RIFT, TWISTED_TREELINE, CRYSTAL_SCAR, and HOWLING_ABYSS.
 @param [String] pick_type The pick type of the game. Valid values are BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT.
 @param [String] spectator_type The spectator type of the game. Valid values are NONE, LOBBYONLY, ALL.