modify-dns not implemented in http API

The function modify-dns as described here: https://www.virtualmin.com/documentation/developer/cli/modify_dns Is not available from the http API. That would be great if it was. :) Thanks!

Status: 
Closed (fixed)

Comments

Howdy -- hmm, does that work properly when called from the command line (with the "virtualmin" command), just not from the http API?

It should be available from both the command-line and remote APIs.

Hi there, I am very sorry as it is in fact available from both BUT I thought so because it is not listed in list_commands when done through http.

After some tries here is a proper bug about it:

Try virtualmin get-command --command get-dns Works fine!

And now virtualmin get-command --command modify-dns I get Cannot parse flag  type [value

I created a PHP class connecting virtualmin API , which checks query parameters thanks to the infos given by list-commands.

Unfortunately it won't work with modify-dns as it's not listed.

Ok, I see the cause of this - it will be fixed in the next Virtualmin release.

Status: Active » Fixed