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

chore: update endpoints

Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
Shubham Naik
2025-11-26 15:07:19 -08:00
committed by Caren Thomas
parent 92bad11453
commit aa96aacde1

View File

@@ -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": {