PUT
/
dns
/
v2
/
zones
/
{name}
curl --request PUT \
  --url https://api.gcore.com/dns/v2/zones/{name} \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contact": "<string>",
  "enabled": true,
  "expiry": 123,
  "meta": "{\"webhook\": \"http://example.com/hook\",\"webhook_method\":\"PUT\"}",
  "name": "example.com",
  "nx_ttl": 123,
  "primary_server": "<string>",
  "refresh": 123,
  "retry": 123,
  "serial": 123
}'
{}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

name
string
required

Body

application/json

Response

200
application/json

UpdateZoneResponse

The response is of type object.