Create New Record

POST /api/record/{DOMAIN}

Data to be send as json

Parameter Type Description
ttl int REQUIRED. TTL in seconds
type string REQUIRED. a / cname …
value string REQUIRED. Value of the record
hostname string REQUIRED. Which hostname of the record
Example
curl --request POST 'http://HOSTNAME/api/record/example.com' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer API-TOKEN' \
  --data-raw '{"ttl":"3600", "type": "a", "value":"1.1.1.1", "hostname":"@"}'
Response
{
    "error": "",
    "message": {
        "recordId": 4227
    }
}

Edit Record By Hostname

PUT /api/record/{DOMAIN}

Data to be send as json

Parameter Type Description
type string REQUIRED. The type of which to edit
value string REQUIRED. Value of the record
hostname string REQUIRED. The hostname of which to edit
Example
curl --request PUT 'http://HOSTNAME/api/record/example.com' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer API-TOKEN' \
  --data-raw '{"type": "a", "value":"1.1.1.1", "hostname":"@"}'
Response
{
    "error": "",
    "message": {
    }
}

Edit Record By RecordID

PUT /api/record/{DOMAIN}/{RECORDID}

Record id is provided when creating the record

Data to be send as json

Parameter Type Description
value string REQUIRED. Value of the record
ttl string REQUIRED. TTL
Example
curl --request PUT 'http://HOSTNAME/api/record/example.com/4227' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer API-TOKEN' \
  --data-raw '{"value":"1.1.1.5", "ttl": 120}'
Response
{
    "error": "",
    "message": {
    }
}