cURL
curl --request POST \ --url https://api.helicone.ai/v1/prompt/version/{promptVersionId}/promote \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "previousProductionVersionId": "<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>" } }
Promote a specific version of a prompt
Bearer token authentication. Format: 'Bearer YOUR_API_KEY'
Ok
Show child attributes
Was this page helpful?