Skip to main content
POST
/
dnszone
/
{zoneId}
/
records
/
{id}
Update DNS Record
curl --request POST \
  --url https://api.bunny.net/dnszone/{zoneId}/records/{id} \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "Id": 123,
  "Type": "A",
  "Ttl": 123,
  "Value": "<string>",
  "Name": "<string>",
  "Weight": 123,
  "Priority": 123,
  "Flags": 127,
  "Tag": "<string>",
  "Port": 123,
  "PullZoneId": 123,
  "ScriptId": 123,
  "Accelerated": true,
  "MonitorType": "None",
  "GeolocationLatitude": 123,
  "GeolocationLongitude": 123,
  "LatencyZone": "<string>",
  "SmartRoutingType": "None",
  "Disabled": true,
  "EnviromentalVariables": [
    {
      "Name": "<string>",
      "Value": "<string>"
    }
  ],
  "Comment": "<string>",
  "AutoSslIssuance": true
}
'

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

zoneId
integer<int64>
required

The DNS Zone ID that contains the record.

id
integer<int64>
required

The ID of the DNS record that will be updated.

Body

Id
integer<int64>
required
Type
enum<string>

0 = A
1 = AAAA
2 = CNAME
3 = TXT
4 = MX
5 = SPF
6 = Flatten
7 = PullZone
8 = SRV
9 = CAA
10 = PTR
11 = Script
12 = NS

Available options:
A,
AAAA,
CNAME,
TXT,
MX,
SPF,
Flatten,
PullZone,
SRV,
CAA,
PTR,
Script,
NS
Example:

"A"

Ttl
integer<int32> | null
Value
string
Name
string
Weight
integer<int32> | null
Priority
integer<int32> | null
Flags
integer | null
Required range: 0 <= x <= 255
Tag
string
Port
integer<int32> | null
PullZoneId
integer<int64> | null
ScriptId
integer<int64> | null
Accelerated
boolean | null
MonitorType
enum<string>

0 = None
1 = Ping
2 = Http
3 = Monitor

Available options:
None,
Ping,
Http,
Monitor
Example:

"None"

GeolocationLatitude
number<double> | null
GeolocationLongitude
number<double> | null
LatencyZone
string
SmartRoutingType
enum<string>

0 = None
1 = Latency
2 = Geolocation

Available options:
None,
Latency,
Geolocation
Example:

"None"

Disabled
boolean | null
EnviromentalVariables
object[]
Comment
string
AutoSslIssuance
boolean | null

Response

The DNS record was successfuly updated.