N.Y. Criminal Procedure Law § 680.20
2. The application and moving papers must be in writing and must be subscribed and sworn to by the defendant or his attorney. A copy thereof must be served on the district attorney, with reasonable notice and opportunity to be heard. The moving papers must allege: