Virtualmin API create-domain features-from-plan parameter

So I am using a Virtualmin remote API to create a virtual server in Virtualmin.

Here is my URI:

https://myip:10000/virtual-server/remote.cgi?program=create-domain&domain=foo.com&pass=asd456&features-from-plan=Bronze

What I am trying to do is to create a virtual server with features of a Bronze plan that I have defined (I have three plans defined: Bronze, Silver, Gold).

I am getting this response, however:

Unknown option Bronze

Adds a new Virtualmin virtual server, with the settings and features
specified on the command line.

virtualmin create-domain --domain domain.name
–pass password-for-unix-user |
–passfile password-file
[–parent domain.name | --alias domain.name |
–superdom domain.name]
[–desc description-for-domain]
[–email contact-email]
[–user new-unix-user]
[–unix]
[–dir]
[–mail]
[–dns]
[–web]
[–webalizer]
[–ssl]
[–logrotate]
[–mysql]
[–postgres]
[–ftp]
[–spam]
[–virus]
[–webmin]
[–virtualmin-dav]
[–virtualmin-awstats]
[–virtualmin-mailman]
[–default-features] | [–features-from-plan]
[–allocate-ip | --ip virtual.ip.address |
–shared-ip existing.ip.address]
[–ip-already]
[–allocate-ip6 |
–ip6 virtual.ip.address]
[–ip6-already]
[–dns-ip address | --no-dns-ip]
[–max-doms domains|*]
[–max-aliasdoms domains]
[–max-realdoms domains]
[–max-mailboxes boxes]
[–max-dbs databases]
[–max-aliases aliases]
[–template “name”]
[–plan “name”]
[–limits-from-plan]
[–prefix username-prefix]
[–db database-name]
[–fwdto email-address]
[–reseller name]
[–mysql-pass password]
[–postgres-pass password]
[–skip-warnings]

Exit status: 1

Am I using the API wrong? Please help.

Judging by the output from the Help it would seem that --features-from-plan doesn’t take a parameter and you probably need to add --plan “name”

So your command would be: https://myip:10000/virtual-server/remote.cgi?program=create-domain&domain=foo.com&pass=asd456&features-from-plan&plan=Bronze