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

Request Body

string
required
The unique identifier of the prompt to update
string
required
The unique identifier of the current prompt version to base the update on
boolean
required
Whether to create a new major version (true) or minor version (false)
string
Optional environment to set for this new version (e.g., “production”, “staging”, “development”)
string
required
A description of the changes made in this version
OpenAIChatRequest
required
The updated prompt body following OpenAI chat completion format

Response

string
Unique identifier of the new prompt version