Updates an existing DNS record for a domain.Request Body#
| Field | Type | Required | Description |
|---|
recordId | string | Yes | Unique identifier of the DNS record |
domain | string | Yes | Domain name associated with the record |
host | string | Yes | Host name for the DNS record |
value | string | Yes | Value of the DNS record |
recordType | string | Yes | Type of DNS record (e.g., MX, A, CNAME) |
priority | string | No | Priority value (for MX records) |
Request
Add parameter in header cmr-x-api-key
Example:cmr-x-api-key: ********************
or
Body Params application/json
{
"recordId": "rec_98765",
"domain": "example.com",
"host": "mail",
"value": "mail.example.com",
"recordType": "MX",
"priority": "10"
}
Request Code Samples
curl --location --request PUT 'https://customers.coldmailreseller.com/api/v1/integration/dns?userId=BVZGM5TE9BMP3PP0VWGW943RGV1K' \
--header 'cmr-x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"recordId": "rec_98765",
"domain": "example.com",
"host": "mail",
"value": "mail.example.com",
"recordType": "MX",
"priority": "10"
}'
Responses
application/json {
"status": 200,
"message": "DNS Record updated successfully",
"data": {
"status": "Success",
"statusDescription": "The record was modified successfully."
}
}
Modified at 2025-10-29 17:06:44