Update DNS records for a domain

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.

Path Parameters

zoneId integer · min: 1 required Example

Unique zone identifier

recordId integer · min: 1 required Example

Unique record identifier

Headers

Accept Example
Content-Type Example

Body

required
application/json
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

Responses

200
success boolean
timestamp string
requestId string
data object
400
error string
message string
code string
timestamp string
requestId string
401
error string
message string
code string
timestamp string
requestId string
404
error string
message string
code string
timestamp string
requestId string
422
error string
message string
code string
timestamp string
requestId string
details array
PUT https://cloud.hostup.se/api/dns/zones/{zoneId}/records/{recordId}
For AI assistants
cURL
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
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "record": {
      "id": "string",
      "type": "string",
      "name": "string",
      "value": "string",
      "ttl": 0,
      "status": "string"
    }
  }
}
Request Body
{
  "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
}