curl --request POST \
--url https://api.helicone.ai/v1/prompt/version/{promptVersionId}/subversion \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"newHeliconeTemplate": "<any>",
"isMajorVersion": true,
"metadata": {},
"experimentId": "<string>",
"bumpForMajorPromptVersionId": "<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>"
}
}
Retrieve a subversion of a specific prompt version
curl --request POST \
--url https://api.helicone.ai/v1/prompt/version/{promptVersionId}/subversion \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"newHeliconeTemplate": "<any>",
"isMajorVersion": true,
"metadata": {},
"experimentId": "<string>",
"bumpForMajorPromptVersionId": "<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>"
}
}
Ok
The response is of type object
.
Was this page helpful?