Creating a domain
Please see the source code example available in the api-examples/create_domain directory of your JSCAPE Secure FTP Server installation.