Endpoint
POST
/v1/prompt/version/{promptVersionId}/subversionAuthentication
This endpoint requires API key authentication. Include your API key in the request headers:Path Parameters
The ID of the prompt version to create a new version from
Request Body
The new prompt template content
Whether this should be a major version bump (e.g., 1.0 -> 2.0) or minor (e.g., 1.0 -> 1.1)
Additional metadata for this version
Associated experiment ID if this version is part of an experiment
Reference to the major version to bump from
Response
New prompt version details
Unique identifier for the new version
Minor version number
Major version number
Prompt ID
Model specified in the template
The template content as JSON string
Version creation timestamp
Version metadata
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