Fixed up data_type endpoint method.