POST api/2.0/mailserver/notification/address/add
Creates an address for the tenant notifications with the parameters specified in the request.
Name |
Description |
Type |
Example |
name
sent in body
|
Address name
|
string
|
some text
|
password
sent in body
|
Address password
|
string
|
some text
|
domain_id
sent in body
|
Domain ID
|
number
|
1234
|
POST api/2.0/mailserver/notification/address/add
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"name": "some text",
"password": "some text",
"domain_id": 1234
}
Notification address data associated with the tenant
application/json
{
"status": 0,
"response": {
"Email": "Email",
"smtp_server": "smtp_server",
"smtp_port": 33,
"smtp_account": "smtp_account",
"smtp_auth": true,
"smtp_encryption_type": "smtp_encryption_type",
"smtp_auth_type": "smtp_auth_type"
}
}
text/xml
<result>
<status>0</status>
<response>
<Email>Email</Email>
<smtp_server>smtp_server</smtp_server>
<smtp_port>33</smtp_port>
<smtp_account>smtp_account</smtp_account>
<smtp_auth>True</smtp_auth>
<smtp_encryption_type>smtp_encryption_type</smtp_encryption_type>
<smtp_auth_type>smtp_auth_type</smtp_auth_type>
</response>
</result>