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

# Create Dataset entries

> Create dataset entries



## OpenAPI

````yaml /public-apis/openapi/datasets.json post /v1/datasets/entries
openapi: 3.0.0
info:
  version: 1.0.0
  contact:
    name: Maxim Engineering
    email: eng@getmaxim.ai
  title: Maxim SDK API - datasets
  description: API documentation for Maxim SDK datasets endpoints
servers:
  - url: https://api.getmaxim.ai
security: []
paths:
  /v1/datasets/entries:
    post:
      tags:
        - Dataset entry
      summary: Create Dataset entries
      description: Create dataset entries
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                workspaceId:
                  type: string
                  description: Unique identifier for the workspace
                datasetId:
                  type: string
                  description: Unique identifier for the dataset
                entries:
                  type: array
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        columnId:
                          type: string
                          minLength: 1
                        value:
                          oneOf:
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - text
                                  description: Text data type
                                payload:
                                  type: string
                                  description: Text content as a string
                              required:
                                - type
                                - payload
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - file
                                  description: File data type
                                payload:
                                  type: object
                                  properties:
                                    url:
                                      type: string
                                      format: uri
                                      description: Any publicly accessible URL of the file
                                    base64:
                                      type: string
                                      description: Base64 encoded file content
                                  description: >-
                                    File data containing either a URL or base64
                                    content
                              required:
                                - type
                                - payload
                          description: Value with conditional payload based on type
                      required:
                        - columnId
                        - value
                  minItems: 1
                  description: Entries to be added to a column in a dataset
              required:
                - workspaceId
                - datasetId
                - entries
      responses:
        '201':
          description: Dataset entries created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        rowNo:
                          type: number
                        createdAt:
                          type: string
                        cells:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                              columnId:
                                type: string
                              value:
                                type: object
                                properties:
                                  type:
                                    type: string
                                  payload:
                                    type: object
                                    properties:
                                      text:
                                        type: string
                                      files:
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            id:
                                              type: string
                                            url:
                                              type: string
                                          required:
                                            - id
                                            - url
                                required:
                                  - type
                                  - payload
                              createdAt:
                                type: string
                              deletedAt:
                                nullable: true
                              updatedAt:
                                type: string
                            required:
                              - id
                              - columnId
                              - value
                              - createdAt
                              - deletedAt
                              - updatedAt
                      required:
                        - id
                        - rowNo
                        - createdAt
                        - cells
                required:
                  - data
        '400':
          description: Invalid request parameters
        '404':
          description: Dataset not found
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-maxim-api-key
      description: API key for authentication

````