PUT
/
dns
/
v2
/
zones
/
{zoneName}
/
{rrsetName}
/
{rrsetType}
curl --request PUT \
  --url https://api.gcore.com/dns/v2/zones/{zoneName}/{rrsetName}/{rrsetType} \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "meta": {},
  "pickers": [
    {
      "limit": 123,
      "strict": true,
      "type": "geodns"
    }
  ],
  "resource_records": [
    {
      "content": [
        "1.1.1.1"
      ],
      "enabled": true,
      "meta": {
        "asn": [
          17544,
          17812
        ],
        "continents": [
          "europe",
          "asia"
        ],
        "countries": [
          "us",
          "gb",
          "lu"
        ],
        "ip": [
          "192.168.15.150/25",
          "2003:de:2016::/48"
        ],
        "weight": 30
      }
    }
  ],
  "ttl": 123
}'
{
  "filter_set_id": 123,
  "meta": {},
  "name": "sub.example.com",
  "pickers": [
    {
      "limit": 123,
      "strict": true,
      "type": "geodns"
    }
  ],
  "resource_records": [
    {
      "content": [
        "1.1.1.1"
      ],
      "enabled": true,
      "id": 42,
      "meta": {
        "continents": [
          "europe",
          "asia"
        ],
        "countries": [
          "us",
          "gb",
          "lu"
        ],
        "ip": [
          "192.168.15.150/25",
          "2003:de:2016::/48"
        ]
      }
    }
  ],
  "ttl": 123,
  "type": "A",
  "updated_at": "2023-11-07T05:31:56Z",
  "warning": "<string>",
  "warnings": [
    {
      "key": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

zoneName
string
required
rrsetName
string
required
rrsetType
string
required

Body

application/json

Response

200
application/json

OutputRRSet

The response is of type object.