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

# Create dataset version

> Validates the working dataset and enqueues an asynchronous job to create a new dataset version.



## OpenAPI

````yaml /api-spec.json post /data/projects/{id}/datasets/versions
openapi: 3.0.0
info:
  contact:
    name: Acusight API Support
  description: >-
    Acusight platform API - custom endpoints + Portainer proxy routes for edge
    AI deployments
  title: Acusight API
  version: 1.0.0
servers:
  - url: https://acusight.io/api
    description: AcuSight Cloud (hosted)
security: []
tags:
  - name: Devices & provisioning
    description: Register, provision, and manage edge devices and their agents.
  - name: Virtual devices
    description: Create and drive simulated devices for testing and demos.
  - name: Alerts & telemetry
    description: Model alerts, alert rules, and product telemetry.
  - name: Organization
    description: Organization-level settings.
  - name: Datasets & data
    description: Projects, batches, datasets, images, annotations, and drift.
  - name: Models & training
    description: Model registry, training jobs, exports, and inference.
  - name: Pipeline data
    description: Detection time-series and aggregated pipeline analytics.
paths:
  /data/projects/{id}/datasets/versions:
    post:
      tags:
        - Datasets & data
      summary: Create dataset version
      description: >-
        Validates the working dataset and enqueues an asynchronous job to create
        a new dataset version.
      parameters:
        - description: Project ID
          in: path
          name: id
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/types.DatasetVersionCreateRequest'
        description: Dataset version payload
        required: true
      responses:
        '202':
          description: Version creation job queued
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/types.APIResponse'
                  - properties:
                      data:
                        $ref: '#/components/schemas/types.AsyncJobResponse'
                    type: object
        '400':
          description: Invalid request or insufficient batches
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/types.APIResponse'
        '404':
          description: Project not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/types.APIResponse'
        '500':
          description: Failed to enqueue dataset version
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/types.APIResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    types.DatasetVersionCreateRequest:
      properties:
        config:
          $ref: '#/components/schemas/types.DatasetVersionPipelineConfig'
        limit:
          type: integer
        name:
          type: string
      required:
        - name
      type: object
    types.APIResponse:
      properties:
        data: {}
        error:
          $ref: '#/components/schemas/types.APIError'
        meta:
          $ref: '#/components/schemas/types.APIMeta'
        success:
          type: boolean
      type: object
    types.AsyncJobResponse:
      properties:
        created_at:
          type: string
        job_id:
          type: string
        message:
          type: string
        status:
          type: string
      type: object
    types.DatasetVersionPipelineConfig:
      properties:
        augmentation:
          items:
            $ref: '#/components/schemas/types.DatasetPipelineStep'
          type: array
        augmentation_multiplier:
          type: integer
        augmentation_seed:
          type: integer
        config_version:
          type: integer
        metadata:
          additionalProperties:
            items:
              type: integer
            type: array
          description: Optional step metadata
          type: object
        preprocessing:
          items:
            $ref: '#/components/schemas/types.DatasetPipelineStep'
          type: array
      type: object
    types.APIError:
      properties:
        code:
          type: string
        details:
          type: string
        message:
          type: string
      type: object
    types.APIMeta:
      properties:
        count:
          type: integer
        limit:
          type: integer
        offset:
          type: integer
        total:
          type: integer
      type: object
    types.DatasetPipelineStep:
      properties:
        config:
          items:
            type: integer
          type: array
        id:
          type: string
        kind:
          $ref: '#/components/schemas/types.DatasetPipelineKind'
      type: object
    types.DatasetPipelineKind:
      enum:
        - autoOrient
        - isolateObjects
        - staticCrop
        - dynamicCrop
        - resize
        - grayscale
        - autoAdjustContrast
        - tile
        - modifyClasses
        - filterNull
        - augFlip
        - augRotate90
        - augRandomCrop
        - augRotate
        - augShear
        - augGrayscale
        - augHue
        - augSaturation
        - augBrightness
        - augExposure
        - augBlur
        - augNoise
        - augCutout
        - augMosaic
      type: string
      x-enum-varnames:
        - PipelineAutoOrient
        - PipelineIsolateObjects
        - PipelineStaticCrop
        - PipelineDynamicCrop
        - PipelineResize
        - PipelineGrayscale
        - PipelineAutoAdjust
        - PipelineTile
        - PipelineModifyClasses
        - PipelineFilterNull
        - PipelineAugFlip
        - PipelineAugRotate90
        - PipelineAugRandomCrop
        - PipelineAugRotate
        - PipelineAugShear
        - PipelineAugGrayscale
        - PipelineAugHue
        - PipelineAugSaturation
        - PipelineAugBrightness
        - PipelineAugExposure
        - PipelineAugBlur
        - PipelineAugNoise
        - PipelineAugCutout
        - PipelineAugMosaic
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT access token. Paste the token only; the Bearer prefix is added
        automatically.

````