May I get an example of using configs API
Posted: Sun Jul 17, 2016 3:53 am
Hello,
I am running zoneminder 1.29.0 and am successfully using the API via shell and python scripts to manipulate some monitor settings. However, I am attempting to edit the ZM_MESSAGE_ADDRESS using the config API. I can't figure out the proper syntax. The API documentation does not provide examples of configuration changes via API and simply says that "(Example of changing config TBD)"
I am able to dump the list of config API's using curl -b cookies.txt -XGET http://server/zm/api/configs.json
I have tried to edit ZM_MESSAGE_ADDRESS using all sorts of XPUT such as
curl -b cookies.txt -XPUT http://server/zm/api/configs/117.json -d "Config[Value]=test@test.com"
But I can not seem to find the proper syntax. Would anyone please be able to help me with the config api syntax for changing non read-only settings?
I am running zoneminder 1.29.0 and am successfully using the API via shell and python scripts to manipulate some monitor settings. However, I am attempting to edit the ZM_MESSAGE_ADDRESS using the config API. I can't figure out the proper syntax. The API documentation does not provide examples of configuration changes via API and simply says that "(Example of changing config TBD)"
I am able to dump the list of config API's using curl -b cookies.txt -XGET http://server/zm/api/configs.json
I have tried to edit ZM_MESSAGE_ADDRESS using all sorts of XPUT such as
curl -b cookies.txt -XPUT http://server/zm/api/configs/117.json -d "Config[Value]=test@test.com"
But I can not seem to find the proper syntax. Would anyone please be able to help me with the config api syntax for changing non read-only settings?