domain_add_email_subdomain ()
Create new email subdomain.
HTTP Method: | GET | |
---|---|---|
Parameters: | sid | session id* |
domain_id | unique id of selected domain* | |
name | name of subdomain* | |
trash | email address of domain trash (mailbox for all unmatched email recipient of domain) | |
smtp_route | address of SMTP server (if you have your own mail server) | |
Returns: | HTTP code | 200 (OK) |
reply | answer is empty | |
HTTP code | 400 (Bad request) | |
invalid_values | array of invalid values with error messages. |
CURL
curl "https://admin.systems90.cz/api/domain_add_email_subdomain?sid=%sid%&domain_id=%domain_id%&name=%name%"
PHP Library
$api->domain_add_email_subdomain(array(
'domain_id' => %domain_id%,
'name' => %name%,
));
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>OK</text>
</status>
<email_subdomain_id>54620</email_subdomain_id>
</reply>