Dahua NVR activate NetAlarm using HTTP API

Nov 28, 2016
3
0
I'm trying to activate a net alarm on Dahua NVR-608-32-4KS2 (V4.002.0000000.2.R, Build Date: 2023-02-20)
Using latest HTTP API guide I could find: DAHUA_HTTP_API_3.37
1720911017683.png
I sent this:
then entered my Username and Password but got this response in return:
Error
Bad Request!


And response to this:
is:
table.NetAlarm[0].Enable=true
table.NetAlarm[0].EventHandler.AlarmOutChannels[0]=0
table.NetAlarm[0].EventHandler.AlarmOutEnable=false
table.NetAlarm[0].EventHandler.AlarmOutLatch=10
table.NetAlarm[0].EventHandler.BeepEnable=true
table.NetAlarm[0].EventHandler.Dejitter=5
table.NetAlarm[0].EventHandler.Delay=0
table.NetAlarm[0].EventHandler.LogEnable=true
table.NetAlarm[0].EventHandler.MMSEnable=false
table.NetAlarm[0].EventHandler.MailEnable=false
table.NetAlarm[0].EventHandler.MessageEnable=false
table.NetAlarm[0].EventHandler.MessageToNetEnable=true
table.NetAlarm[0].EventHandler.MonitorTour[0].Channels[0]=0
table.NetAlarm[0].EventHandler.MonitorTour[0].Enable=false
table.NetAlarm[0].EventHandler.MonitorTour[0].Split=Split1
table.NetAlarm[0].EventHandler.MonitorTour[1].Channels[0]=0
table.NetAlarm[0].EventHandler.MonitorTour[1].Enable=false
table.NetAlarm[0].EventHandler.MonitorTour[1].Split=Split1
table.NetAlarm[0].EventHandler.PtzLinkEnable=false
table.NetAlarm[0].EventHandler.RecordChannels[0]=0
table.NetAlarm[0].EventHandler.RecordEnable=false
table.NetAlarm[0].EventHandler.RecordLatch=10
table.NetAlarm[0].EventHandler.SnapshotChannels[0]=0
table.NetAlarm[0].EventHandler.SnapshotEnable=false
table.NetAlarm[0].EventHandler.SnapshotPeriod=1
table.NetAlarm[0].EventHandler.SnapshotTimes=5
table.NetAlarm[0].EventHandler.TimeSection[0][0]=1 00:00:00-24:00:00
table.NetAlarm[0].EventHandler.TimeSection[0][1]=0 00:00:00-24:00:00
table.NetAlarm[0].EventHandler.TimeSection[0][2]=0 00:00:00-24:00:00
table.NetAlarm[0].EventHandler.TimeSection[0][3]=0 00:00:00-24:00:00
table.NetAlarm[0].EventHandler.TimeSection[0][4]=0 00:00:00-24:00:00
...


Am I doing anything wrong?
Is it possible that this API manual is not compatible with my firmware version?
Has anyone got new version of HTTP API manual?
 
I've been trying today with Net Alarm.
My NVR is working with the example: http://192.168.1.08/cgi-bin/netAlarm.cgi?action=setState&channel=1&alarm=true&name=TestName&trigger=SprinklerFailure&desc=ValveStuck

Needs to be digest authentication for response 'OK'.
If using basic authentication, the response is no value.