Skip to main content
POST
Creates a new version of an existing prompt. You can create either a minor version (incremental updates) or a major version (breaking changes).

Request Body

string
required
The unique identifier of the prompt to update
string
required
The version ID to base the new version on
boolean
required
Whether to create a new major version (true) or minor version (false)
string
required
Description of the changes in this version
string
Optional environment to associate with this version (e.g., “production”, “staging”)
object
required
The updated prompt content in OpenAI chat format

Response

object
string
The unique identifier for the new version
string | null
Error message if the request failed, null otherwise

Version Management

Minor Versions

Set newMajorVersion: false for incremental updates:
  • Bug fixes
  • Small improvements
  • Configuration tweaks
Example: 1.0 → 1.1 → 1.2

Major Versions

Set newMajorVersion: true for breaking changes:
  • Complete rewrites
  • Structural changes
  • Different model or approach
Example: 1.5 → 2.0 → 3.0