Endpoint
string
default:"POST"
POST
string
/v1/prompt/version/{promptVersionId}/subversionAuthentication
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
string | null
Error message if the request failed, null otherwise
Example Request
Example Response
Notes
- Setting
isMajorVersion: trueincrements the major version (1.x -> 2.0) - Setting
isMajorVersion: falseor omitting it increments the minor version (1.1 -> 1.2) - All prompt versions are immutable once created