SPDT Endpoints
Renamed from /api/switch
These endpoints were previously served at /api/switch. On SPDT hardware
that path is kept as a deprecated alias and still works, but new automation
should use /api/spdt. On SP4T hardware /api/switch aliases
/api/sp4t instead, carrying the 0–3 range.
GET /api/spdt
Returns the currently routed throw.
Response:
| State | Description |
|---|---|
0 |
RF0 |
1 |
RF1 |
POST /api/spdt
Sets the routed throw.
Request:
Response:
Errors:
400— Invalid state value (must be0or1)500— Failed to set SPDT state
Example: