This endpoints lets you update dns records for a domain.| Name | Type | Description |
|---|
assignedDomainId | string | The unique identifier for the domain to which the DNS record is assigned. |
host | string | The domain or subdomain for which the DNS record applies. |
value | string | The corresponding value of the DNS record, such as an IP address or another domain. |
recordType | string | The type of DNS record (e.g., A, CNAME, MX, TXT). |
cdfId | string | The unique identifier for the CDF associated with the domain. |
zoneId | string | The unique identifier for the DNS zone. |
Request Code Samples
curl --location --request PUT 'https://api.zapmail.ai/api/v2/dns' \
--header 'x-auth-zapmail;' \
--header 'x-workspace-key;' \
--header 'x-service-provider;'
Responses
application/json {
"status": 200,
"message": "Dns records updated successfully",
"data": {
"host": "@",
"value": "203.0.113.1",
"recordType": "A"
}
}
Modified at 2025-10-14 09:24:08