# Add DMARC record

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/domains/dmarc:
    post:
      summary: Add DMARC record
      deprecated: false
      description: >-
        This endpoint lets you add a DMARC record to one or more domains. Use
        contains, status and tagIds attribute to filter domains.
      tags:
        - domains
      parameters:
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
        - name: x-workspace-key
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
        - name: ' x-service-provider'
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                domainIds:
                  type: array
                  items:
                    type: string
                  description: Array of domain ids to add DMARC record to.
                email:
                  type: string
                  description: >-
                    The email address to which aggregate reports need to be
                    sent. 
                contains:
                  type: string
                  description: Search filter to target domains with the given substring.
                status:
                  type: array
                  items:
                    type: string
                    enum:
                      - ACTIVE
                      - INACTIVE
                      - PENDING
                      - IN_PROGRESS
                      - EXPIRED
                    x-apidog-enum:
                      - value: ACTIVE
                        name: ACTIVE
                        description: ''
                      - value: INACTIVE
                        name: INACTIVE
                        description: ''
                      - value: PENDING
                        name: PENDING
                        description: ''
                      - value: IN_PROGRESS
                        name: IN_PROGRESS
                        description: ''
                      - value: EXPIRED
                        name: EXPIRED
                        description: ''
                  description: Array of status of domains to target.
                tagIds:
                  type: array
                  items:
                    type: string
                  description: Array of tag ids of domains to target.
              required:
                - domainIds
                - email
                - contains
                - status
                - tagIds
              x-apidog-orders:
                - domainIds
                - email
                - contains
                - status
                - tagIds
            example:
              domainIds:
                - DA84A348-C526-4563-AFCD-6DDD71C3FE69
              email: example@domain.com
              contains: ''
              status: []
              tagIds: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: 'null'
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
              example:
                status: 200
                message: DMARC records will be added in sometime
                data: null
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: domains
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-13520817-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
