[Spce-user] New aliases through Api

Gerhard Jungwirth gjungwirth at sipwise.com
Tue May 30 05:31:26 EDT 2017


{"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
> 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/23c83ca7/attachment-0001.html>


More information about the Spce-user mailing list