Modify existing DNS records for your domain. This is necessary for configuring email, SSL certificates, or other services requiring specific DNS settings. The endpoint returns an ID needed for follow-up calls.
zoneId integer · min: 1 required Example Unique zone identifier
recordId integer · min: 1 required Example Unique record identifier
Accept Example Content-Type Example id integer type string · enum required A AAAA ALIAS CNAME MX SRV TXT name string value string required ttl integer status string · enum active pending created string proxy_rule object priority integer weight integer port integer success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string error string message string code string timestamp string requestId string error string message string code string timestamp string requestId string error string message string code string timestamp string requestId string details array https://cloud.hostup.se/api/dns/zones/{zoneId}/records/{recordId} curl -X PUT "https://cloud.hostup.se/api/dns/zones/19513/records/36161044" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": 0,
"type": "A",
"name": "string",
"value": "string",
"ttl": 0,
"status": "active",
"created": "string",
"proxy_rule": {
"exists": true,
"proxied": true,
"priority": 0,
"description": "string"
},
"priority": 0,
"weight": 0,
"port": 0
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"record": {
"id": "string",
"type": "string",
"name": "string",
"value": "string",
"ttl": 0,
"status": "string"
}
}
} {
"id": 0,
"type": "A",
"name": "string",
"value": "string",
"ttl": 0,
"status": "active",
"created": "string",
"proxy_rule": {
"exists": true,
"proxied": true,
"priority": 0,
"description": "string"
},
"priority": 0,
"weight": 0,
"port": 0
}