In the Interest of the following Minor Child(ren):. Fill out the Petition for Writ of Habeas Corpus to Return Child.A writ of habeas corpus is a legal tool that a person can use to enforce a superior right of possession to a child. This is a request to the court for the. This guide includes forms and instructions for a letter and affidavit to request that the court register an outofstate custody order in Texas. These instructions explain the steps to request a Writ of Habeas Corpus and an Order Returning a. Child. The required application for a person currently incarcerated in TDCJ to file for a writ of habeas corpus under Texas Code of Criminal Procedure, Article 11.07. The relator may file a petition for a writ of habeas corpus in either the court of continuing, exclusive jurisdiction or in a court with jurisdiction. In Texas child custody cases, a parent may file a Habeas Corpus writ if the other parent is violating a custody order. (The district clerk of the county of conviction will fill in this blank.) IN THE COURT OF CRIMINAL APPEALS OF TEXAS.