> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Update template

> Update selected properties of a Brevo transactional email template.

`updateTemplate` patches fields on an existing template.

## Example

```ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { updateTemplate } from "automate.ax/brevo"

export default automation("Update receipt copy", () => {
  onHttpRequest({ scope: "automation" })

  updateTemplate({
    templateId: 42,
    subject: "Your Example receipt",
    htmlContent: "<p>Thank you for your purchase.</p>",
  })
})
```

## Inputs

`templateId: number | string` is required. Optional fields are `templateName`,
`subject`, registered `sender`, `htmlContent` (minimum 11 characters), public
`htmlUrl`, `attachmentUrl`, `isActive`, `replyTo`, `tag`, and `toField`.
`account` selects the Brevo binding.

## Output

Returns `Signal<void>` after Brevo accepts the update. The action does not
retrieve the resulting template; use `getTemplate` when you need confirmation
of provider-normalized content. Avoid supplying both HTML sources in one patch.
