How to use uci apply from ubus?

What is the difference between commit and apply uci commands on ubus?

From what I understand, the apply allows to rollback if there is an error in the new config and Luci seems to use apply so it seems prefered to use it over commit.

I can use commit with:

ubus call uci commit '{"config": "network"}'

But I cannot figure how to use the apply command.

Thank you
I have tried:

ubus call uci apply '{"timeout": 30, "rollback": true}'

But I get the answer:

Command failed: Invalid argument
1 Like

I have the same question. I am running this command via SSH.
After I called "ubus uci login {...}" and added "ubus_rpc_session" to "apply" command, it says, "Command failed: no response".