<div dir="ltr">The example is indeed invalid JSON. I've updated the wiki with valid JSON.<div><br></div><div>-dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 7, 2015 at 2:20 AM, Sergio Fernández <span dir="ltr"><<a href="mailto:sergio.fernandez@electronicamartinez.com" target="_blank">sergio.fernandez@electronicamartinez.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I don't know if it's everybody or if it's just me, but I've been
    trying the preset API to create a new preset in GenieACS, but I
    can't make it work. I only change "localhost" to my GenieACS Server
    IP. The code is the following:<br>
    <br>
    <pre><code>curl -i '<a href="http://GENIEACS-IP:7557/presets/inform" target="_blank">http://GENIEACS-IP:7557/presets/inform</a>' \
-X PUT \
--data '{ weight: 0, precondition: "{\"_tags\":\"test\"}", configurations: [ { type: "value", name: "InternetGatewayDevice.ManagementServer.PeriodicInformEnable", value: "true" }, { type: "value", name: "InternetGatewayDevice.ManagementServer.PeriodicInformInterval", value: "300" } ] }'
</code></pre>
    <br>
    Maybe it's a recent change in the GenieACS project implementation,
    maybe not. Thank you all.<span class="HOEnZb"><font color="#888888"><br>
    <br>
    - Sergio Fernández<br>
  </font></span></div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>