"PUT Preset" example in Github-Wiki of GenieACS doesn't work

Dan Morphis dan at milkcarton.com
Tue Jul 7 12:51:36 EDT 2015


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 <
sergio.fernandez at electronicamartinez.com> 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
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20150707/37d1089b/attachment.html>


More information about the Users mailing list