---
title: "POST /unstable/dataset-entry/create"
method: POST
path: "/unstable/dataset-entry/create"
---

# POST /unstable/dataset-entry/create

`POST /unstable/dataset-entry/create`

Add new dataset entries. Note, this endpoint is unstable and may change without notice. Do not use without consulting the OpenPipe team.

## Request body

- object
  - `archiveId` string, required
  - `entries` object[], required
    - `messages` union[], required
      - union
        - object
          - `role` 'system', required
          - `content` string
        - object
          - `role` 'user', required
          - `content` union
            - string
            - union[]
              - …
        - object
          - `role` 'assistant', required
          - `content` union
            - string
            - 'null', nullable
          - `function_call` object
            - `name` string
            - `arguments` string
          - `tool_calls` object[]
            - `id` string, required
            - `function` object, required
              - …
            - `type` 'function', required
        - object
          - `role` 'tool', required
          - `content` string
          - `tool_call_id` string, required
        - object
          - `role` 'function', required
          - `name` string, required
          - `content` union, required
            - string
            - 'null', nullable
    - `function_call` union
      - 'none'
      - 'auto'
      - object
        - `name` string, required
    - `functions` object[]
      - `name` string, required
      - `parameters` object
      - `description` string
    - `tool_choice` union
      - 'none'
      - 'auto'
      - object
        - `type` 'function'
        - `function` object
          - `name` string, required
    - `tools` object[]
      - `function` object, required
        - `name` string, required
        - `parameters` object
        - `description` string
      - `type` 'function', required
    - `response_format` object
      - `type` union, required
        - 'text'
        - 'json_object'
    - `split` 'TRAIN' | 'TEST'

## Response `200`

Successful response

- object
  - `createdEntries` number, required
  - `errors` object[], required
    - `index` number, required
    - `message` string, required

## Other responses

- `default` — Error response

## Changes

> 11 revisions in range; 1 could not be searched.

- **2024-03-02** `104be69003ce` — 1 breaking, 1 warning
  - added the new required request property `archiveId`
  - removed the request property `datasetId`
- **2024-02-20** `609b8895f1ea` — 1 info
  - endpoint added
- **2023-12-21** `278bc0a942be` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/openpipe/apis/openpipe-api/changes/unstable/dataset-entry/create/post.md)

---

[API](https://skmtc.dev/openpipe/apis/openpipe-api.md) · [All operations](https://skmtc.dev/openpipe/apis/openpipe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openpipe/openpipe-api/revisions/4054c6b918a8/schema)
