---
title: "Creates a new datapoint in the specified dataset."
method: POST
path: "/dataset/{datasetId}/datapoint"
tags: ["Datapoints"]
---

# Creates a new datapoint in the specified dataset.

`POST /dataset/{datasetId}/datapoint`

## Path parameters

- `datasetId` string, required

## Request body

- CreateDatapointEndpointInput — The body request for creating a new datapoint.
  - `asset` union, required
    - object
      - `_t` 'ExistingAssetInput', required
      - `name` string, required
      - `metadata` object, nullable
      - `identifier` string, nullable
    - object
      - `_t` 'MultiAssetInput', required
      - `assets` IAssetInput[], required
      - `metadata` object, nullable
      - `identifier` string, nullable
    - object
      - `_t` 'TextAssetInput', required
      - `text` string, required
      - `metadata` object, nullable
      - `identifier` string, nullable
  - `context` string, nullable — An additional context to show the users when solving the rapid.
  - `contextAsset` union
    - object
      - `_t` 'ExistingAssetInput', required
      - `name` string, required
      - `metadata` object, nullable
      - `identifier` string, nullable
    - object
      - `_t` 'MultiAssetInput', required
      - `assets` IAssetInput[], required
      - `metadata` object, nullable
      - `identifier` string, nullable
    - object
      - `_t` 'TextAssetInput', required
      - `text` string, required
      - `metadata` object, nullable
      - `identifier` string, nullable
  - `sortIndex` integer, nullable — The sort index represents the order of the datapoint in the dataset.
  - `group` string, nullable — The group a datapoint belongs to.
  - `transcription` string, nullable — For audio or video assets, an optional transcription of the content.
  - `privateMetadata` object, nullable — Private metadata for internal tracking. Not displayed to users.

## Response `200`

OK

- CreateDatapointEndpointOutput
  - `datapointId` string, required — The id of the created datapoint.

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden

---

[API](https://skmtc.net/rapidata/apis/rapidata-api.md) · [All operations](https://skmtc.net/rapidata/apis/rapidata-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rapidata/rapidata-api/versions/e42ec51c7b88/schema)
