> For the complete documentation index, see [llms.txt](https://docs.codemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemash.io/sdks-and-cli/notifications/email/update-email-template.md).

# Update Email Template

The **Email** channel handles transactional and campaign email — templates, footers, signatures, campaigns, and provider integrations. This method updates the email template — only the fields you send are changed.

This method is on the **Hub** surface (`norbix.hub.notifications`) — call it from admin tooling or IaC.

{% hint style="info" %}
These examples assume the SDK is installed and your credentials are set as environment variables — each client reads them automatically, so the constructors below take no arguments. See [Install a Norbix SDK](/sdks-and-cli/install.md).
{% endhint %}

{% tabs %}
{% tab title="JavaScript / TypeScript" %}

```ts
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.hub.notifications.updateEmailTemplate({
  viewId: 'view_4kX9mQvR2tYw7ZbC1dFgHj',
  templateName: 'orders',
  translations: ['item-1'],
  description: 'Managed via the Norbix SDK.',
});
```

{% endtab %}

{% tab title=".NET" %}

```csharp
using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;

using var client = new NorbixClient();

var result = await client.Notifications.UpdateEmailTemplateAsync(new UpdateEmailTemplateRequest
{
    ViewId = "view_4kX9mQvR2tYw7ZbC1dFgHj",
    TemplateName = "orders",
    Translations = new[] { "item-1" },
    Description = "Managed via the Norbix SDK.",
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.notifications.update_email_template(
    viewId="view_4kX9mQvR2tYw7ZbC1dFgHj",
    templateName="orders",
    translations=["item-1"],
    description="Managed via the Norbix SDK.",
)
```

{% endtab %}

{% tab title="Go" %}

```go
c, _ := norbix.New(norbix.Options{})
ctx := context.Background()

var result map[string]any
err := c.Hub.Notifications.UpdateEmailTemplate(ctx, map[string]any{
	"viewId": "view_4kX9mQvR2tYw7ZbC1dFgHj",
	"templateName": "orders",
	"translations": []string{"item-1"},
	"description": "Managed via the Norbix SDK.",
}, &result)
```

{% endtab %}

{% tab title="Dart / Flutter" %}

```dart
import 'package:norbix/norbix_hub.dart';

final hub = NorbixHub();

final result = await hub.emailNotifications.updateEmailTemplate(body: {
  'viewId': 'view_4kX9mQvR2tYw7ZbC1dFgHj',
  'templateName': 'orders',
  'translations': ['item-1'],
  'description': 'Managed via the Norbix SDK.',
});
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixSwift

let client = Norbix()

let result = try await client.hub.notifications.updateEmailTemplate([
    "viewId": "view_4kX9mQvR2tYw7ZbC1dFgHj",
    "templateName": "orders",
    "translations": ["item-1"],
    "description": "Managed via the Norbix SDK.",
])
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
import dev.norbix.sdk.hub.NorbixHub

val hub = NorbixHub()

val result = hub.notifications.updateEmailTemplate(mapOf(
    "viewId" to "view_4kX9mQvR2tYw7ZbC1dFgHj",
    "templateName" to "orders",
    "translations" to listOf("item-1"),
    "description" to "Managed via the Norbix SDK.",
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix raw '/{version}/notifications/email/templates' -X PUT --body '{"viewId":"view_4kX9mQvR2tYw7ZbC1dFgHj","templateName":"orders","translations":["item-1"],"description":"Managed via the Norbix SDK."}'
```

{% endtab %}
{% endtabs %}

## In the dashboard

Manage this visually in Norbix Cloud — see [Notifications → Email](/norbix-cloud/notifications/email.md).

## API reference

Full request and response for this endpoint: [Update Email Template](/api-reference/notifications/email/update-email-template.md).
