cURL
curl --request POST \ --url https://api.helicone.ai/v2/experiment/{experimentId}/prompt-version \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "newHeliconeTemplate": "<unknown>", "parentPromptVersionId": "<string>", "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>" }, "error": null }
Associate a prompt version with an experiment
eu.api.helicone.ai
api.helicone.ai
Bearer token authentication. Format: 'Bearer YOUR_API_KEY'
Construct a type with a set of properties K of type T
Show child attributes
Ok
Was this page helpful?