---
title: "Creates a new SOA record."
method: POST
path: "/soa"
tags: ["soa"]
---

# Creates a new SOA record.

`POST /soa`

## Request

- Base URL: `https://manager.digicertdns.com/v1`
- URL: `https://manager.digicertdns.com/v1/soa`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/digicert/apis/digicert-dns/docs/soa/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint creates a new SOA record, allowing users to define the authoritative DNS settings for a domain.</br></br>Key features include:</br></br>- **Clear success messaging:** Returns a `200` success code with a confirmation message indicating the successful completion of the requested action.</br>- **Comprehensive error handling:** Returns a `400` error code with a clear description when requests fail.</br>- **Seamless SOA record creation:** Facilitates the creation of a SOA record in-line with the appropriate schema, ensuring smooth and efficient organization.

## Request body

- PrimarySOAWithoutId
  - `id` integer
  - `name` string
  - `primaryNameserver` string
  - `email` string
  - `ttl` integer
  - `startingSerial` string
  - `refresh` integer
  - `retry` integer
  - `expire` string
  - `negativeCache` integer
  - `createdTs` string
  - `modifiedTs` string
  - `domains` PrimaryIpSetDomains[]
    - `id` integer
    - `name` string

## Response `200`

SOA record created successfully.

- PrimarySOA
  - `id` integer
  - `name` string
  - `primaryNameserver` string
  - `email` string
  - `ttl` integer
  - `startingSerial` string
  - `refresh` integer
  - `retry` integer
  - `expire` string
  - `negativeCache` integer
  - `createdTs` string
  - `modifiedTs` string
  - `isDefault` boolean
  - `domains` PrimaryIpSetDomains[]
    - `id` integer
    - `name` string

## Other responses

- `400`: Request is malformed or invalid.

---

[API](https://skmtc.dev/digicert/apis/digicert-dns.md) - [All operations](https://skmtc.dev/digicert/apis/digicert-dns/llms.txt) - [OpenAPI document](https://skmtc.dev/digicert/apis/digicert-dns/revisions/c74fc728cff8?raw)
