> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deasylabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch Create

> Deprecated: use `POST /v2/datasources` per item (v2 has no batch create). Create multiple data connectors in a single call. Useful for multi-site SharePoint connections where each site is a separate connector.



## OpenAPI

````yaml /deasy-openapi.yml post /data_connector/create_batch
openapi: 3.1.0
info:
  title: Collibra Unstructured API
  description: >
    REST API for Collibra Unstructured.


    ## Authentication


    Every endpoint accepts either HTTP Basic credentials, or a bearer token sent
    together with the

    `X-User-ID` header identifying the user the call runs as.


    ## Base URL


    Your Unstructured deployment, for example
    `https://unstructured.your-company.com/rest/unstructured`.
  version: 0.1.14
servers:
  - url: /rest/unstructured
security:
  - BasicAuth: []
  - BearerAuth: []
    UserIdAuth: []
tags:
  - name: Core
    description: Endpoints for core functionality
  - name: Data
    description: Endpoints for source data
  - name: Metadata
    description: Endpoints for metadata management
  - name: Tags
    description: Endpoints for tag management
  - name: Taxonomy
    description: Endpoints for taxonomy management
  - name: Dataslice
    description: Endpoints for dataslice management
  - name: Progress Tracker
    description: Endpoints for tracking progress
  - name: Classification
    description: Endpoints for classification
  - name: Ingestion
    description: Endpoints for document ingestion
  - name: Workflows
    description: Endpoints for workflow management
  - name: Deduplication
    description: Endpoints for deduplication
paths:
  /data_connector/create_batch:
    post:
      tags:
        - Data Connectors
      summary: Batch Create
      description: >-
        Deprecated: use `POST /v2/datasources` per item (v2 has no batch
        create). Create multiple data connectors in a single call. Useful for
        multi-site SharePoint connections where each site is a separate
        connector.
      operationId: create_data_sources_batch_route_data_connector_create_batch_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchCreateVDBConnectorRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchConnectorResponse'
        '403':
          description: Missing token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: >-
            Internal Server Error. An unexpected error occurred while processing
            the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
      deprecated: true
      x-codeSamples:
        - lang: Python
          source: |
            # pip install deasy-sdk
            import os
            from deasy import DeasyClient

            client = DeasyClient(
                base_url=os.environ["UNSTRUCTURED_CLIENT_BASE_URL"],
                username=os.environ["UNSTRUCTURED_USERNAME"],
                password=os.environ["UNSTRUCTURED_PASSWORD"],
            )

            response = client.data_source.create_batch(
                connectors=[{
                    "connector_name": "example_connector_name",
                    "connector_body": {
                        "type": "AzureBlobDataSourceManager",
                        "name": "example_name",
                        "account_name": "example_account_name",
                        "container_name": "example_container_name",
                    },
                }],
            )
            print(response.profile_ids)
