See the bolded text below:
curl -i 'http://localhost:7557/presets/dades-Gloria2' \ -X PUT \ --data '{ "weight": 1, "precondition": "{\"_tags\":\"inicial\",\" summary.serialNumber\":\"485754438F5D4068\"}", "configurations": [{ "type": "value", "name": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Username", "value": "DeltBlocia-Gla" },{ "type": "value", "name": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Password", "value": "glori" }, { "type": "add_tag", "*tag*":"dadesusuari" }]}' On Wed, Dec 7, 2016 at 1:58 PM, Manel Mendoza ( Delinternet ) < [email protected]> wrote: > Hi Dan, > > > > Yes I looked but I couldn’t found how to add a tag inside a preset. I use > the command add_tag but the value inside the tag is not saved on the preset. > > > > curl -i 'http://localhost:7557/presets/dades-Gloria2' \ > > -X PUT \ > > --data '{ "weight": 1, "precondition": "{\"_tags\":\"inicial\",\" > summary.serialNumber\":\"485754438F5D4068\"}", "configurations": [{ > "type": "value", "name": "InternetGatewayDevice.WANDevice.1. > WANConnectionDevice.1.WANPPPConnection.1.Username", "value": > "DeltBlocia-Gla" },{ "type": "value", "name": "InternetGatewayDevice. > WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Password", "value": > "glori" }, > > { "type": "add_tag", "value":"dadesusuari" }]}' > > > > King regards, > > > > > > *De:* Users [mailto:[email protected]] *En nombre **de *Dan > Morphis > *Enviado el:* miércoles, 7 de diciembre de 2016 18:33 > *Para:* Community support for GenieACS users > *Asunto:* Re: Add a preset tag via API > > > > Have you looked at the API on the wiki? The answers you seek are there > > > > On Wed, Dec 7, 2016 at 7:37 AM, Manel Mendoza ( Delinternet ) < > [email protected]> wrote: > > Hi, > > > > Has anyone an example to add a tag via API to the genieACS using curl … > > > > Tnk > > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.genieacs.com/mailman/listinfo/users > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.genieacs.com/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.genieacs.com/mailman/listinfo/users
