Skip to main content
Helicone OSS LLM Observability

Update Prompt

Create a new version of an existing prompt
1 min read
posthttps://api.helicone.ai/v1/prompt-2025/update
posthttps://api.helicone.ai/v1/prompt-2025/update

Creates a new version of an existing prompt with updated content. Can create either a major or minor version.

Request Body#

promptIdstringrequired#

The unique identifier of the prompt to update

promptVersionIdstringrequired#

The unique identifier of the current prompt version to base the update on

newMajorVersionbooleanrequired#

Whether to create a new major version (true) or minor version (false)

environmentstring#

Optional environment to set for this new version (e.g., "production", "staging", "development")

commitMessagestringrequired#

A description of the changes made in this version

promptBodyOpenAIChatRequestrequired#

The updated prompt body following OpenAI chat completion format

Response#

idstring#

Unique identifier of the new prompt version