Follow the usual steps for battering and coating the onion. Next, spray the onion with cooking spray and place it with the root side down. Heat the onion for about 9-10 minutes at 400 degrees. Timings may vary with different air fryer models so keep a lookout after five minutes.