curl --location '/domains//dns-records' \
--header 'rs-x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"records": [
{
"host": "@",
"recordType": "TXT",
"value": "v=spf1 include:_spf.google.com ~all"
},
{
"host": "@",
"recordType": "MX",
"value": "aspmx.l.google.com",
"priority": "1"
}
]
}'{
"status": 200,
"message": "DNS record added",
"data": null
}