curl -X POST "https://api.helicone.ai/v1/prompt-2025/update" \ -H "Authorization: Bearer $HELICONE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "promptId": "prompt_123", "promptVersionId": "version_456", "newMajorVersion": true, "setAsProduction": true, "commitMessage": "Updated system prompt for better customer interactions", "promptBody": { "model": "gpt-4", "messages": [ { "role": "system", "content": "You are an expert customer support assistant with deep knowledge of our products." } ], "temperature": 0.7 } }'
{ "id": "version_789" }
Create a new version of an existing prompt
Was this page helpful?