Prompts
Update Prompt
Create a new version of an existing prompt
POST
Creates a new version of an existing prompt with updated content. Can create either a major or minor version.
Request Body
The unique identifier of the prompt to update
The unique identifier of the current prompt version to base the update on
Whether to create a new major version (true) or minor version (false)
Optional environment to set for this new version (e.g., “production”, “staging”, “development”)
A description of the changes made in this version
The updated prompt body following OpenAI chat completion format
Response
Unique identifier of the new prompt version