RUT241 How to export and import configuration with jsonrpc


I would like to import and export a modem configuration through the jsonrpc API, but I can’t manage do do this.
I try the following:

curl -d ‘{
“jsonrpc”:“2.0”, “id”:5, “method”:
“call”, “params”:
[ “06df04b00ed6fb0974adaf98809b33bc”, “uci”, “export”, {} ] }’

And i got


How to do this?



If you are looking to use ‘uci export’ to obtain configurations, please, try the following JSON body (replace token):

[ "06df04b00ed6fb0974adaf98809b33bc", "file", "exec",

Kind Regards,

This topic was automatically closed after 15 days. New replies are no longer allowed.