---
title: "Updates a specific primary domain."
method: PUT
path: "/domains/primary/{domainId}"
tags: ["domains - primary"]
---

# Updates a specific primary domain.

`PUT /domains/primary/{domainId}`

## Request

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

This endpoint updates a specific primary domain, allowing users to quickly make changes without impacting other domains.</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 `404` error code with a clear description when requests fail.</br>- **Reliable updates:** Facilitates the modification of a specific primary domain, ensuring accurate and up-to-date information across the system.</br>- **Targeted data retrieval:** Leverages the `domainId` parameter in the URL path to update the specified domain, ensuring accurate and focused modifications.

## Path parameters

- `domainId` integer, required

## Request body

- PrimaryDomainCreate
  - `name` string
  - `soaId` integer
  - `gtd` boolean
  - `tsigKeyConfig` TsigKeyConfigRequest[]
    - `ipSetId` integer
    - `tsigKeyId` integer
  - `resourceGroups` integer[]
  - `nameserverSetId` integer
  - `valiMail` Valimail
    - `enabled` boolean
    - `policy` string
    - `additionalRua` string

## Response `200`

Primary domain updated successfully.

- PrimaryDomainCreateResponse
  - `id` integer
  - `name` string
  - `type` string
  - `soaId` integer
  - `nameserverSetId` integer
  - `gtd` boolean
  - `createdTs` string
  - `modifiedTs` string
  - `tsigKeyConfig` TsigKeyConfigRequest[]
    - `ipSetId` integer
    - `tsigKeyId` integer
  - `resourceGroups` integer[]
  - `valimail` boolean

## Other responses

- `404`: Resource not found.

---

[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)
