If a defendant is arrested without a warrant for a bailable felony offense or for the misdemeanor offense of violating a domestic violence restraining order, and a peace officer has reasonable cause to believe that the amount of bail set forth in the schedule of bail for that offense is insufficient to ensure the defendant’s appearance or to ensure the protection of a victim, or family member of a victim, of domestic violence, the peace officer shall prepare a declaration under penalty of perjury setting forth the facts and circumstances in support of his or her belief and file it with a magistrate, as defined in Section 808, or his or her commissioner, in the county in which the offense is alleged to have been committed or having personal jurisdiction over the
defendant, requesting an order setting a higher bail. Except where the defendant is charged with an offense listed in subdivision (a) of Section 1270.1, the defendant, either personally or through his or her attorney, friend, or family member, also may make application to the magistrate for release on bail lower than that provided in the schedule of bail or on his or her own recognizance. The magistrate or commissioner to whom the application is made is authorized to set bail in an amount that he or she deems sufficient to ensure the defendant’s appearance or to ensure the protection of a victim, or family member of a victim, of domestic violence, and to set bail on the terms and conditions that he or she, in his or her discretion, deems appropriate, or he or she may authorize the defendant’s release on his or her own recognizance. If, after the application is made, no order changing the amount of bail is issued within eight hours after booking, the defendant shall be entitled to be released on posting the
amount of bail set forth in the applicable bail schedule.