# Assign Domain Tag

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/domains/assign-tag:
    post:
      summary: Assign Domain Tag
      deprecated: false
      description: Assign tags to domains (bulk operation).
      tags:
        - domains
      parameters:
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: YOUR_API_KEY
          schema:
            type: string
        - name: x-service-provider
          in: header
          description: ''
          required: false
          example: GOOGLE
          schema:
            type: string
        - name: x-workspace-key
          in: header
          description: ''
          required: false
          example: YOUR_WORKSAPCE_ID
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                tagIds:
                  type: array
                  items:
                    type: string
                domainIds:
                  type: array
                  items:
                    type: string
              required:
                - tagIds
                - domainIds
            example:
              tagIds:
                - tag-uuid-1
                - tag-uuid-2
              domainIds:
                - domain-uuid-1
                - domain-uuid-2
                - domain-uuid-3
      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: Tags Added Successfully
                data: null
          headers: {}
          x-apidog-name: Success
        '422':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
                x-apidog-orders:
                  - message
              example:
                message: tagIds are required and must be an array of uuids
          headers: {}
          x-apidog-name: Unprocessable Entity
      security: []
      x-apidog-folder: domains
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-26767208-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
