defaultState只能为low,outputState只能为pulsecurl --location --request GET 'https://api2.hik-cloud.com/api/v1/community/superBrains/actions/setIOOutputPortInfo' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceId": "xxxxxxxxxx",
"name": "",
"ioPortID": 2,
"powerOnState": {
"defaultState": "low",
"outputState": "pulse",
"pulseDuration": 5000
}
}'{
"code": 200,
"message": "操作成功"
}