Update DNS via API

At home, I have a dynamic IP address. I created a script that ran every five minutes that updated my a DNS record to my current IP address when I had cPanel. When I switched to Virtualmin a couple years ago, I found out I could not do that. Since Virtualmin has gone through so many revisions since then, I wanted to re-ask the question - is there a web API that I can have a script at my house call and update the DNS record of a subdomain? Server is running on CentOS.

By the way - Virtualmin has come a long way. I appreciate all the work that has been put into it!