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

# Post apidatasets

> GET /datasets/ — list visible datasets.
POST /datasets/ — promote an AssetContent into a new Dataset.



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/datasets/
openapi: 3.0.3
info:
  title: Console API
  version: 1.0.0
  description: Central control plane API for the Dataerai platform.
servers:
  - url: https://{server}
    description: Your Dataerai deployment (the API is served under /api)
    variables:
      server:
        default: your-deployment.dataerai.com
        description: Host of your Dataerai deployment
security: []
paths:
  /api/datasets/:
    post:
      tags:
        - api
      description: |-
        GET /datasets/ — list visible datasets.
        POST /datasets/ — promote an AssetContent into a new Dataset.
      operationId: api_datasets_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DatasetCreate'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/DatasetCreate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/DatasetCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Dataset'
          description: ''
      security:
        - cookieAuthCsrfExempt: []
components:
  schemas:
    DatasetCreate:
      type: object
      description: |-
        POST /datasets/ — create a Dataset and its first DatasetVersion
        from an existing AssetContent.

        The Dataset is owned by the caller by default. Pass
        ``owner_project_id`` to create a project-owned Dataset instead
        (the caller must be a member of that project); the view enforces
        ownership and resolves the user owner implicitly.
      properties:
        name:
          type: string
          maxLength: 255
        description:
          type: string
          default: ''
          maxLength: 4096
        asset_content_id:
          type: string
          format: uuid
        owner_project_id:
          type: string
          format: uuid
          nullable: true
      required:
        - asset_content_id
        - name
    Dataset:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          maxLength: 255
        description:
          type: string
        owner_user:
          type: string
          format: uuid
          nullable: true
        owner_project:
          type: string
          format: uuid
          nullable: true
        creator:
          type: string
          format: uuid
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        versions:
          type: array
          items:
            $ref: '#/components/schemas/DatasetVersion'
          readOnly: true
        did:
          type: string
          readOnly: true
      required:
        - created_at
        - creator
        - did
        - id
        - name
        - updated_at
        - versions
    DatasetVersion:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        dataset:
          type: string
          format: uuid
          readOnly: true
        version_number:
          type: integer
          readOnly: true
        asset_content:
          type: string
          format: uuid
          readOnly: true
        status:
          allOf:
            - $ref: '#/components/schemas/DatasetVersionStatusEnum'
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - asset_content
        - created_at
        - dataset
        - id
        - status
        - updated_at
        - version_number
    DatasetVersionStatusEnum:
      enum:
        - UPLOADED
        - PREPROCESSING_QUEUED
        - PREPROCESSING_RUNNING
        - PREPROCESSING_FAILED
        - READY
        - DEPRECATED
      type: string
      description: |-
        * `UPLOADED` - Uploaded
        * `PREPROCESSING_QUEUED` - Preprocessing Queued
        * `PREPROCESSING_RUNNING` - Preprocessing Running
        * `PREPROCESSING_FAILED` - Preprocessing Failed
        * `READY` - Ready
        * `DEPRECATED` - Deprecated

````