[Spce-user] add a lot of alias-numbers

Daniel Grotti dgrotti at sipwise.com
Tue Nov 18 10:30:14 EST 2014


Hi,
I would use the PUT, not PATCH

Example
curl -i -X PUT -H 'Connection: close' -H 'Content-Type:
application/json' -H 'Prefer: return=minimal' --cert
NGCP-API-client-certificate.pem --cacert ca-cert.pem
'https://example.org:1443/api/subscribers/2' --data-binary '{
"customer_id" : 4, "domain_id" : 4, "password" : "test", "username" :
"test" }'


Daniel




On 11/18/2014 03:33 PM, fry wrote:
> hi Victor,
>
> nice.. have this overseen..
>
> hmm.. but it will not work - get an internal 500 server error - think
> i missspelled something?
>
> curl -i -X PATCH -H 'Connection: close' -H 'Content-Type:
> application/json-patch+json' -H 'Prefer: return=minimal' --insecure
> 'https://URL:1443/api/subscribers/SUBSCRIBERNUMBER' --data-binary '[ {
> "op" : "add", "path" : "/alias_numbers", "value": [41,44,3111111] } ]'
> -u USER:PWD
>
> any advice?
> thanks
> fry
>
> Am 16.11.2014 um 18:19 schrieb Victor Seva:
>> On 16 Nov 2014 13:50, fry <spce at friibii.ch> wrote:
>>> is there a possibility to add lots of alias-numbers to a user?
>> https://www.sipwise.com/doc/mr3.6.1/spce/ar01s10.html#_rest_api
>>
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> https://lists.sipwise.com/listinfo/spce-user
>
> _______________________________________________
> 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/mailman/private/spce-user_lists.sipwise.com/attachments/20141118/30976a33/attachment.html>


More information about the Spce-user mailing list