Request
Add parameter in header Authorization
Example:Authorization: ********************
Body Params application/json
{
"deviceId": "string",
"oilElectricController": true
}
Request Code Samples
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/device/command/cutOilElectric' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceId": "string",
"oilElectricController": true
}'
Responses
application/json {
"code": 0,
"data": "",
"msg": ""
}
Modified at 2025-09-12 09:50:32