Via Talend/curl/Postman,
Amend the following to your admin credentials and camera IP.
To switch off IR feature entirely:
PUT
http://admin:yourPassword@192.168.1.xx/ISAPI/System/Hardware
Body:
<IrLightSwitch>
<mode>close</mode>
</IrLightSwitch>
To switch on IR:
PUT...