- API Reference
- Box API
- Modems
Rotate the IP of every modem on the box at once
Use this to give all modems new IPs in one call. Starts a rotation on every slot (up to 20 in parallel) and returns the outcome per position in results, keyed by position. Each entry has the same msg codes as POST /v2/rotate_ip. Refused with need_upgrade when the license has no IP rotation.
/v2/rotate_ip_allRequest body application/json
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
Per-position outcome, or need_upgrade.
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 |
|---|---|---|
need_upgrade | The license does not include IP rotation. | Upgrade the license plan. |
error | The rotation of that position raised an error (per-position result). | Retry that position with POST /v2/rotate_ip. |