Update current template from agent file (Cloud-only)

Updates the current working version of a template from an agent file

Authentication

AuthorizationBearer

Header authentication of the form Bearer <token>

Path parameters

project_idstringRequired
The project id
template_namestringRequired

The template name (without version)

Request

Body
agent_file_jsonmap from strings to anyRequired
The agent file to update the current template version from
update_existing_toolsbooleanOptionalDefaults to false

If true, update existing custom tools source_code and json_schema (source_type cannot be changed)

save_existing_changesbooleanOptionalDefaults to false
If true, Letta will automatically save any changes as a version before updating the template

Response

200
successboolean
messagestring or null

Errors