Run Hotspot Portal with Netrouter_OS API?

Just want to know if it is possible to run the default hotspot portal with netrouter API codes on the login page. I want to test if i can update user uptime limit using the default hotspot portal by adding some textbox and button.

Any reply would be much appreciated. Thank you.