{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SendX Docs","colors":{"primary":"#ffd700","light":"#ffd700","dark":"#ffaa00"},"logo":{"light":"https://mintcdn.com/sendx-31f00733/3nIKI_xln-0gUAbn/logo/light.svg?fit=max\u0026auto=format\u0026n=3nIKI_xln-0gUAbn\u0026q=85\u0026s=5ce863c22b88897598d8f817e4420c6d","dark":"https://mintcdn.com/sendx-31f00733/3nIKI_xln-0gUAbn/logo/dark.svg?fit=max\u0026auto=format\u0026n=3nIKI_xln-0gUAbn\u0026q=85\u0026s=92d7a2d0308e90e285be961ebcd78e01"},"favicon":"https://mintcdn.com/sendx-31f00733/3nIKI_xln-0gUAbn/favicon.svg?fit=max\u0026auto=format\u0026n=3nIKI_xln-0gUAbn\u0026q=85\u0026s=d0f924b5471196116b6f44d8bf8393f7","navbar":{"links":[{"href":"mailto:support@sendx.io","label":"Support"}],"primary":{"type":"button","label":"SendX","href":"https://app.sendx.io/"}},"footer":{"socials":{"x":"https://x.com/sendxio","github":"https://github.com/sendx","linkedin":"https://www.linkedin.com/company/sendx","youtube":"https://www.youtube.com/@sendxio"}},"integrations":{"intercom":{"appId":"APP_ID"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sendx-31f00733","hasAudioNarration":false,"actualSubdomain":"sendx-31f00733","customDomains":["docs.sendx.io"],"gitSource":{"type":"github","owner":"sendx","repo":"sendx-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6af4544111a64f5928888840","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API Reference","count":75},{"language":"default","tag":"Welcome","count":12},{"language":"default","tag":"Getting Started","count":7},{"language":"default","tag":"Webhook","count":7},{"language":"default","tag":"Quickstart","count":7},{"language":"default","tag":"Contact","count":6},{"language":"default","tag":"Custom Field","count":5},{"language":"default","tag":"List","count":5},{"language":"default","tag":"Post Category","count":5},{"language":"default","tag":"Post Tag","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/template/update-template","slug":"/api-reference/template/update-template","pageMetadata":{"openapi":"put /template/email/{identifier}","title":"Update template","description":"Updates an existing email template.\n","href":"/api-reference/template/update-template"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Updates an existing email template.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components};return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`🔧 Update Capabilities:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Modify template name and content`}),`\n`,_jsx(_components.li,{children:`Change HTML code and template structure`}),`\n`,_jsx(_components.li,{children:`Update editor type (with validation)`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`⚠️ Important Considerations:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Editor type changes may affect template compatibility`}),`\n`,_jsx(_components.li,{children:`Active campaigns using this template will use cached version`}),`\n`,_jsx(_components.li,{children:`Thumbnails are regenerated automatically`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`🎯 Common Update Scenarios:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Fix template bugs or styling issues`}),`\n`,_jsx(_components.li,{children:`Update branding or design elements`}),`\n`,_jsx(_components.li,{children:`Add new template variables or sections`}),`\n`,_jsx(_components.li,{children:`Optimize template for mobile devices`}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"put /template/email/{identifier}","title":"Update template","description":"Updates an existing email template.\n","href":"/api-reference/template/update-template"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/sendx-31f00733/4aa6ed8c32d296da/swan.js"],"openApiReferenceData":{"operation":{"tags":["Template"],"summary":"Update template","description":"Updates an existing email template.\n","operationId":"updateEmailTemplate","security":["573f66f3-2c18-4190-b673-2badb351298f","dd59a5ab-fdbe-4bcb-8b21-de3aa58f8afc"],"parameters":["e9ca6043-074f-4e10-ab3b-92a8a54ec74b"],"requestBody":"01e08254-f993-4ca3-827d-2b4614c96f10","responses":{"200":"1e61a7fe-7299-4fb2-80c2-42a1d7b2410b","401":"c5401796-0889-4c84-97e1-3d985ca3529e","403":"66913230-3f36-4253-b90e-c165b9b7a7e2","404":"c69b1dc9-683c-4b3b-9bbd-66a1d61826d6","422":"1bdf1a3a-2165-47eb-bc3b-426c5edd493c","500":"efbb39a7-557f-476b-9fd1-1a5f52a37e52"},"method":"put","type":"path","servers":["55b201ea-c144-4553-94c6-1653b5424aed"],"path":"/template/email/{identifier}","baseUrlOptions":["https://api.sendx.io/api/v1/rest"],"title":"Update template","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"e9ca6043-074f-4e10-ab3b-92a8a54ec74b":{"name":"identifier","in":"path","required":true,"description":"The unique template identifier to update.\n\n- `template_f3lJvTEhSjKGVb5Lwc5SWS`\n","schema":{"type":"string","pattern":"^(template_)?[a-zA-Z0-9]{22}$","example":"template_f3lJvTEhSjKGVb5Lwc5SWS","isRequired":true,"description":"The unique template identifier to update.\n\n- `template_f3lJvTEhSjKGVb5Lwc5SWS`\n","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","subject"],"properties":{"name":{"type":"string","description":"Template name","example":"Welcome Email Template","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"htmlCode":{"type":"string","description":"HTML email content","uniqueKey":"htmlCode","typeLabel":"string"},"templateCode":{"type":"string","description":"Template code for the selected template type","uniqueKey":"templateCode","typeLabel":"string"},"editorType":{"type":"integer","description":"Editor type used to create the template.\n\n**Values:**\n- `0` - PlainText\n- `1` - DragDrop\n- `2` - SendxEditor\n","uniqueKey":"editorType","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"Welcome Email Template","htmlCode":"\u003cstring>","templateCode":"\u003cstring>","editorType":123}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"1e61a7fe-7299-4fb2-80c2-42a1d7b2410b":{"description":"✅ Template updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^template_[a-zA-Z0-9]{22}$","description":"Unique template identifier with template_ prefix","example":"template_abc123def456ghi789","uniqueKey":"id","typeLabel":"string"},"name":{"type":"string","description":"Name of the template","example":"Welcome Email Template","uniqueKey":"name","typeLabel":"string"},"subject":{"oneOf":[{"type":"string","description":"Email subject line (if applicable)","example":"Welcome to our platform!","uniqueKey":"subject.oneOf.0","typeLabel":"string"},{"type":"null","description":"Email subject line (if applicable)","example":"Welcome to our platform!","uniqueKey":"subject.oneOf.1","typeLabel":"null"}],"uniqueKey":"subject","typeLabel":"string | null"},"htmlCode":{"type":"string","description":"HTML content of the template","example":"\u003chtml>\u003cbody>\u003ch1>Welcome!\u003c/h1>\u003c/body>\u003c/html>","uniqueKey":"htmlCode","typeLabel":"string"},"templateCode":{"oneOf":[{"type":"string","description":"Template code for visual editors (JSON structure)","example":"{\"blocks\":[{\"type\":\"text\",\"content\":\"Welcome!\"}]}","uniqueKey":"templateCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Template code for visual editors (JSON structure)","example":"{\"blocks\":[{\"type\":\"text\",\"content\":\"Welcome!\"}]}","uniqueKey":"templateCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"templateCode","typeLabel":"string | null"},"type":{"type":"integer","description":"Template type.\n\n**Values:**\n- `0` - Email template\n- `1` - Other types\n","example":0,"uniqueKey":"type","typeLabel":"integer"},"thumbnail":{"oneOf":[{"type":"string","description":"URL to template thumbnail image","example":"https://cdn.sendx.io/templates/thumb_abc123.png","uniqueKey":"thumbnail.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to template thumbnail image","example":"https://cdn.sendx.io/templates/thumb_abc123.png","uniqueKey":"thumbnail.oneOf.1","typeLabel":"null"}],"uniqueKey":"thumbnail","typeLabel":"string | null"},"editorType":{"type":"integer","description":"Editor type used to create the template.\n\n**Values:**\n- `0` - PlainText\n- `1` - DragDrop\n- `2` - SendxEditor\n","example":1,"uniqueKey":"editorType","typeLabel":"integer"},"created":{"type":"string","format":"date-time","description":"Template creation timestamp","example":"2024-01-10T14:20:00Z","uniqueKey":"created","typeLabel":"string\u003cdate-time>"},"updated":{"type":"string","format":"date-time","description":"Template last update timestamp","example":"2024-01-15T09:15:00Z","uniqueKey":"updated","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"update_newsletter":{"title":"update_newsletter","summary":"📰 Update newsletter template design","value":{"name":"Weekly Newsletter Template v2","htmlCode":"\u003chtml>\u003chead>\u003cstyle>.newsletter{max-width:650px;margin:0 auto;font-family:'Helvetica Neue',Arial,sans-serif}.header{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:white;padding:30px;text-align:center}\u003c/style>\u003c/head>\u003cbody>\u003cdiv class=\"newsletter\">\u003cdiv class=\"header\">\u003ch1>{{company.name}}\u003c/h1>\u003cp>Your Weekly Digest\u003c/p>\u003c/div>\u003cdiv class=\"content\">{{email.content}}\u003c/div>\u003c/div>\u003c/body>\u003c/html>","templateCode":"{}","editorType":1}},"upgrade_to_advanced":{"title":"upgrade_to_advanced","summary":"🚀 Upgrade to advanced HTML editor","value":{"name":"Advanced Product Showcase","htmlCode":"\u003chtml>\u003chead>\u003cmeta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\u003cstyle>@media (max-width:600px){.product-grid{grid-template-columns:1fr!important}}.product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;padding:20px}\u003c/style>\u003c/head>\u003cbody>\u003cdiv class=\"product-grid\">{{#products}}\u003cdiv class=\"product\">\u003cimg src=\"{{image}}\" alt=\"{{name}}\">\u003ch3>{{name}}\u003c/h3>\u003cp class=\"price\">{{price}}\u003c/p>\u003ca href=\"{{url}}\" class=\"btn\">Buy Now\u003c/a>\u003c/div>{{/products}}\u003c/div>\u003c/body>\u003c/html>","templateCode":"","editorType":2}}},"exampleType":"examples"}},"exampleType":"examples"},"c5401796-0889-4c84-97e1-3d985ca3529e":{"description":"❌ Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"],"example":"error","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message","example":"Invalid request format","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["status","message"],"uniqueKey":"","typeLabel":"object"},"example":{"status":401,"message":"The Team ID or API Key specified is not valid"},"examples":{"Example":{"title":"Example","value":{"status":401,"message":"The Team ID or API Key specified is not valid"}}},"exampleType":"examples"}},"exampleType":"examples"},"66913230-3f36-4253-b90e-c165b9b7a7e2":{"description":"❌ Forbidden - Resource name already exists","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"],"example":"error","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message","example":"Invalid request format","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["status","message"],"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","message":"Resource with this name already exists"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"Resource with this name already exists"}}},"exampleType":"examples"}},"exampleType":"examples"},"c69b1dc9-683c-4b3b-9bbd-66a1d61826d6":{"description":"❌ Not Found - Resource does not exist","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"],"example":"error","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message","example":"Invalid request format","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["status","message"],"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","message":"Resource not found"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"Resource not found"}}},"exampleType":"examples"}},"exampleType":"examples"},"1bdf1a3a-2165-47eb-bc3b-426c5edd493c":{"description":"❌ Unprocessable Entity - Invalid request format","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"],"example":"error","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message","example":"Invalid request format","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["status","message"],"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","message":"Request body is not in proper format"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"Request body is not in proper format"}}},"exampleType":"examples"}},"exampleType":"examples"},"efbb39a7-557f-476b-9fd1-1a5f52a37e52":{"description":"❌ Internal Server Error - System error occurred","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"],"example":"error","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error message","example":"Invalid request format","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["status","message"],"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","message":"Internal server error occurred"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"Internal server error occurred"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"573f66f3-2c18-4190-b673-2badb351298f":{"TeamApiKey":{"type":"apiKey","in":"header","name":"X-Team-ApiKey","description":"Team API key for authentication. Find your API key in SendX Settings → Team API Key.\n\n**Example:**\n```\nX-Team-ApiKey: your_team_api_key_here\n```\n","scopes":[],"schemeName":"TeamApiKey"}},"dd59a5ab-fdbe-4bcb-8b21-de3aa58f8afc":{"BearerAuth":{"type":"http","scheme":"bearer","description":"The same team API key, sent as a standard bearer token. Use this with tools that\nonly support `Authorization: Bearer`, such as AI agent platforms.\n\n**Example:**\n```\nAuthorization: Bearer your_team_api_key_here\n```\n","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"55b201ea-c144-4553-94c6-1653b5424aed":{"url":"https://api.sendx.io/api/v1/rest","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Team-ApiKey","description":"Team API key for authentication. Find your API key in SendX Settings → Team API Key.\n\n**Example:**\n```\nX-Team-ApiKey: your_team_api_key_here\n```\n","scopes":[],"schemeName":"TeamApiKey"},"schema":{"title":"X-Team-ApiKey","type":"string","description":"Team API key for authentication. Find your API key in SendX Settings → Team API Key.\n\n**Example:**\n```\nX-Team-ApiKey: your_team_api_key_here\n```\n","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"TeamApiKey","name":"X-Team-ApiKey"}],"title":"TeamApiKey"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"The same team API key, sent as a standard bearer token. Use this with tools that\nonly support `Authorization: Bearer`, such as AI agent platforms.\n\n**Example:**\n```\nAuthorization: Bearer your_team_api_key_here\n```\n","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"The same team API key, sent as a standard bearer token. Use this with tools that\nonly support `Authorization: Bearer`, such as AI agent platforms.\n\n**Example:**\n```\nAuthorization: Bearer your_team_api_key_here\n```\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"swagger.yaml"},"subdomain":"sendx-31f00733","siteName":"SendX Docs","title":"Update template - SendX Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-12T12:04:26.650Z","originalFileLocation":"api-reference/template/update-template.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Updates an existing email template.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SendX Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sendx-31f00733/oFBACZyJ7SbOXIH3/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/sendx-31f00733/oFBACZyJ7SbOXIH3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sendx-31f00733/oFBACZyJ7SbOXIH3/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sendx-31f00733/oFBACZyJ7SbOXIH3/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sendx-31f00733/oFBACZyJ7SbOXIH3/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sendx-31f00733/oFBACZyJ7SbOXIH3/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sendx-31f00733/oFBACZyJ7SbOXIH3/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sendx-31f00733/oFBACZyJ7SbOXIH3/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sendx-31f00733/oFBACZyJ7SbOXIH3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update template - SendX Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Updates an existing email template.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SendX Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sendx.io/api-reference/template/update-template\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sendx-31f00733.mintlify.site/_mintlify/api/og/v2?division=Template\u0026amp;title=Update+template\u0026amp;description=Updates+an+existing+email+template.%0A\u0026amp;theme=9ff196e8058282f6329177f2\u0026amp;signature=cd1352c6244724db4a5c18c95b1f3b8b2710805f2e15a9e03fa326aaddd039e0\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update template - SendX Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Updates an existing email template.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sendx-31f00733.mintlify.site/_mintlify/api/og/v2?division=Template\u0026amp;title=Update+template\u0026amp;description=Updates+an+existing+email+template.%0A\u0026amp;theme=9ff196e8058282f6329177f2\u0026amp;signature=cd1352c6244724db4a5c18c95b1f3b8b2710805f2e15a9e03fa326aaddd039e0\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/sendx-31f00733/oFBACZyJ7SbOXIH3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SendX Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ffd700\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sendx.io/api-reference/template/update-template\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/template/update-template.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sendx.io/#organization\",\"name\":\"SendX Docs\",\"url\":\"https://docs.sendx.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sendx-31f00733/3nIKI_xln-0gUAbn/logo/light.svg?fit=max\u0026auto=format\u0026n=3nIKI_xln-0gUAbn\u0026q=85\u0026s=5ce863c22b88897598d8f817e4420c6d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sendx.io#website\",\"name\":\"SendX Docs\",\"url\":\"https://docs.sendx.io\",\"publisher\":{\"@id\":\"https://docs.sendx.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sendx.io/api-reference/template/update-template#webpage\",\"url\":\"https://docs.sendx.io/api-reference/template/update-template\",\"name\":\"Update template\",\"description\":\"Updates an existing email template.\",\"dateModified\":\"2026-10-12T12:04:26.650Z\",\"isPartOf\":{\"@id\":\"https://docs.sendx.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sendx.io/api-reference/template/update-template#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sendx.io/api-reference/template/update-template#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Template\",\"item\":\"https://docs.sendx.io/api-reference/template/get-all-templates\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update template\",\"item\":\"https://docs.sendx.io/api-reference/template/update-template\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.sendx.io/api-reference/template/update-template#apireference\",\"headline\":\"Update template\",\"name\":\"Update template\",\"description\":\"Updates an existing email template.\",\"url\":\"https://docs.sendx.io/api-reference/template/update-template\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sendx.io/api-reference/template/update-template#webpage\"},\"dateModified\":\"2026-10-12T12:04:26.650Z\",\"publisher\":{\"@id\":\"https://docs.sendx.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sendx.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SendX Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SendX Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/template/update-template.md","siteName":"SendX Docs","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Welcome","pages":[{"title":"Welcome","href":""}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Schemas","href":"/api-reference/schema"}]},{"group":"Getting Started","pages":[{"openapi":"post /contact/identify","title":"Identify contact","href":"/api-reference/getting-started/identify-contact"},{"openapi":"post /contact/identify/bulk","title":"Identify Bulk Contacts","href":"/api-reference/getting-started/identify-contact-bulk"},{"openapi":"post /contact/track","title":"Track contact","href":"/api-reference/getting-started/add-tracking-info"}]},{"group":"Email Sending","pages":[{"openapi":"post /send/email","title":"Send transactional email","href":"/api-reference/email-sending/send-transactional-email"},{"openapi":"post /send/template","title":"Send email using template","href":"/api-reference/email-sending/send-email-using-template"},{"title":"Personalization \u0026 Merge Tags","sidebarTitle":"Personalization","href":"/api-reference/email-sending/personalization"}]},{"group":"Contact","pages":[{"openapi":"get /contact","title":"Get all contacts","href":"/api-reference/contact/get-all-contacts"},{"openapi":"post /contact","title":"Create a new contact","href":"/api-reference/contact/create-a-new-contact"},{"openapi":"get /contact/{identifier}","title":"Get contact by ID","href":"/api-reference/contact/get-contact-by-id"},{"openapi":"put /contact/{identifier}","title":"Update contact","href":"/api-reference/contact/update-contact"},{"openapi":"delete /contact/{identifier}","title":"Delete contact","href":"/api-reference/contact/delete-contact"},{"openapi":"post /contact/unsubscribe/{identifier}","title":"Unsubscribe contact","href":"/api-reference/contact/unsubscribe-contact"}]},{"group":"Events","pages":[{"openapi":"post /events/revenue","title":"Push revenue event","href":"/api-reference/events/track-revenue-event"},{"openapi":"post /events/custom","title":"Push custom event","href":"/api-reference/events/track-custom-event"}]},{"group":"Campaign","pages":[{"openapi":"get /campaign","title":"Get all campaigns","href":"/api-reference/campaign/get-all-campaigns"},{"openapi":"post /campaign","title":"Create campaign","href":"/api-reference/campaign/create-campaign"},{"openapi":"get /campaign/{identifier}","title":"Get campaign by ID","href":"/api-reference/campaign/get-campaign-by-id"},{"openapi":"delete /campaign/{identifier}","title":"Delete campaign","href":"/api-reference/campaign/delete-campaign"}]},{"group":"List","pages":[{"openapi":"get /list","title":"Get all lists","href":"/api-reference/list/get-all-lists"},{"openapi":"post /list","title":"Create list","href":"/api-reference/list/create-list"},{"openapi":"get /list/{identifier}","title":"Get list by ID","href":"/api-reference/list/get-list-by-id"},{"openapi":"put /list/{identifier}","title":"Update list","href":"/api-reference/list/update-list"},{"openapi":"delete /list/{identifier}","title":"Delete list","href":"/api-reference/list/delete-list"}]},{"group":"Tag","pages":[{"openapi":"get /tag","title":"Get all tags","href":"/api-reference/tag/get-all-tags"},{"openapi":"post /tag","title":"Create tag","href":"/api-reference/tag/create-tag"},{"openapi":"get /tag/{identifier}","title":"Get tag by ID","href":"/api-reference/tag/get-tag-by-id"},{"openapi":"put /tag/{identifier}","title":"Update tag","href":"/api-reference/tag/update-tag"},{"openapi":"delete /tag/{identifier}","title":"Delete tag","href":"/api-reference/tag/delete-tag"}]},{"group":"Segment","pages":[{"openapi":"get /segment","title":"Get all segments","href":"/api-reference/segment/get-all-segments"},{"openapi":"get /segment/{identifier}","title":"Get segment by ID","href":"/api-reference/segment/get-segment-by-id"}]},{"group":"Sender","pages":[{"openapi":"get /sender","title":"Get all senders","href":"/api-reference/sender/get-all-senders"},{"openapi":"post /sender","title":"Create sender","href":"/api-reference/sender/create-sender"}]},{"group":"Template","pages":[{"openapi":"get /template/email","title":"Get all templates","href":"/api-reference/template/get-all-templates"},{"openapi":"post /template/email","title":"Create email template","href":"/api-reference/template/create-email-template"},{"openapi":"get /template/email/{identifier}","title":"Get template by ID","description":"Retrieves a specific email template.\n","href":"/api-reference/template/get-template-by-id"},{"openapi":"put /template/email/{identifier}","title":"Update template","href":"/api-reference/template/update-template"},{"openapi":"delete /template/email/{identifier}","title":"Delete template","description":"Deletes an email template.\n","href":"/api-reference/template/delete-template"}]},{"group":"Custom Field","pages":[{"openapi":"get /customfield","title":"Get all custom fields","href":"/api-reference/custom-field/get-all-custom-fields"},{"openapi":"post /customfield","title":"Create custom field","href":"/api-reference/custom-field/create-custom-field"},{"openapi":"get /customfield/{identifier}","title":"Get custom field by ID","href":"/api-reference/custom-field/get-custom-field-by-id"},{"openapi":"put /customfield/{identifier}","title":"Update custom field","href":"/api-reference/custom-field/update-custom-field"},{"openapi":"delete /customfield/{identifier}","title":"Delete custom field","href":"/api-reference/custom-field/delete-custom-field"}]},{"group":"Domain","pages":[{"openapi":"get /domain","title":"Get all domains","href":"/api-reference/domain/get-all-domains"},{"openapi":"post /domain","title":"Create domain","href":"/api-reference/domain/create-domain"},{"openapi":"get /domain/{identifier}","title":"Get domain by ID","href":"/api-reference/domain/get-domain-by-id"},{"openapi":"delete /domain/{identifier}","title":"Delete domain","href":"/api-reference/domain/delete-domain"}]},{"group":"Webhook","pages":[{"openapi":"get /webhook","title":"Get all webhooks","href":"/api-reference/webhook/get-all-webhooks"},{"openapi":"post /webhook","title":"Create webhook","href":"/api-reference/webhook/create-webhook"},{"openapi":"get /webhook/{identifier}","title":"Get webhook by ID","href":"/api-reference/webhook/get-webhook-by-id"},{"openapi":"put /webhook/{identifier}","title":"Update webhook","href":"/api-reference/webhook/update-webhook"},{"openapi":"delete /webhook/{identifier}","title":"Delete webhook","href":"/api-reference/webhook/delete-webhook"},{"title":"SendX Webhook Object","openapi":"webhook SendXWebhooks","href":"/api-reference/webhook/sendx-webhook-object"},{"title":"Verifying SendX Webhook","href":"/api-reference/webhook/verify-webhook"}]},{"group":"Report","pages":[{"openapi":"get /report/campaign/{identifier}","title":"Get campaign report","href":"/api-reference/report/get-campaign-report"}]},{"group":"Post","pages":[{"openapi":"get /post","title":"Get all posts","href":"/api-reference/post/get-all-posts"},{"openapi":"post /post","title":"Create blog post","href":"/api-reference/post/create-blog-post"},{"openapi":"get /post/{identifier}","title":"Get post by ID","href":"/api-reference/post/get-post-by-id"},{"openapi":"put /post/{identifier}","title":"Update post","href":"/api-reference/post/update-post"},{"openapi":"delete /post/{identifier}","title":"Delete post","href":"/api-reference/post/delete-post"}]},{"group":"Post Category","pages":[{"openapi":"get /post/category","title":"Get all post categories","href":"/api-reference/post-category/get-all-post-categories"},{"openapi":"post /post/category","title":"Create post category","href":"/api-reference/post-category/create-post-category"},{"openapi":"get /post/category/{identifier}","title":"Get post category by ID","href":"/api-reference/post-category/get-post-category-by-id"},{"openapi":"put /post/category/{identifier}","title":"Update post category","href":"/api-reference/post-category/update-post-category"},{"openapi":"delete /post/category/{identifier}","title":"Delete post category","href":"/api-reference/post-category/delete-post-category"}]},{"group":"Post Tag","pages":[{"openapi":"get /post/tag","title":"Get all post tags","href":"/api-reference/post-tag/get-all-post-tags"},{"openapi":"post /post/tag","title":"Create post tag","href":"/api-reference/post-tag/create-post-tag"},{"openapi":"get /post/tag/{identifier}","title":"Get post tag by ID","href":"/api-reference/post-tag/get-post-tag-by-id"},{"openapi":"put /post/tag/{identifier}","title":"Update post tag","href":"/api-reference/post-tag/update-post-tag"},{"openapi":"delete /post/tag/{identifier}","title":"Delete post tag","href":"/api-reference/post-tag/delete-post-tag"}]},{"group":"Team Member","pages":[{"openapi":"get /team/member/{identifier}","title":"Get a team member by ID","href":"/api-reference/team-member/get-team-member"},{"openapi":"get /team/member","title":"Get all team members","href":"/api-reference/team-member/get-all-team-member"}]}]}]},"basePath":"","title":"Update template - SendX Docs","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}