The example is indeed invalid JSON. I've updated the wiki with valid JSON.

-dan

On Tue, Jul 7, 2015 at 2:20 AM, Sergio Fernández <
[email protected]> wrote:

>  Hello,
>
> 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:
>
> curl -i 'http://GENIEACS-IP:7557/presets/inform' \
> -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" 
> } ] }'
>
>
> Maybe it's a recent change in the GenieACS project implementation, maybe
> not. Thank you all.
>
> - Sergio Fernández
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.genieacs.com/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to