The police have a right to detain a suspect for 48 hours. During this period, the bailor has to apply for bailment from the police officer who is in charge of such duty.
After 48 hours, the suspect will be transferred to the prison in the relevant jurisdiction. The bailor then has to apply for bailment from the applicable Court in that jurisdiction.
Generally speaking, the bailment granted by the Court is more flexible than the police.