components:
  schemas:
    BatchCreateVDBConnectorRequest:
      properties:
        connectors:
          items:
            $ref: '#/components/schemas/CreateVDBConnectorRequest'
          type: array
          title: Connectors
      type: object
      required:
        - connectors
      title: BatchCreateVDBConnectorRequest
    BatchConnectorResponse:
      properties:
        profile_ids:
          items:
            type: string
          type: array
          title: Profile Ids
      type: object
      required:
        - profile_ids
      title: BatchConnectorResponse
    HTTPError:
      properties:
        detail:
          type: string
          title: Detail
      type: object
      required:
        - detail
      title: HTTPError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CreateVDBConnectorRequest:
      properties:
        connector_name:
          type: string
          title: Connector Name
        connector_body:
          oneOf:
            - $ref: '#/components/schemas/AzureBlobConnectorConfig'
            - $ref: '#/components/schemas/BigQueryConnectorConfig'
            - $ref: '#/components/schemas/ConfluenceConnectorConfig'
            - $ref: '#/components/schemas/DatabricksConnectorConfig'
            - $ref: '#/components/schemas/GCSConnectorConfig'
            - $ref: '#/components/schemas/OnedriveConnectorConfig'
            - $ref: '#/components/schemas/PSQLConnectorConfig'
            - $ref: '#/components/schemas/QdrantConnectorConfig'
            - $ref: '#/components/schemas/S3ConnectorConfig'
            - $ref: '#/components/schemas/SharepointConnectorConfig'
          title: Connector Body
          discriminator:
            propertyName: type
            mapping:
              AzureBlobDataSourceManager: '#/components/schemas/AzureBlobConnectorConfig'
              BigQueryVectorDBManager: '#/components/schemas/BigQueryConnectorConfig'
              ConfluenceDataSourceManager: '#/components/schemas/ConfluenceConnectorConfig'
              DatabricksDataSourceManager: '#/components/schemas/DatabricksConnectorConfig'
              GCSDataSourceManager: '#/components/schemas/GCSConnectorConfig'
              OnedriveDataSourceManager: '#/components/schemas/OnedriveConnectorConfig'
              PSQLVectorDBManager: '#/components/schemas/PSQLConnectorConfig'
              QdrantVectorDBManager: '#/components/schemas/QdrantConnectorConfig'
              S3DataSourceManager: '#/components/schemas/S3ConnectorConfig'
              SharepointDataSourceManager: '#/components/schemas/SharepointConnectorConfig'
      type: object
      required:
        - connector_name
        - connector_body
      title: CreateVDBConnectorRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    AzureBlobConnectorConfig:
      properties:
        type:
          type: string
          const: AzureBlobDataSourceManager
          title: Type
          default: AzureBlobDataSourceManager
        name:
          type: string
          title: Name
        account_name:
          type: string
          title: Account Name
        container_name:
          type: string
          title: Container Name
        account_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Account Key
          sensitive: true
        client_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Id
        client_secret:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Secret
          sensitive: true
        tenant_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Tenant Id
        prefix:
          anyOf:
            - type: string
            - type: 'null'
          title: Prefix
        endpoint_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Endpoint Url
      type: object
      required:
        - name
        - account_name
        - container_name
      title: AzureBlobConnectorConfig
    BigQueryConnectorConfig:
      properties:
        type:
          type: string
          const: BigQueryVectorDBManager
          title: Type
          default: BigQueryVectorDBManager
        name:
          type: string
          title: Name
        project_id:
          type: string
          title: Project Id
          description: GCP project that holds the table.
        dataset:
          type: string
          title: Dataset
          description: BigQuery dataset that holds the table.
        table:
          type: string
          title: Table
          description: Table (or view) the documents are read from.
        location:
          anyOf:
            - type: string
            - type: 'null'
          title: Location
          description: >-
            Dataset location, e.g. US or europe-west1. Detected from the dataset
            when left empty.
        service_account_json:
          type: string
          title: Service Account Json
          sensitive: true
        filename_key:
          type: string
          title: Filename Key
          description: >-
            File-id column: rows that share a value form one file, and each row
            is a chunk of it.
        text_key:
          type: string
          title: Text Key
          description: Column holding the text of each row.
        id_keys:
          items:
            type: string
          type: array
          minItems: 1
          title: Id Keys
          description: >-
            Column, or columns together, that uniquely identify a row. Tags are
            written back to rows by these values.
        tags_key:
          type: string
          title: Tags Key
          description: >-
            Metadata output column (BigQuery JSON) that tags are written to.
            Created when it does not exist.
        order_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Order Key
          description: Column that orders a file's rows; the row id is used when empty.
        maximum_bytes_billed:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Maximum Bytes Billed
          description: >-
            Optional guard: a query that would bill more than this many bytes is
            refused. No limit when empty.
      type: object
      required:
        - name
        - project_id
        - dataset
        - table
        - service_account_json
        - filename_key
        - text_key
        - id_keys
        - tags_key
      title: BigQueryConnectorConfig
    ConfluenceConnectorConfig:
      properties:
        type:
          type: string
          const: ConfluenceDataSourceManager
          title: Type
          default: ConfluenceDataSourceManager
        name:
          type: string
          title: Name
        base_url:
          type: string
          title: Base Url
        api_token:
          type: string
          title: Api Token
          sensitive: true
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
        space_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Space Key
        cloud:
          type: boolean
          title: Cloud
          default: true
      type: object
      required:
        - name
        - base_url
        - api_token
      title: ConfluenceConnectorConfig
    DatabricksConnectorConfig:
      properties:
        type:
          type: string
          const: DatabricksDataSourceManager
          title: Type
          default: DatabricksDataSourceManager
        name:
          type: string
          title: Name
        host:
          type: string
          title: Host
        access_token:
          type: string
          title: Access Token
          sensitive: true
        catalog:
          type: string
          title: Catalog
        schema_name:
          type: string
          title: Schema Name
        volume:
          type: string
          title: Volume
        prefix:
          anyOf:
            - type: string
            - type: 'null'
          title: Prefix
      type: object
      required:
        - name
        - host
        - access_token
        - catalog
        - schema_name
        - volume
      title: DatabricksConnectorConfig
    GCSConnectorConfig:
      properties:
        type:
          type: string
          const: GCSDataSourceManager
          title: Type
          default: GCSDataSourceManager
        name:
          type: string
          title: Name
        bucket_name:
          type: string
          title: Bucket Name
        service_account_json:
          type: string
          title: Service Account Json
          sensitive: true
        prefix:
          anyOf:
            - type: string
            - type: 'null'
          title: Prefix
        endpoint_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Endpoint Url
      type: object
      required:
        - name
        - bucket_name
        - service_account_json
      title: GCSConnectorConfig
    OnedriveConnectorConfig:
      properties:
        type:
          type: string
          const: OnedriveDataSourceManager
          title: Type
          default: OnedriveDataSourceManager
        name:
          type: string
          title: Name
        client_id:
          type: string
          title: Client Id
        client_secret:
          type: string
          title: Client Secret
          sensitive: true
        tenant_id:
          type: string
          title: Tenant Id
        onedrive_site_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Onedrive Site Name
        onedrive_site_names:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Onedrive Site Names
        drives:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Drives
      type: object
      required:
        - name
        - client_id
        - client_secret
        - tenant_id
      title: OnedriveConnectorConfig
    PSQLConnectorConfig:
      properties:
        type:
          type: string
          const: PSQLVectorDBManager
          title: Type
          default: PSQLVectorDBManager
        database_name:
          type: string
          title: Database Name
        collection_name:
          type: string
          title: Collection Name
        url:
          type: string
          title: Url
        password:
          type: string
          title: Password
          sensitive: true
        db_user:
          type: string
          title: Db User
        port:
          type: string
          title: Port
        name:
          type: string
          title: Name
        index_info:
          anyOf:
            - $ref: '#/components/schemas/PSQLIndexInfo'
            - type: 'null'
        filename_key:
          type: string
          title: Filename Key
          default: filename
        text_key:
          type: string
          title: Text Key
          default: text
      type: object
      required:
        - database_name
        - collection_name
        - url
        - password
        - db_user
        - port
        - name
      title: PSQLConnectorConfig
    QdrantConnectorConfig:
      properties:
        type:
          type: string
          const: QdrantVectorDBManager
          title: Type
          default: QdrantVectorDBManager
        name:
          type: string
          title: Name
        filename_key:
          type: string
          title: Filename Key
          default: filename
        text_key:
          type: string
          title: Text Key
          default: text
        api_key:
          type: string
          title: Api Key
          sensitive: true
        collection_name:
          type: string
          title: Collection Name
        url:
          type: string
          title: Url
        index_info:
          anyOf:
            - $ref: '#/components/schemas/QdrantIndexInfo'
            - type: 'null'
      type: object
      required:
        - name
        - api_key
        - collection_name
        - url
      title: QdrantConnectorConfig
    S3ConnectorConfig:
      properties:
        type:
          type: string
          const: S3DataSourceManager
          title: Type
          default: S3DataSourceManager
        bucket_name:
          type: string
          title: Bucket Name
        aws_access_key_id:
          type: string
          title: Aws Access Key Id
        aws_secret_access_key:
          type: string
          title: Aws Secret Access Key
          sensitive: true
        name:
          type: string
          title: Name
        region:
          anyOf:
            - type: string
            - type: 'null'
          title: Region
          default: us-east-1
        endpoint_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Endpoint Url
      type: object
      required:
        - bucket_name
        - aws_access_key_id
        - aws_secret_access_key
        - name
      title: S3ConnectorConfig
    SharepointConnectorConfig:
      properties:
        type:
          type: string
          const: SharepointDataSourceManager
          title: Type
          default: SharepointDataSourceManager
        name:
          type: string
          title: Name
        client_id:
          type: string
          title: Client Id
        client_secret:
          type: string
          title: Client Secret
          sensitive: true
        tenant_id:
          type: string
          title: Tenant Id
        sharepoint_site_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Sharepoint Site Name
        sharepoint_site_names:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Sharepoint Site Names
        drives:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Drives
      type: object
      required:
        - name
        - client_id
        - client_secret
        - tenant_id
      title: SharepointConnectorConfig
    PSQLIndexInfo:
      properties:
        found_indexes:
          items:
            type: string
          type: array
          title: Found Indexes
        total_indexes_found:
          type: integer
          title: Total Indexes Found
      type: object
      required:
        - found_indexes
        - total_indexes_found
      title: PSQLIndexInfo
    QdrantIndexInfo:
      properties:
        total_indexes_found:
          type: integer
          title: Total Indexes Found
      type: object
      required:
        - total_indexes_found
      title: QdrantIndexInfo
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
    BearerAuth:
      type: http
      scheme: bearer
    UserIdAuth:
      type: apiKey
      in: header
      name: X-User-ID

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.