To change your AO code, it is necessary to make a request to the income tax department, which can be done through either online means or by visiting the nearest income tax office.