Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

chore: update endpoints [LET-6311] (#6428)

Shubham Naikaa96aacde17f
diff --git a/fern/openapi.json b/fern/openapi.json
index 6704abf58..2b8341404 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": {