Create a Domain
- Name
 post- Type
 - /v1/domains
 - Description
 Send a
POSTrequest to creata a domain.
Request
Additional attributes are required to be provided as follow:
Required Attributes
- Name
 name- Type
 - string
 - Description
 A unique domain name that follows the standard naming formats, and doesn't exist in SimplyStack domain name records or hasn't been taken by any other entity.
Optional Attributes
- Name
 project_id- Type
 - string
 - Description
 The project universal unique identifier where the domain name will be linked. If the user didn't provide the UUID, the system will replace the domain name in the user default project.
Example
curl -X POST "https://api.simplystack.com/v1/domains" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
  -d '{"name": "example.com"}'Response
JSON object with key named domainwith the following identifiers associated with the domain name created:
💡
Keep in mind that, upon creation, the zone_file field will have a value of null until a zone file is generated and propagated through an automatic process on the SimplyStack servers.
Response
Attributes
Example
json
{
  "domain": {
    "name": "exmaple.com",
    "zone_file": null,
    "records": [],
    "created_at": "2020-02-13T08:33:25.371494Z"
  }
}