Under section 77 FPG the Federal Office must order a more lenient measure where the securing purpose can be achieved without detention.
The more lenient measure is the statutory alternative to immigration detention. Where a ground for detention under section 76 FPG exists, but there is reason to assume that the securing purpose can be achieved without custody, the Federal Office must order a more lenient measure under section 77 FPG. The law names in particular three types: accommodation in rooms designated by the Federal Office, a periodic reporting obligation at a service unit of a provincial police directorate, and the deposit of a financial security. For minors of mature age the more lenient measure must be applied with priority, unless special circumstances stand against it.
What to do now: First, examine which measure achieves the securing purpose in your situation with the least interference. Second, document the personal circumstances that speak for a more lenient measure instead of custody, such as fixed accommodation. Third, make the application early, because proportionality is the guiding principle and detention may only be the last resort.