---
title: "Adds a new prompt to a benchmark."
method: POST
path: "/benchmark/{benchmarkId}/prompt"
tags: ["Benchmark"]
---

# Adds a new prompt to a benchmark.

`POST /benchmark/{benchmarkId}/prompt`

## Path parameters

- `benchmarkId` string, required

## Request body

- CreatePromptForBenchmarkEndpointInput
  - `identifier` string, required — An identifier associated with the prompt.
  - `prompt` string, nullable — The prompt text.
  - `promptAsset` 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
  - `tags` Tag[], nullable — The tags associated with the prompt.
    - `value` string, required
    - `category` string, nullable
  - `origin` Origin
    - `source` string, required

## Response `200`

OK

- CreatePromptForBenchmarkEndpointOutput
  - `id` string, required — The id of the created prompt.

## 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)
