Save template version (Cloud-only)

Saves the current version of the template as a new version

Path parameters

projectstringRequired
The project slug
template_namestringRequired

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

Headers

AuthorizationstringRequired

Header authentication of the form Bearer <token>

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
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
descriptionstring or null

Errors