Save template version (Cloud-only)

Saves the current version of the template as a new version

Authentication

AuthorizationBearer

Header authentication of the form Bearer <token>

Path Parameters

project_idstringRequired
The project id
template_namestringRequired

The template version, formatted as {template-name}, any version appended will be ignored

Request

Body
preserve_environment_variables_on_migrationbooleanOptional
If true, the environment variables will be preserved in the template version when migrating agents
preserve_core_memories_on_migrationbooleanOptional
If true, the core memories will be preserved in the template version when migrating agents
block_reconciliation_strategyenumOptional

Strategy for reconciling memory blocks during migration: “reconcile-all” deletes blocks not in the template, “preserve-deleted” keeps them. Defaults to “preserve-deleted”.

Allowed values:
migrate_agentsbooleanOptional
If true, existing agents attached to this template will be migrated to the new template version
messagestringOptional
A message to describe the changes made in this template version

Response

200
namestring
The exact name of the template
idstring
project_idstring
project_slugstring
latest_versionstring
The latest version of the template
template_deployment_slugstring
The full name of the template, including version and project slug
updated_atstring
When the template was last updated
descriptionstring or null

Errors