POST
/
v2
/
experiment
/
{experimentId}
/
prompt-version
curl --request POST \
  --url https://api.helicone.ai/v2/experiment/{experimentId}/prompt-version \
  --header 'Content-Type: application/json' \
  --header 'authorization: <api-key>' \
  --data '{
  "newHeliconeTemplate": "<any>",
  "isMajorVersion": true,
  "metadata": {},
  "experimentId": "<string>",
  "bumpForMajorPromptVersionId": "<string>",
  "parentPromptVersionId": "<string>"
}'
{
  "data": {
    "id": "<string>",
    "minor_version": 123,
    "major_version": 123,
    "prompt_v2": "<string>",
    "model": "<string>",
    "helicone_template": "<string>",
    "created_at": "<string>",
    "metadata": {},
    "parent_prompt_version": "<string>",
    "experiment_id": "<string>",
    "updated_at": "<string>"
  }
}

Authorizations

authorization
string
header
required

Path Parameters

experimentId
string
required

Body

application/json
newHeliconeTemplate
any
required
parentPromptVersionId
string
required
isMajorVersion
boolean
metadata
object

Construct a type with a set of properties K of type T

experimentId
string
bumpForMajorPromptVersionId
string

Response

200 - application/json
Ok
data
object
required
error
enum<number> | null
required