The amended petition must be written on the courtapproved petition for writ of habeas corpus form. The Writ of Habeas Corpus demands that requires a prisoner must go before the court to determine if there is lawful authority to detain the prisoner.Who May Use This Form. It tests the legality of a detention or a restraint and the goal is to use it really almost i guess it's an emergency basis. A writ of habeas corpus requires that a person who is in custody be brought before a judge or court and that they be able to challenge that custody. This file provides a petition template for post-conviction relief in Arizona. If you are looking to file a Texas 11.07 Writ of Habeas Corpus application, post-convcition lawyer Sarah Durham is here to help. A Writ of Habeas Corpus is a motion which is filed most frequently to ensure that a Defendant's imprisonment or detention is not illegal. Complete the habeas corpus petition according to the directions on the form which is enclosed in this packet. This Chapter explains an important right—the writ of habeas corpus.