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

# Commit Multi Ingestion Manifest

> Commit a multi-experiment ingestion manifest with partition isolation.



## OpenAPI

````yaml /openapi.json post /v1/ingestions/commit
openapi: 3.1.0
info:
  description: Customer-owned evaluation lifecycle API.
  title: HeyBee Public API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.heybee.app
security: []
paths:
  /v1/ingestions/commit:
    post:
      tags:
        - Samples
      summary: Commit Multi Ingestion Manifest
      description: Commit a multi-experiment ingestion manifest with partition isolation.
      operationId: commit_multi_ingestion_manifest_v1_ingestions_commit_post
      parameters:
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: X-API-Key
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IngestionMultiPlanRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngestionMultiCommitResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - BearerAuth: []
        - ApiKeyAuth: []
components:
  schemas:
    IngestionMultiPlanRequest:
      description: Plan/validate request for multi-experiment ingestion.
      properties:
        allow_partial:
          default: true
          title: Allow Partial
          type: boolean
        idempotency_key:
          maxLength: 255
          minLength: 1
          title: Idempotency Key
          type: string
        mode:
          const: manifest
          default: manifest
          title: Mode
          type: string
        rows:
          items:
            $ref: '#/components/schemas/IngestionMultiManifestRow'
          maxItems: 1000
          minItems: 1
          title: Rows
          type: array
      required:
        - idempotency_key
        - rows
      title: IngestionMultiPlanRequest
      type: object
    IngestionMultiCommitResponse:
      description: Aggregate multi-experiment commit response.
      properties:
        allow_partial:
          title: Allow Partial
          type: boolean
        committed_experiments:
          title: Committed Experiments
          type: integer
        created_anchors:
          title: Created Anchors
          type: integer
        created_candidates:
          title: Created Candidates
          type: integer
        created_samples:
          title: Created Samples
          type: integer
        errors:
          items:
            $ref: '#/components/schemas/ValidationIssue'
          title: Errors
          type: array
        experiments:
          items:
            $ref: '#/components/schemas/IngestionMultiCommitExperimentResult'
          title: Experiments
          type: array
        failed_experiments:
          title: Failed Experiments
          type: integer
        idempotency_key:
          title: Idempotency Key
          type: string
        mode:
          const: manifest
          default: manifest
          title: Mode
          type: string
        reused_samples:
          title: Reused Samples
          type: integer
        total_rows:
          title: Total Rows
          type: integer
        valid_rows:
          title: Valid Rows
          type: integer
      required:
        - idempotency_key
        - allow_partial
        - total_rows
        - valid_rows
        - committed_experiments
        - failed_experiments
        - created_anchors
        - created_candidates
        - created_samples
        - reused_samples
        - experiments
        - errors
      title: IngestionMultiCommitResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    IngestionMultiManifestRow:
      description: Anchor row for multi-experiment manifest ingestion.
      properties:
        anchor:
          $ref: '#/components/schemas/AnchorRef'
        experiment_ref:
          maxLength: 255
          minLength: 1
          title: Experiment Ref
          type: string
        variants:
          items:
            $ref: '#/components/schemas/IngestionVariant'
          minItems: 2
          title: Variants
          type: array
      required:
        - experiment_ref
        - anchor
        - variants
      title: IngestionMultiManifestRow
      type: object
    ValidationIssue:
      description: Single validation issue.
      properties:
        code:
          title: Code
          type: string
        field:
          anyOf:
            - type: string
            - type: 'null'
          title: Field
        message:
          title: Message
          type: string
        row:
          anyOf:
            - type: integer
            - type: 'null'
          title: Row
      required:
        - code
        - message
      title: ValidationIssue
      type: object
    IngestionMultiCommitExperimentResult:
      description: Per-experiment commit result for multi-ingestion commit endpoint.
      properties:
        created_anchors:
          default: 0
          title: Created Anchors
          type: integer
        created_candidates:
          default: 0
          title: Created Candidates
          type: integer
        created_samples:
          default: 0
          title: Created Samples
          type: integer
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        experiment_id:
          format: uuid
          title: Experiment Id
          type: string
        experiment_name:
          title: Experiment Name
          type: string
        experiment_ref:
          title: Experiment Ref
          type: string
        ingestion_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Ingestion Id
        readiness_state_after_commit:
          anyOf:
            - type: string
            - type: 'null'
          title: Readiness State After Commit
        reused_samples:
          default: 0
          title: Reused Samples
          type: integer
        success:
          title: Success
          type: boolean
      required:
        - experiment_id
        - experiment_ref
        - experiment_name
        - success
      title: IngestionMultiCommitExperimentResult
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    AnchorRef:
      description: Inline anchor reference used by ingestion-compatible sample creation.
      properties:
        type:
          pattern: ^(text|image|audio|video)$
          title: Type
          type: string
        value:
          minLength: 1
          title: Value
          type: string
      required:
        - type
        - value
      title: AnchorRef
      type: object
    IngestionVariant:
      description: Candidate output for one anchor row.
      properties:
        asset:
          $ref: '#/components/schemas/IngestionAsset'
        candidate_key:
          maxLength: 128
          minLength: 1
          title: Candidate Key
          type: string
        candidate_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Candidate Label
        content_hash:
          anyOf:
            - maxLength: 128
              type: string
            - type: 'null'
          title: Content Hash
        is_exam_only:
          default: false
          title: Is Exam Only
          type: boolean
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
        parameters:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Parameters
        source_sample_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Source Sample Id
      required:
        - candidate_key
        - asset
      title: IngestionVariant
      type: object
    IngestionAsset:
      description: Single asset payload inside a manifest variant.
      properties:
        file_path:
          anyOf:
            - type: string
            - type: 'null'
          title: File Path
        text:
          anyOf:
            - type: string
            - type: 'null'
          title: Text
        type:
          enum:
            - text
            - image
            - audio
            - video
          title: Type
          type: string
      required:
        - type
      title: IngestionAsset
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: Supabase JWT
      scheme: bearer
      type: http
    ApiKeyAuth:
      in: header
      name: X-API-Key
      type: apiKey

````