---
title: "Add a single pair to an existing seed dataset by ID"
method: POST
path: "/data/seed/{id}/pair"
---

# Add a single pair to an existing seed dataset by ID

`POST /data/seed/{id}/pair`

## Path parameters

- `id` string, required

## Request body

- object
  - `id` string — Optional ID for the pair, will be generated if not provided
  - `input` string, required
  - `output` string, required
  - `labels` string[]
  - `input_media` string, byte — Optional base64 encoded media data
  - `system_prompt_template` string — Optional - if provided when using a specific dataset ID, it will be ignored

## Response `200`

Pair successfully added to dataset

- object
  - `dataset_id` string
  - `pair_id` string

## Other responses

- `400` — Invalid request - missing required fields or dataset ID doesn't exist

## Changes

- **2025-06-30** `9025b1bd86d0` — 2 info
  - added the new optional request property `system_prompt_template`
  - added the non-success response with the status `400`
- **2025-06-11** `082d967348ad` — 1 info
  - added the new optional request property `input_media`
- **2025-04-30** `2eb8cb01b88b` — 1 info
  - endpoint added
- **2025-04-30** `9a3d86c43d3d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/getplumai/apis/plum-api/changes/data/seed/:id/pair/post.md)

---

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