Add set_code to list of API properties