mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-22 06:24:24 -04:00
Added example of configs API edit
This commit is contained in:
1 parent
59cc952cef
commit
45a62dc8d8
1 file changed
+11
-1
+11
-1
@@ -272,7 +272,17 @@ This returns the full list of configuration parameters:
|
||||
|
||||
Each configuration parameter has an Id, Name, Value and other fields. Chances are you are likely only going to focus on these 3.
|
||||
|
||||
(Example of changing config TBD)
|
||||
The edit function of the Configs API is a little quirky at the Moment. Its format deviates from the usual edit flow of other APIs. This will be fixed, eventually. For now, to change the "Value" of ZM_X10_HOUSE_CODE from A to B:
|
||||
|
||||
::
|
||||
|
||||
curl -XPUT http://server/zm/api/configs/edit/ZM_X10_HOUSE_CODE.json -d "Config[Value]=B"
|
||||
|
||||
To validate changes have been made:
|
||||
|
||||
::
|
||||
|
||||
curl -XGET http://server/zm/api/configs/view/ZM_X10_HOUSE_CODE.json
|
||||
|
||||
Run State Apis
|
||||
^^^^^^^^^^^^^^^
|
||||
|
||||
Reference in new issue
Block a user