From aa96aacde17fbb06251e21f97d3cb3e8564ddeaa Mon Sep 17 00:00:00 2001 From: Shubham Naik Date: Wed, 26 Nov 2025 15:07:19 -0800 Subject: [PATCH] chore: update endpoints [LET-6311] (#6428) chore: update endpoints Co-authored-by: Shubham Naik --- fern/openapi.json | 116 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) diff --git a/fern/openapi.json b/fern/openapi.json index 6704abf5..2b834140 100644 --- a/fern/openapi.json +++ b/fern/openapi.json @@ -18259,6 +18259,122 @@ } } } + }, + "patch": { + "description": "Updates the current working version of a template from an agent file", + "summary": "Update current template from agent file (Cloud-only)", + "tags": ["templates"], + "parameters": [ + { + "name": "template_name", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "The template name (without version)" + } + ], + "operationId": "templates.updateCurrentTemplateFromAgentFileNoProject", + "requestBody": { + "description": "Body", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "agent_file_json": { + "type": "object", + "additionalProperties": { + "nullable": true + }, + "description": "The agent file to update the current template version from" + }, + "update_existing_tools": { + "default": false, + "type": "boolean", + "description": "If true, update existing custom tools source_code and json_schema (source_type cannot be changed)" + }, + "save_existing_changes": { + "default": false, + "type": "boolean", + "description": "If true, Letta will automatically save any changes as a version before updating the template" + } + }, + "required": ["agent_file_json"] + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + } + }, + "required": ["success"] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": ["message"] + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": ["message"] + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": ["message"] + } + } + } + } + } } }, "/v1/templates/{project_id}/{template_name}/name": {