[Spce-user] New aliases through Api
Raul Alonso
raul.alonso at tpartner.net
Tue May 30 12:00:32 EDT 2017
Hi,
Yes, Its Works.
Thanks Gerhard.
De: Spce-user [mailto:spce-user-bounces at lists.sipwise.com] En nombre de
Gerhard Jungwirth
Enviado el: martes, 30 de mayo de 2017 11:31
Para: spce-user at lists.sipwise.com
Asunto: Re: [Spce-user] New aliases through Api
{"op":"add", "path":"/alias_numbers/-", "value":{"cc"...}}
untested
just look up a tutorial on json-patch for more details.
Best, Gerhard
On 2017-05-29 11:06, Raul Alonso wrote:
Hi,
I am trying to create new aliases through api. I am using the following
command:
curl -i -X PATCH -H 'Connection: close' -H 'Content-Type:
application/json-patch+json' -H 'Prefer: return=minimal' --cert
NGCPclient.pem --cacert NGCPca.pem --insecure
'https://IP:1443/api/subscribers/4' --data-binary '[ { "op" : "add", "path"
: "/alias_numbers", "value" : [{"cc" :"34","ac": "22", "sn" : "222222"}
When I add a new alias to a subscribers who already had one. The api deletes
the previous alias.
How can I do to add new aliases without deleting old ones?
Regrads,
Raul.
_______________________________________________
Spce-user mailing list
Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
https://lists.sipwise.com/listinfo/spce-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20170530/9e0c6fab/attachment-0001.html>
More information about the Spce-user
mailing list