Skip to main content
PUT
/
domains
/
{domain_id}
/
dns-records
Update a domain DNS record
curl --request PUT \
  --url https://api.kinsta.com/v2/domains/{domain_id}/dns-records \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "A",
  "name": "abc.mydomain.com",
  "ttl": 3600,
  "new_resource_records": [
    {
      "value": "1.1.1.1"
    }
  ],
  "removed_resource_records": [
    {
      "value": "2.2.2.2"
    }
  ]
}
'
{
  "message": "Updating a domain DNS record in progress",
  "status": 202,
  "operation_id": "domains:update-dns-record-54fb80af-576c-4fdc-ba4f-b596c83f15a1"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

domain_id
string<uuid>
required
Example:

"54fb80af-576c-4fdc-ba4f-b596c83f15a1"

Body

application/json
type
string
required
Example:

"A"

name
string
required
Example:

"abc.mydomain.com"

ttl
number

TTL in seconds

Required range: x >= 300
Example:

3600

new_resource_records
object[]
removed_resource_records
object[]

Response

DNS record update action started. Check MyKinsta for status

message
string
required
Example:

"Updating a domain DNS record in progress"

status
number
required
Example:

202

operation_id
string
Example:

"domains:update-dns-record-54fb80af-576c-4fdc-ba4f-b596c83f15a1"