curl --request PUT \
--url https://api.gcore.com/dns/v2/zones/{name} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"contact": "<string>",
"enabled": true,
"expiry": 123,
"meta": {},
"name": "example.com",
"nx_ttl": 123,
"primary_server": "<string>",
"refresh": 123,
"retry": 123,
"serial": 123
}'
{}
Update DNS zone and SOA record.
curl --request PUT \
--url https://api.gcore.com/dns/v2/zones/{name} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"contact": "<string>",
"enabled": true,
"expiry": 123,
"meta": {},
"name": "example.com",
"nx_ttl": 123,
"primary_server": "<string>",
"refresh": 123,
"retry": 123,
"serial": 123
}'
{}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
UpdateZoneResponse
The response is of type object
.
Was this page helpful?