English
English
简体中文
Contact Us
Register
Log In

Set Up Balance Alert Threshold

Last Updated on : 2021-12-11 08:10:27download

Set up the balance alert threshold of an electrical device. An alert will be triggered if the account balance is lower than the threshold.

API address

POST: /v1.0/iot-03/power-devices/{device_id}/balance-threshold

Request parameter

Parameter name Type IN Required Description
device_id String uri true The device ID.

Description of body

Parameter name Type IN Required Description
threshold Integer true The balance alert threshold. Unit: kWh.

Return parameter

Parameter name Type Description
result Boolean
  • true: Set up successfully.
  • false: Failed to set it up.

Request example

POST: /v1.0/iot-03/power-devices/6c814919a3f54fb4eb****/balance-threshold

Error code

For more information, see error code.