Ecovolt API - API Token Endpoints
string · requiredstring[] · requiredstring · enum
Bulk toggle multiple devices ON/OFF
POST
http://localhost:8080
/api/device/system/{systemId}/toggle/bulk
Remotely toggle multiple devices (plugs, MCBs, smart switches, aircon controls, water meters) on or off simultaneously. All devices receive the same power state. For SmartSwitch devices, all gangs will be turned ON or OFF. Devices that are locked or encounter errors during toggling will be silently skipped. Requires SUPERADMIN or ADMIN role.
path Parameters
systemIdBulk toggle multiple devices ON/OFF › Request Body
deviceIdsArray of device IDs to toggle
Example: ["64b7f1e6f9c9d4e5b8a9f7c3","64b7f1e6f9c9d4e5b8a9f7c4"]
onStatusDesired power state for all devices. Use ON to turn all devices on (all gangs for SmartSwitch), or OFF to turn all devices off (all gangs for SmartSwitch).
Enum values:
ON
OFF
INACTIVE
ERROR
ACTIVE
Example: ON
Bulk toggle multiple devices ON/OFF › Responses
Bulk toggle operation completed successfully
No data returned