- API Reference
- Box API
- Rotation settings
Change the rotation method and auto reset/reconnect of USB stick (QMI/serial) modems
Use this to choose how stick modems get a new IP and whether they reset or reconnect automatically. method must be the string "1", "2" or "3". stick_adjust_time is saved only when not empty. stick_auto_reset and stick_auto_reconnect are applied at once. A missing field fails with HTTP 500.
/stick_change_renew_methodRequest body application/json · required
1, 2, 3Adjust time in seconds; empty keeps the saved value.
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.
Unhandled error, for example a non-integer position or a missing required parameter.
Error name, e.g. internal_server_error or bad_request.
Errors returned in msg
| msg | Meaning | What to do |
|---|---|---|
Please select right method | method is not the string 1, 2 or 3. | Send the method as a string. |