domainIds when it is not empty. When it is empty, domains are chosen from tagIds, status and contains, and when those are empty too, from every domain in the workspace.curl --location 'https://api.zapmail.ai/api/v3/dns/bulk' \
--header 'x-auth-zapmail;' \
--header 'Content-Type: application/json' \
--data-raw '{
"domainIds": [
"83e2d581-fcb5-48e5-ad21-02f0e57eec69"
],
"tagIds": [],
"status": [],
"records": [
{
"host": "@",
"value": "v=spf1 include:_spf.google.com ~all",
"recordType": "TXT"
}
]
}'{
"status": 200,
"message": "DNS Records will be added soon",
"data": [
{
"name": "add-bulk-dns-records",
"data": {
"domainId": "83e2d581-fcb5-48e5-ad21-02f0e57eec69",
"records": [
{
"host": "@",
"value": "v=spf1 include:_spf.google.com ~all",
"recordType": "TXT"
}
],
"userId": "0c5e9a7d-3b14-4f28-8a6e-91d2b7c4f053",
"workspaceId": "2d8e6c4a-9f1b-4d3e-a7c5-6b8f2e4d1c9a"
}
}
]
}