dmarc, forwarding, emailForwarding, catchAll or checkDns: true, otherwise the request fails with 422.domainIds only. Domains outside the workspace, or without approved Zapmail name servers, are skipped silently; compare domainsMatched with what you sent. If none match the request fails with 400 (Domain not registered).url or email. DMARC cannot be removed here.checkDns runs synchronously and returns SPF, DMARC, DKIM and MX results per domain.curl --location --request PUT 'https://api.zapmail.ai/api/v3/domains/settings' \
--header 'x-auth-zapmail;' \
--header 'Content-Type: application/json' \
--data-raw '{
"domainIds": [
"83e2d581-fcb5-48e5-ad21-02f0e57eec69",
"e78b1d35-8d6a-4e43-91da-a57ab5288f86"
],
"dmarc": {
"email": "reports@example.com"
},
"forwarding": {
"url": "https://www.example.org",
"captchaEnabled": true
},
"emailForwarding": {
"email": "inbox@example.org"
},
"catchAll": {
"email": "catchall@example.org"
}
}'{
"status": 200,
"message": "Domain settings update queued",
"data": {
"domainsMatched": 2,
"applied": {
"dmarc": true,
"forwarding": true,
"emailForwarding": true,
"catchAll": true
},
"dnsStatus": [
{
"id": "83e2d581-fcb5-48e5-ad21-02f0e57eec69",
"domain": "example.com",
"spfRecord": true,
"dmarcRecords": true,
"dkimRecords": true,
"mxRecords": true
},
{
"id": "e78b1d35-8d6a-4e43-91da-a57ab5288f86",
"domain": "example.net",
"spfRecord": true,
"dmarcRecords": false,
"dkimRecords": false,
"mxRecords": true
}
]
}
}