---
title: "Create Dataset Entry"
method: POST
path: "/datasets/{dataset_id}"
tags: ["datasets"]
---

# Create Dataset Entry

`POST /datasets/{dataset_id}`

## Path parameters

- `dataset_id` string, uuid, required — The id of the dataset

## Request body

- CreateDatasetEntryRequest
  - `input` unknown, required
  - `output` unknown, required
  - `expected` string, nullable — The expected output to the dataset entry, this is an optionally edited version of the output
  - `comment` string, nullable — The comment to the dataset entry

## Response `200`

Successful Response

- CreateDatasetEntryResponse
  - `id` string, uuid, required — The id of the dataset entry
  - `input` string, required — The input to the dataset entry
  - `output` string, required — The output to the dataset entry
  - `expected` string, nullable — The expected output to the dataset entry, this is an optionally edited version of the output
  - `comment` string, nullable — The comment to the dataset entry

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required (out of credits)
- `404` — Not Found
- `422` — Request Validation Error

---

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