> 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/user/update-user-notifications-preferences.md).

# Update User Notifications Preferences

Notifications is Norbix's unified Email + Push + SMS messaging system — one template engine and data-binding context across all three channels, for both transactional sends and high-volume campaigns. This method updates the user notifications preferences — only the fields you send are changed. `PUT /{version}/notifications/user/preferences`

{% hint style="info" %}
Full request/response reference will appear here once this method is added to the API spec.
{% endhint %}

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.updateUserNotificationsPreferences({
  userId: 'usr_4kX9mQvR2tYw7ZbC1dFgHj',
  blockAllMarketingMessages: true,
});
```

{% endtab %}

{% tab title=".NET" %}

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

using var client = new NorbixClient();

var result = await client.Notifications.UpdateUserNotificationsPreferencesAsync(new UpdateUserNotificationsPreferences
{
    UserId = "usr_4kX9mQvR2tYw7ZbC1dFgHj",
    BlockAllMarketingMessages = true,
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.notifications.update_user_notifications_preferences(
    userId="usr_4kX9mQvR2tYw7ZbC1dFgHj",
    blockAllMarketingMessages=True,
)
```

{% endtab %}

{% tab title="Go" %}

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

var result map[string]any
err := c.Hub.Notifications.UpdateUserNotificationsPreferences(ctx, map[string]any{
	"userId": "usr_4kX9mQvR2tYw7ZbC1dFgHj",
	"blockAllMarketingMessages": true,
}, &result)
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixSwift

let client = Norbix()

let result = try await client.hub.notifications.updateUserNotificationsPreferences([
    "userId": "usr_4kX9mQvR2tYw7ZbC1dFgHj",
    "blockAllMarketingMessages": true,
])
```

{% endtab %}

{% tab title="Kotlin" %}

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

val hub = NorbixHub()

val result = hub.notifications.updateUserNotificationsPreferences(mapOf(
    "userId" to "usr_4kX9mQvR2tYw7ZbC1dFgHj",
    "blockAllMarketingMessages" to true,
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix hub notifications user preferences update --userId usr_4kX9mQvR2tYw7ZbC1dFgHj --blockAllMarketingMessages true
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
Dart / Flutter examples for this page are still in the works — we are verifying the exact SDK shapes and will add them shortly. The method itself is available in every Norbix SDK.
{% endhint %}

## In the dashboard

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

## API reference

Full request and response for this endpoint: [Update User Notifications Preferences](/api-reference/notifications/user/update-user-notifications-preferences.md).
