Reset ROS with API

hello,

Our clinet usually from not-IT background need help in resetting the router but the issue is that they are not able to put IP address or gateway once they reset as they dont know how to use winbox, webfig etc, so I thought we will give them a URL to reset the router and in that we will implant an automated rsc file to load ip address and gateway at next startup, but the issue us when you execute /system reset-configuration command from API it asks for a confirmation, how do I do this or is there any other way to execute the same and achieve desired results.
My command is:
/system reset-configuration no-defaults=yes skip-backup=yes run-after-reset=someScript.rsc

Thanks for help

When I tried via the API it didn’t ask for a confirmation. The router reset it’s config and rebooted immediately.

<<< /system/reset-configuration
<<< =no-defaults=yes
<<< =skip-backup=yes
<<<

!done

in my case its not doing anything could it be that i am executing a script ?

When I tried via the API it didn’t ask for a confirmation. The router reset it’s config and rebooted immediately.

<<< /system/reset-configuration
<<< =no-defaults=yes
<<< =skip-backup=yes
<<<

!done


in my case its not doing anything could it be that i am executing a script ?


/system reset-configuration no-defaults=yes skip-backup=yes run-after-reset=someScript.rsc

Yes, that is a script. Not the API.