Retrieve a specific version of a prompt
Parameter | Type | Required | Description |
---|---|---|---|
prompt_id | str | Yes | The unique identifier of the prompt |
version_id | str | Yes | The unique identifier of the version |
get_version
method allows you to retrieve a specific version of a prompt by its version ID or version number. This is useful for accessing historical versions, comparing changes, or rolling back to previous versions.
Parameter | Type | Required | Description |
---|---|---|---|
prompt_id | str | Yes | The unique identifier of the prompt |
version_id | str | No* | The unique identifier of the version |
version_number | int | No* | The version number to retrieve |
version_id
or version_number
must be provided.
version_id
: Unique identifier for this versionprompt_id
: ID of the parent promptversion_number
: Sequential version numbercontent
: The version content with variablesdescription
: Optional description of changesvariables
: List of variables used in contentmetadata
: Version-specific metadatais_active
: Whether this version is currently activecreated_at
: Creation timestampcreated_by
: User who created the versionupdated_at
: Last modification timestamp (if applicable)