> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/sdks/account/projects/update-project-ai-assistant.md).

# Update Project Ai Assistant

Updates an end-user AI assistant of the project (full replace).

A **project** is the top-level container for everything in Norbix — environments, modules, and data. These endpoints create and configure projects. This method updates the project ai assistant — only the fields you send are changed.

This method is on the **Hub** surface (`norbix.hub.account`) — 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](/codemash/sdks/install.md).
{% endhint %}

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

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

const result = await norbix.hub.account.updateProjectAiAssistant({
  assistantId: 'assistant_4kX9mQvR2tYw7ZbC1dFgHj',
  memoryEnabled: true,
  isDefault: true,
  name: 'orders-summary',
});
```

{% endtab %}

{% tab title=".NET" %}

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

using var client = new NorbixClient();

var result = await client.Account.UpdateProjectAiAssistantAsync(new UpdateProjectAiAssistant
{
    AssistantId = "assistant_4kX9mQvR2tYw7ZbC1dFgHj",
    MemoryEnabled = true,
    IsDefault = true,
    Name = "orders-summary",
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.account.update_project_ai_assistant(
    assistantId="assistant_4kX9mQvR2tYw7ZbC1dFgHj",
    memoryEnabled=True,
    isDefault=True,
    name="orders-summary",
)
```

{% endtab %}

{% tab title="Go" %}

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

var result map[string]any
err := c.Hub.Account.UpdateProjectAiAssistant(ctx, "assistant_4kX9mQvR2tYw7ZbC1dFgHj", map[string]any{
	"memoryEnabled": true,
	"isDefault": true,
	"name": "orders-summary",
}, &result)
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixHub

let client = try NorbixHubClient()

let result = try await client.account.updateProjectAiAssistant([
    "assistantId": "assistant_4kX9mQvR2tYw7ZbC1dFgHj",
    "memoryEnabled": true,
    "isDefault": true,
    "name": "orders-summary",
])
```

{% endtab %}

{% tab title="Kotlin" %}

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

val hub = NorbixHub()

val result = hub.account.updateProjectAiAssistant(mapOf(
    "assistantId" to "assistant_4kX9mQvR2tYw7ZbC1dFgHj",
    "memoryEnabled" to true,
    "isDefault" to true,
    "name" to "orders-summary",
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix hub account project ai assistant update --assistantId assistant_4kX9mQvR2tYw7ZbC1dFgHj --memoryEnabled true --isDefault true --name orders-summary
```

{% 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 Cloud

Manage this visually in Cloud — see [Account & Projects → Projects](/codemash/cloud/project.md).

## API reference

Full request and response for this endpoint: [Update Project Ai Assistant](/codemash/api-reference/account/projects/update-project-ai-assistant.md).
