N.Y. Criminal Procedure Law § 140.40
3. If the arrest is for an offense other than a class A, B, C or D felony or a violation of section 130.25, former section 130.40, section 205.10, 205.17, 205.19 or 215.56 of the penal law, the arrested person need not be brought before a local criminal court, as provided in subdivision one, and the procedure may instead be as follows:
5. If a police officer takes an arrested juvenile offender or a person sixteen or commencing October first, two thosuand nineteen, seventeen years of age into custody, the police officer shall immediately notify the parent or other person legally responsible for his or her care or the person with whom he or she is domiciled, that such offender or person has been arrested, and the location of the facility where he or she is being detained. If the officer determines that it is necessary to question a juvenile offender or such person the officer must take him or her to a facility designated by the chief administrator of the courts as a suitable place for the questioning of children or, upon the consent of a parent or other person legally responsible for the care of the juvenile offender or such person, to his or her residence and there question him or her for a reasonable period of time. A juvenile offender or such person shall not be questioned pursuant to this section unless he or she and a person required to be notified pursuant to this subdivision, if present, have been advised:
6. As used in this section: