---
title: "Update secondary zone"
method: PATCH
path: "/dns/v2/secondary-zones/{zoneName}"
tags: ["SecondaryZones"]
---

# Update secondary zone

`PATCH /dns/v2/secondary-zones/{zoneName}`

## Request

- Base URL: `https://api.gcore.com`
- URL: `https://api.gcore.com/dns/v2/secondary-zones/{zoneName}`
- Auth: HTTP apikey

Update a secondary zone by name.

## Path parameters

- `zoneName` string, required

## Request body

- UpdateSecondaryZonePayload
  - `enabled` boolean
  - `meta` object
  - `poll_interval` integer
  - `transfer_mode` 'push' | 'pull' | 'both': Transfer mode.
  - `tsig_algorithm` string: One of hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha384, hmac-sha512, with or without a trailing dot. Normalized and returned in canonical dotted form. Required together with `tsig_key_name` and `tsig_secret`; must not be set alone.
  - `tsig_key_name` string
  - `tsig_secret` string
  - `use_tls` boolean

## Response `200`

SecondaryZoneResponse

- SecondaryZoneResponse
  - `client_id` integer
  - `created_at` string, date-time
  - `enabled` boolean
  - `id` integer
  - `last_serial` integer
  - `last_transfer_at` string, date-time
  - `meta` object
  - `poll_interval` integer
  - `transfer_mode` string
  - `tsig_algorithm` string
  - `tsig_key_name` string
  - `updated_at` string, date-time
  - `use_tls` boolean
  - `zone_name` string

## Other responses

- `400`: SecondaryZoneErrorResponse
- `404`: SecondaryZoneErrorResponse
- `502`: SecondaryZoneErrorResponse

## Changes

- **2026-09-04** `796429501557`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/g-core/apis/gcore-openapi/changes/dns/v2/secondary-zones/:zoneName/patch.md)

---

[API](https://skmtc.dev/g-core/apis/gcore-openapi.md) - [All operations](https://skmtc.dev/g-core/apis/gcore-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/g-core/apis/gcore-openapi/revisions/a2b772345f3a?raw)
