Skip to main content
POST
/
data
/
seed
/
pair
Add a single pair to a dataset (creates new dataset if the system_prompt_template that's provided doesn't correspond to an existing dataset)
curl --request POST \
  --url https://beta.getplum.ai/v1/data/seed/pair \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "input": "<string>",
  "output": "<string>",
  "labels": [
    "<string>"
  ],
  "input_media": "aSDinaTvuI8gbWludGxpZnk=",
  "system_prompt_template": "<string>"
}'
{
  "dataset_id": "<string>",
  "pair_id": "<string>"
}

Authorizations

Authorization
string
header
required

Body

application/json
input
string
required
output
string
required
system_prompt_template
string
required

If this prompt already exists, the pair will be added to the existing dataset. If not, a new dataset will be created.

id
string

Optional ID for the pair, will be generated if not provided

labels
string[]
input_media
string<byte>

Optional base64 encoded media data

Response

Pair successfully added to dataset (existing or newly created)

dataset_id
string
pair_id
string
I