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

Andreas Granig agranig at sipwise.com
Tue Nov 18 12:05:34 EST 2014


Hi,

On 11/18/2014 04:30 PM, Daniel Grotti wrote:
> 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" }'

Well, PATCH is perfectly fine to modify only a single field. Please
check the /var/log/ngcp/api.log for the error. 500 shouldn't be returned
in any case as it's only emitted on internal errors, not sure what the
problem is as I can't reproduce it over here.

Andreas



More information about the Spce-user mailing list