curl --request PUT \
--url https://api.bunny.net/dnszone/{zoneId}/records \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"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
}
'{
"Id": 123,
"Ttl": 123,
"Weight": 123,
"Priority": 123,
"Port": 123,
"Accelerated": true,
"AcceleratedPullZoneId": 123,
"GeolocationLatitude": 123,
"GeolocationLongitude": 123,
"Disabled": true,
"AutoSslIssuance": true,
"Type": "A",
"Value": "<string>",
"Name": "<string>",
"Flags": 127,
"Tag": "<string>",
"LinkName": "<string>",
"IPGeoLocationInfo": {
"ASN": 123,
"CountryCode": "<string>",
"Country": "<string>",
"OrganizationName": "<string>",
"City": "<string>"
},
"GeolocationInfo": {
"Latitude": 123,
"Longitude": 123,
"Country": "<string>",
"City": "<string>"
},
"MonitorStatus": "Unknown",
"MonitorType": "None",
"EnviromentalVariables": [
{
"Name": "<string>",
"Value": "<string>"
}
],
"LatencyZone": "<string>",
"SmartRoutingType": "None",
"Comment": "<string>"
}curl --request PUT \
--url https://api.bunny.net/dnszone/{zoneId}/records \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"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
}
'{
"Id": 123,
"Ttl": 123,
"Weight": 123,
"Priority": 123,
"Port": 123,
"Accelerated": true,
"AcceleratedPullZoneId": 123,
"GeolocationLatitude": 123,
"GeolocationLongitude": 123,
"Disabled": true,
"AutoSslIssuance": true,
"Type": "A",
"Value": "<string>",
"Name": "<string>",
"Flags": 127,
"Tag": "<string>",
"LinkName": "<string>",
"IPGeoLocationInfo": {
"ASN": 123,
"CountryCode": "<string>",
"Country": "<string>",
"OrganizationName": "<string>",
"City": "<string>"
},
"GeolocationInfo": {
"Latitude": 123,
"Longitude": 123,
"Country": "<string>",
"City": "<string>"
},
"MonitorStatus": "Unknown",
"MonitorType": "None",
"EnviromentalVariables": [
{
"Name": "<string>",
"Value": "<string>"
}
],
"LatencyZone": "<string>",
"SmartRoutingType": "None",
"Comment": "<string>"
}API Access Key authorization header
The DNS Zone ID to which the record will be added.
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
A, AAAA, CNAME, TXT, MX, SPF, Flatten, PullZone, SRV, CAA, PTR, Script, NS "A"
0 <= x <= 2550 = None
1 = Ping
2 = Http
3 = Monitor
None, Ping, Http, Monitor "None"
0 = None
1 = Latency
2 = Geolocation
None, Latency, Geolocation "None"
Show child attributes
The DNS record was successfuly added.
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
A, AAAA, CNAME, TXT, MX, SPF, Flatten, PullZone, SRV, CAA, PTR, Script, NS "A"
0 <= x <= 255Billing model contains data summary about the user's billing
Show child attributes
Show child attributes
0 = Unknown
1 = Online
2 = Offline
Unknown, Online, Offline "Unknown"
0 = None
1 = Ping
2 = Http
3 = Monitor
None, Ping, Http, Monitor "None"
Show child attributes
0 = None
1 = Latency
2 = Geolocation
None, Latency, Geolocation "None"
Was this page helpful?