API call to change hardware Acceleration setting

trying to turn Hardware Acceleration off on all cameras, found the setting

“hardwareAccelerationMode”: “Off”,

using /API/rest/v1/cameras/{id}/motionDetections

but patching against this doesn’t work

What am I missing?

Also this is againt milestone 2024 R1 with a management server and three recroding servers.

I can update the setting if I use the Config API Client sample app. I guess this is an indication that I should be able to update the setting using the Rest API also. I will investigate further.

I made a mistake in my first testing. Now it works for me. Let me share the test I did..

Thank you so much for this, it works perfectly, apprciate the help!