POST api/Domain/Create
Creates a domain
Request Information
URI Parameters
None.
Body Parameters
CreateDomainViewModelName | Description | Type | Additional information |
---|---|---|---|
Url |
The url of the domain to create |
string |
Required |
UserId |
The id of the User this domain belongs to |
integer |
Required |
SelectedContactIds |
A collection of Contact ids who should be notified about this Domain |
Collection of integer |
None. |
Request Formats
application/json, text/json
{ "Url": "sample string 1", "UserId": 2, "SelectedContactIds": [ 1, 2 ] }
application/xml, text/xml
<CreateDomainViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Expirify.Api.Models.Domain"> <SelectedContactIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </SelectedContactIds> <Url>sample string 1</Url> <UserId>2</UserId> </CreateDomainViewModel>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Creates a domain
DomainWithContactsResponseName | Description | Type | Additional information |
---|---|---|---|
UpdateContactReminders |
A flag to indicate if the contacts who are notified about this domain should be updated |
boolean |
None. |
SelectedContactIds |
A list of contact ids to notify about this domain |
Collection of integer |
None. |
Id |
Id of the Domain |
integer |
None. |
Url |
Url address of the domain |
string |
Required |
Registrar |
The name of the company the domain is registered with. |
string |
None. |
RegistrationDate |
Registration date of the domain |
date |
None. |
ExpirationDate |
Expiration date of the domain |
date |
None. |
SSL |
Whether the domain has a valid SSL certifacte or not |
boolean |
None. |
SSLExpirationDate |
Expiration date of the domain's SSL certificate |
date |
None. |
UserId |
Id of the User |
integer |
Required |
Pending |
Whether the information of the domain is pending |
boolean |
None. |
PendingSSLDetails |
Whether the SSl details of the domain are pending |
boolean |
None. |
SSLVersion |
The SSL certificate version if this domain has an SSL cert |
integer |
None. |
Response Formats
application/json, text/json
{ "UpdateContactReminders": true, "SelectedContactIds": [ 1, 2 ], "Id": 2, "Url": "sample string 3", "Registrar": "sample string 4", "RegistrationDate": "2024-11-04T04:44:04.1455808+00:00", "ExpirationDate": "2024-11-04T04:44:04.1455808+00:00", "SSL": true, "SSLExpirationDate": "2024-11-04T04:44:04.1455808+00:00", "UserId": 6, "Pending": true, "PendingSSLDetails": true, "SSLVersion": 1 }
application/xml, text/xml
<DomainWithContactsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Expirify.Api.Models.Domain"> <ExpirationDate>2024-11-04T04:44:04.1455808+00:00</ExpirationDate> <Id>2</Id> <Pending>true</Pending> <PendingSSLDetails>true</PendingSSLDetails> <Registrar>sample string 4</Registrar> <RegistrationDate>2024-11-04T04:44:04.1455808+00:00</RegistrationDate> <SSL>true</SSL> <SSLExpirationDate>2024-11-04T04:44:04.1455808+00:00</SSLExpirationDate> <SSLVersion>1</SSLVersion> <Url>sample string 3</Url> <UserId>6</UserId> <SelectedContactIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </SelectedContactIds> <UpdateContactReminders>true</UpdateContactReminders> </DomainWithContactsResponse>