v36

latestOpenAPI 3.1.0raw.githubusercontent.com2025-10-091882241.2 MB
templates

Update current template from agent file (Cloud-only)

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

put/v1/templates/{project_id}/{template_name}/agent-file

Path parameters

project_idstring required

The project id

template_namestring required

The template name (without version)

Request body

agent_file_jsonobject required

The agent file to update the current template version from

update_existing_toolsboolean

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

save_existing_changesboolean

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

Response

200

successboolean required
messagestring