Skip to main content

Endpoint

string
default:"POST"
POST
string
/v1/prompt/version/{promptVersionId}/subversion

Authentication

This endpoint requires API key authentication. Include your API key in the request headers:

Path Parameters

string
required
The ID of the prompt version to create a new version from

Request Body

object
required
The new prompt template content
boolean
Whether this should be a major version bump (e.g., 1.0 -> 2.0) or minor (e.g., 1.0 -> 1.1)
object
Additional metadata for this version
string
Associated experiment ID if this version is part of an experiment
string
Reference to the major version to bump from

Response

object
New prompt version details
string
Unique identifier for the new version
number
Minor version number
number
Major version number
string
Prompt ID
string
Model specified in the template
string
The template content as JSON string
string
Version creation timestamp
object
Version metadata
string | null
Error message if the request failed, null otherwise

Example Request

Example Response

Notes

  • Setting isMajorVersion: true increments the major version (1.x -> 2.0)
  • Setting isMajorVersion: false or omitting it increments the minor version (1.1 -> 1.2)
  • All prompt versions are immutable once created