> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs-beta.getzep.com/v3/sdk-reference/context/update-context-template/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-beta.getzep.com/_mcp/server. # Update Context Template PUT https://api.getzep.com/api/v2/context-templates/{template_id} Content-Type: application/json Updates an existing context template by template_id. Reference: https://docs-beta.getzep.com/sdk-reference/context/update-context-template ## Request ### Path parameters - `template_id` (string, required) — Template ID ### Body (application/json) This endpoint expects an apidata.UpdateContextTemplateRequest. - `template` (string, required) — The template content (max 1200 characters). ## Response ### 200 The updated context template. - `template` (string, optional) — The template content. - `template_id` (string, optional) — Unique identifier for the template (max 100 characters). - `uuid` (string, optional) — Unique identifier for the template. ## Errors ### 400 Bad Request Error Bad Request - `message` (string, optional) ### 404 Not Found Error Not Found - `message` (string, optional) ### 500 Internal Server Error Internal Server Error - `message` (string, optional) ## Examples **Request** ```json { "template": "Dear {{user_name}}, your appointment is confirmed for {{appointment_date}} at {{appointment_time}}." } ``` **Response** ```json { "template": "Dear {{user_name}}, your appointment is confirmed for {{appointment_date}} at {{appointment_time}}.", "template_id": "appt-confirm-2024", "uuid": "a3f1c9e2-7b4d-4f8a-9c2e-1d2f3b4a5c6d" } ```