Penal Code § 1274
ARTICLE 1. In What Cases the Defendant May Be Admitted to Bail
When the admission to bail is a matter of discretion, the Court or officer to whom the application is made must require reasonable notice thereof to be given to the District Attorney of the county.