# Add Google Client ID to Domain

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/domains/add-client-id:
    post:
      summary: Add Google Client ID to Domain
      deprecated: false
      description: >-
        Associates a Google OAuth Client ID with one or more domain IDs for a
        specified application.
      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
                clientId:
                  type: string
                  description: Google OAuth client ID
                app:
                  type: string
                  description: The App name associated with the provided client ID.
              required:
                - domainIds
                - clientId
                - app
              x-apidog-orders:
                - domainIds
                - clientId
                - app
              description: List of domain UUIDs to associate the client ID with
            example:
              domainIds:
                - <domain-id-1>
                - <domain-id-2>
                - ...
              clientId: <google-oauth-client-id>
              app: <AppName>
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                required:
                  - status
                  - message
                x-apidog-orders:
                  - status
                  - message
              example:
                status: 200
                message: Client ID will be added to the domains soon.
          headers: {}
          x-apidog-name: Success
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                required:
                  - status
                  - message
                x-apidog-orders:
                  - status
                  - message
              example:
                status: 400
                message: Invalid client ID.
          headers: {}
          x-apidog-name: Bad Request
        '422':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                required:
                  - status
                  - message
                x-apidog-orders:
                  - status
                  - message
              example:
                status: 422
                message: domainIds is required, clientId is required, app is required.
          headers: {}
          x-apidog-name: Parameter Error
      security: []
      x-apidog-folder: domains
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-19401086-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
