- API Reference
- Box API
- Modems
Turn the Wi-Fi of one or more modems on or off
Use this to switch modem Wi-Fi hotspots. XProxy XH20/XH22 modems set Wi-Fi to state; NextGen Android phones toggle it; other modems are skipped. The answer is success even when modems were skipped.
/v2/wifi_change_in_bulkRequest body application/json · required
true turns Wi-Fi on, false turns it off.
Authentication
Needs dashboard Basic credentials when dashboard authentication is enabled; trusted callers (loopback, LAN unless "force auth for local" is on, whitelisted IP, allowed Tailscale) pass without them.
Responses
Result.
True when the box accepted the request.
Outcome code or message (see the operation's error table).
The caller is not trusted (not loopback, LAN, whitelisted or allowed Tailscale) and sent no valid Basic credentials. The body depends on whether "Basic auth for all API" is on. Routes that also use the panel login can answer a plain-text 401 "Unauthorized Access" instead.
Errors returned in msg
| msg | Meaning | What to do |
|---|---|---|
Sent change Wi-Fi failed. Please try again later! | positions or state missing. | Send both fields. |