{
"type": "VOLUME",
"source": {
"type": 0,
"platform": 1
},
"enable": true,
"conditions": [
{
"cron": [
"0 15 10 ? * *"
],
"value": 50,
"enable": true,
"startTime": "2017-09-01 00:00:00",
"endTime": "4016-06-06 24:00:00"
},
{
"cron": [
"0 15 10 ? * *"
],
"value": 0,
"enable": true
}
]
}curl --location --request POST 'http://192.168.0.220:12000/terminal/core/v1/device/volume/timing' \
--header 'Authorization;' \
--header 'Authorization: "token": "1772884900758a3G/2VxvvL8sYGX7ch4lkw==",' \
--header 'token: 17728859184696FpLycPa6RQn6ACR6uNK1w==' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "VOLUME",
"source": {
"type": 0,
"platform": 1
},
"enable": true,
"conditions": [
{
"cron": [
"0 15 10 ? * *"
],
"value": 50,
"enable": true,
"startTime": "2017-09-01 00:00:00",
"endTime": "4016-06-06 24:00:00"
},
{
"cron": [
"0 15 10 ? * *"
],
"value": 0,
"enable": true
}
]
}'{
"code": 0,
"message": "string",
"data": {
"errorDiscription": "string"
}
}