---
title: "Update an existing DNS record"
method: PATCH
path: "/v1/domains/records/{recordId}"
tags: ["dns"]
---

# Update an existing DNS record

`PATCH /v1/domains/records/{recordId}`

Updates an existing DNS record for a domain name.

## Path parameters

- `recordId` string, required — The id of the DNS record

## Query parameters

- `teamId` string
- `slug` string

## Request body

- object
  - `name` string, nullable — The name of the DNS record
  - `value` string, nullable — The value of the DNS record
  - `type` 'A' | 'AAAA' | 'ALIAS' | 'CAA' | 'CNAME' | 'HTTPS' | 'MX' | 'SRV' | 'TXT' | 'NS' | 'null', nullable — The type of the DNS record
  - `ttl` integer, nullable — The Time to live (TTL) value of the DNS record
  - `mxPriority` integer, nullable — The MX priority value of the DNS record
  - `srv` object, nullable
    - `target` string, nullable, required
    - `weight` integer, nullable, required
    - `port` integer, nullable, required
    - `priority` integer, nullable, required
  - `https` object, nullable
    - `priority` integer, nullable, required
    - `target` string, nullable, required
    - `params` string, nullable
  - `comment` string — A comment to add context on what this DNS record is for

## Response `200`

- object
  - `id` string, required
  - `name` string, required
  - `type` 'record' | 'record-sys', required
  - `value` string, required
  - `creator` string, required
  - `domain` string, required
  - `ttl` number
  - `comment` string
  - `recordType` 'A' | 'AAAA' | 'ALIAS' | 'CAA' | 'CNAME' | 'HTTPS' | 'MX' | 'NS' | 'SRV' | 'TXT', required
  - `createdAt` number, nullable

## Other responses

- `400` — One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- `401` — The request is not authorized.
- `402` — The account is missing a payment so payment method must be updated
- `403` — You do not have permission to access this resource.
- `404`
- `409`
- `410`

## Changes

> 39 revisions in range; 26 could not be searched.

- **2026-07-21** `2ae10ee9d21c` — 1 info
  - added the non-success response with the status `410`

[Change history](https://skmtc.dev/vercel/apis/api/changes/v1/domains/records/:recordId/patch.md)

---

[API](https://skmtc.dev/vercel/apis/api.md) · [All operations](https://skmtc.dev/vercel/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vercel/api/revisions/4191ba96b0c1/schema)
