---
title: "Import DNS Records"
method: POST
path: "/dnszone/{zoneId}/import"
tags: ["DNS Zone"]
---

# Import DNS Records

`POST /dnszone/{zoneId}/import`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/dnszone/{zoneId}/import`
- Auth: API key in header `AccessKey`

## Path parameters

- `zoneId` integer, required

## Response `200`

The import operation has finished successfully.

- DnsZoneImportResultModel
  - `RecordsSuccessful` integer
  - `RecordsFailed` integer
  - `RecordsSkipped` integer

## Other responses

- `400`: Failed importing data. See error response.
- `401`: The request authorization failed
- `404`: The DNS Zone with the requested ID does not exist.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/bunny/apis/bunny-net-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-net-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-api/revisions/2b06f94dbfbf?raw)
