ormula X can then be converted into the 1-substituted indazoles of the formula Ia??? by reaction with alkylating agents of the formula XI. In the formula XI, R4??? and n are as defined above, Z2 is a leaving group, for example chlorine, bromine, iodine or a sulfonyloxy radical, such as methanesulfonyloxy, trifluoromethanesulfonyloxy, benzenesulfonyloxy or p-toluenesulfonyloxy.