curl -X POST https://api.helicone.ai/v1/prompt-2025/update \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"promptId": "prompt_abc123xyz",
"promptVersionId": "version_def456uvw",
"newMajorVersion": false,
"commitMessage": "Updated temperature and added max_tokens",
"environment": "production",
"promptBody": {
"model": "gpt-4o",
"messages": [
{
"role": "system",
"content": "You are a helpful customer support agent. Be polite and professional."
},
{
"role": "user",
"content": "{{user_question}}"
}
],
"temperature": 0.5,
"max_tokens": 750
}
}'
{
"data": {
"id": "version_ghi789rst"
},
"error": null
}
Create a new version of an existing prompt
curl -X POST https://api.helicone.ai/v1/prompt-2025/update \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"promptId": "prompt_abc123xyz",
"promptVersionId": "version_def456uvw",
"newMajorVersion": false,
"commitMessage": "Updated temperature and added max_tokens",
"environment": "production",
"promptBody": {
"model": "gpt-4o",
"messages": [
{
"role": "system",
"content": "You are a helpful customer support agent. Be polite and professional."
},
{
"role": "user",
"content": "{{user_question}}"
}
],
"temperature": 0.5,
"max_tokens": 750
}
}'
{
"data": {
"id": "version_ghi789rst"
},
"error": null
}
Creates a new version of an existing prompt. You can create either a minor version (incremental updates) or a major version (breaking changes).Documentation Index
Fetch the complete documentation index at: https://mintlify.com/helicone/helicone/llms.txt
Use this file to discover all available pages before exploring further.
Show Prompt Body
curl -X POST https://api.helicone.ai/v1/prompt-2025/update \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"promptId": "prompt_abc123xyz",
"promptVersionId": "version_def456uvw",
"newMajorVersion": false,
"commitMessage": "Updated temperature and added max_tokens",
"environment": "production",
"promptBody": {
"model": "gpt-4o",
"messages": [
{
"role": "system",
"content": "You are a helpful customer support agent. Be polite and professional."
},
{
"role": "user",
"content": "{{user_question}}"
}
],
"temperature": 0.5,
"max_tokens": 750
}
}'
{
"data": {
"id": "version_ghi789rst"
},
"error": null
}
newMajorVersion: false for incremental updates:
newMajorVersion: true for breaking changes: