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

# Create multiple datapoints in batch (deprecated)

> Deprecated. Use `POST /v1/projects/{project_id}/datapoints/batch` with a data plane API key instead. Creates multiple datapoints from events using field mappings and optional filters.



## OpenAPI

````yaml https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/datapoints/batch
openapi: 3.1.0
info:
  title: HoneyHive Data Plane API
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: 1.17.0
servers:
  - url: https://api.dp1.us.honeyhive.ai
security: []
tags:
  - name: Charts
    description: >
      Define and manage saved charts. Charts are visualizations that aggregate
      metrics over time with bucketing, filters, and groupings.
  - name: Configurations
    description: >
      Manage prompt configurations, i.e. model parameters, message templates,
      and response settings that can be versioned and deployed without code
      changes.
  - name: Data Plane Api Keys
    description: >
      Create fine-grained data plane API keys for a project from a provisioning
      flow, using an organization-rooted key that is permitted to create keys.
  - name: Datapoints
    description: >
      Manage individual records inside datasets, including batch creation and
      mapping to source events.
  - name: Datasets
    description: >
      Curate collections of datapoints used as test sets for evaluations and
      experiments.
  - name: Events
    description: >
      Read and write trace events. Events are the spans that capture every step
      of an AI application's execution.
  - name: Experiments
    description: >
      Run, retrieve, and compare evaluation runs to measure how prompt or
      configuration changes affect agent performance.
  - name: Ingestion Api Keys
    description: >
      Create ingestion API keys for a project from a provisioning flow, using an
      organization-rooted data plane key that is permitted to create keys. An
      ingestion key is the credential an application sends traces with.
  - name: Metric Versions
    description: >
      Snapshot, list, and deploy versions of a metric's definition so changes
      can be reviewed and rolled back without losing history.
  - name: Metrics
    description: >
      Define and run evaluators, i.e. automated quality checks that score traces
      against criteria like accuracy, safety, or correctness.
  - name: Queues
    description: >
      Manage annotation queues for human review of traces, turning expert
      feedback into labeled datasets.
  - name: Sessions
    description: >
      Group related trace events into sessions, the top-level container for a
      multi-step or multi-service AI interaction.
paths:
  /v1/datapoints/batch:
    post:
      tags:
        - Datapoints
      summary: Create multiple datapoints in batch (deprecated)
      description: >-
        Deprecated. Use `POST /v1/projects/{project_id}/datapoints/batch` with a
        data plane API key instead. Creates multiple datapoints from events
        using field mappings and optional filters.
      operationId: batchCreateDatapointsLegacy
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchCreateDatapointsRequest'
      responses:
        '200':
          description: Datapoints successfully created in batch
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchCreateDatapointsResponse'
      deprecated: true
      security:
        - BearerAuth: []
components:
  schemas:
    BatchCreateDatapointsRequest:
      type: object
      properties:
        events:
          type: array
          items:
            type: string
            minLength: 1
          deprecated: true
        mapping:
          $ref: '#/components/schemas/DatapointMapping'
          deprecated: true
        filters:
          anyOf:
            - type: object
              additionalProperties: {}
            - type: array
              items:
                type: object
                additionalProperties: {}
        dateRange:
          $ref: '#/components/schemas/BatchDateRange'
        checkState:
          $ref: '#/components/schemas/CheckState'
        selectAll:
          type: boolean
        dataset_id:
          type: string
          minLength: 1
      description: Request body for POST /datapoints/batch
    BatchCreateDatapointsResponse:
      type: object
      properties:
        inserted:
          type: boolean
        insertedIds:
          type: array
          items:
            type: string
            minLength: 1
      required:
        - inserted
        - insertedIds
      description: Response for POST /datapoints/batch
    DatapointMapping:
      type: object
      properties:
        inputs:
          type: array
          items:
            type: string
          default: []
        history:
          type: array
          items:
            type: string
          default: []
        ground_truth:
          type: array
          items:
            type: string
          default: []
    BatchDateRange:
      type: object
      properties:
        $gte:
          type: string
        $lte:
          type: string
    CheckState:
      type: object
      additionalProperties:
        type: boolean
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

## Related topics

- [Create multiple datapoints in batch](https://docs.honeyhive.ai/v2/api-reference-autogen/datapoints/create-multiple-datapoints-in-batch.md)
- [Create a new datapoint (deprecated)](https://docs.honeyhive.ai/v2/api-reference-autogen/datapoints/create-a-new-datapoint-deprecated.md)
- [BatchCreateDatapointsResponse](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/datapoints/BatchCreateDatapointsResponse.md)


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