---
title: "Admin only"
method: POST
path: "/api/mcp/tools/email_marketing_update_template"
tags: ["tools"]
---

# Admin only

`POST /api/mcp/tools/email_marketing_update_template`

## Request

- Base URL: `https://finestructure.ai`
- URL: `https://finestructure.ai/api/mcp/tools/email_marketing_update_template`
- Auth: HTTP bearer

Admin only. Update an automatic Email Marketing template, such as user_joined welcome email. The unsubscribe block is still appended by the server.

## Request body

- object
  - `template_id` string, required: Template/event id, e.g. user_joined
  - `enabled` boolean: Whether this automatic template is active
  - `subject` string: Email subject with {{variables}}
  - `body_html` string: HTML body with {{variables}}

## Response `200`

Tool executed successfully

- ToolResult
  - `ok` boolean, required
  - `tool` string, required
  - `result` object, required

## Other responses

- `400`: Invalid arguments for this tool
- `401`: Missing or invalid bearer token
- `402`: Not enough credits on the account
- `403`: Token scope does not permit this tool
- `404`: Unknown tool name
- `429`: Rate limit exceeded, retry after the indicated delay
- `500`: Internal error while executing the tool

---

[API](https://skmtc.dev/finestructure/apis/fine-structure-api.md) · [All operations](https://skmtc.dev/finestructure/apis/fine-structure-api/llms.txt) · [OpenAPI document](https://skmtc.dev/finestructure/apis/fine-structure-api/revisions/02c50ed5fd70?raw)
