Apply a DMARC record to a domain
This function applies a DMARC record to the specified domain(s).
Note:
You cannot modify DMARC records on temporary domains.
Query parameters
The DMARC record to apply to the requested domains.
Note:
When using multiple policies, each policy must have a matching domain.
When using a single policy, it will be applied to all specified domains.
Visit the following link for more information about the DMARC record specification: https://dmarc.org/resources/specification/
The domain for which to apply the DMARC record.
Note:
To apply multiple domain DMARC records, duplicate the parameter name. For example, use the domain=example-1.com, domain=example-2.com, and domain=example-3.com parameters.
If you do not include this argument, the system applies the DMARC record to all domains on the system.
Response
HTTP Request was successful.
Example response
{
"data": {
"payload": [
{
"domain": "example.com",
"msg": "[ADD:TXT@_dmarc.example.com:v=DMARC1; p=reject;]",
"status": 1
}
]
},
"metadata": {
"command": "apply_dmarc",
"reason": "OK",
"result": 1,
"version": 1
}
}