POST
/
dns
/
v2
/
zones
curl --request POST \
  --url https://api.gcore.com/dns/v2/zones \
  --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
}'
{
  "id": 123,
  "warnings": [
    "<string>"
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Body

application/json

Response

200
application/json

CreateZoneResponse

The response is of type object.