v1

latestOpenAPI 3.1.02026-07-2426068.5 KB

Create Record

Creates a record for a domain.

post/domains/{domain}/records

Path parameters

domainstring required

The domain name

Request body

typestring required

The type of record

hostnamestring required

The subdomain for the record

valuestring required

The value for the record, eg. IP address

ttlinteger required

The records time to live

priorityinteger

Priority of the record

weightinteger

Weight of the record

portinteger

The port the service is running on

caaflaginteger

Flag for CAA records

caatypestring

Type of CAA certificate to use

Response

200

idstring
uidstring
domainstring
hostnamestring
typestring
valuestring
priorityinteger
weightinteger
portinteger
caaflaginteger
caatypestring
ttlinteger

Example response

{
  "id": "aaaaaaaaaaabbbbbbbbbbbbb",
  "uid": "aaaaaaaaaaabbbbbbbbbbbbb",
  "domain": "test.com",
  "hostname": "@",
  "type": "A",
  "value": "40.40.40.40",
  "ttl": 3600
}