| 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). |
dnsRecordId | string | The unique identifier for the DNS Record you're trying to update. |
zoneId | string | The unique identifier for the DNS zone. |
curl --location --request PUT 'https://api.zapmail.ai/api/v2/dns' \
--header 'x-auth-zapmail;' \
--header 'x-workspace-key;' \
--header 'x-service-provider;'{
"status": 200,
"message": "Dns records updated successfully",
"data": {
"host": "@",
"value": "203.0.113.1",
"recordType": "A"
}
}