N.Y. Criminal Procedure Law § 140.27
4. 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 two, and the procedure may instead be as follows:
5. Upon arresting a juvenile offender or a person sixteen or commencing October first, two thousand nineteen, seventeen years of age without a warrant, the peace 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 a 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 the juvenile offender or such person and a person required to be notified pursuant to this subdivision, if present, have been advised: