The rules surrounding motorcycle licensing are complicated and we recommend that you refer to www.gov.uk/ride-motorcycle-moped/overview.
Do bear in mind that if you're riding a restricted motorcycle on an A2 licence (gained on or after 19th January 2013) the orginal power output of your restricted motorcycle cannot be greater than 70kW or 94BHP.