Skip to main content
POST
/
api
/
v2
/
projects
/
{project_id}
/
prompt-datasets
Create Prompt Dataset
curl --request POST \
  --url https://{host}.freeplay.ai/api/v2/projects/{project_id}/prompt-datasets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "input_names": [
    "<string>"
  ],
  "media_input_names": [
    "<string>"
  ],
  "support_history": false
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "input_names": [
    "<string>"
  ],
  "media_input_names": [
    "<string>"
  ],
  "support_history": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required

Body

application/json
name
string
required
description
string | null
input_names
string[] | null
media_input_names
string[] | null
support_history
boolean
default:false

Response

201 - application/json

PromptDatasetResponse(dataset: shared.sqlalchemy.models.TestList)

id
string<uuid>
required
name
string
required
description
string | null
required
input_names
string[]
required
media_input_names
string[]
required
support_history
boolean
required