Adds a web domain to the current tenant.
Name | Description | Type | Example |
name
sent in body
|
Web domain name | string | some text |
id_dns
sent in body
|
DNS ID | number | 1234 |
POST api/2.0/mailserver/domains/add Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "name": "some text", "id_dns": 1234 }
Web domain data associated with the tenant
application/json
{ "status": 0, "response": { "Id": "id", "IsSharedDomain": true, "Name": "Name", "Dns": { "Id": 1234, "MxRecord": { "Host": "Host", "Priority": 1234, "IsVerified": true }, "SpfRecord": { "Name": "name", "Value": "value", "IsVerified": true }, "DkimRecord": { "Selector": "Selector", "PublicKey": "PublicKey", "IsVerified": true }, "DomainCheckRecord": { "Name": "name", "Value": "value", "IsVerified": true } } } }
text/xml
<result> <status>0</status> <response> <Id>id</Id> <IsSharedDomain>True</IsSharedDomain> <Name>Name</Name> <Dns> <Id>1234</Id> <MxRecord> <Host>Host</Host> <Priority>1234</Priority> <IsVerified>True</IsVerified> </MxRecord> <SpfRecord> <Name>name</Name> <Value>value</Value> <IsVerified>True</IsVerified> </SpfRecord> <DkimRecord> <Selector>Selector</Selector> <PublicKey>PublicKey</PublicKey> <IsVerified>True</IsVerified> </DkimRecord> <DomainCheckRecord> <Name>name</Name> <Value>value</Value> <IsVerified>True</IsVerified> </DomainCheckRecord> </Dns> </response> </result>