> 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/code/integrations/set-code-integration-as-default.md).

# Set Code Integration As Default

An **integration** connects an external provider to this module. Configure the provider and its secrets in the dashboard; the API lets you list, create or update, enable, disable, set a default, and test integrations. Sets the code integration as default.

This method is on the **Hub** surface (`norbix.hub.code`) — 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.code.setCodeIntegrationAsDefault({
  id: 'int_4kX9mQvR2tYw7ZbC1dFgHj',
});
```

{% endtab %}

{% tab title=".NET" %}

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

using var client = new NorbixClient();

var result = await client.Code.SetCodeIntegrationAsDefaultAsync(new SetCodeIntegrationAsDefault
{
    Id = "int_4kX9mQvR2tYw7ZbC1dFgHj",
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.code.set_code_integration_as_default(
    id="int_4kX9mQvR2tYw7ZbC1dFgHj",
)
```

{% endtab %}

{% tab title="Go" %}

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

var result map[string]any
err := c.Hub.Code.SetCodeIntegrationAsDefault(ctx, "int_4kX9mQvR2tYw7ZbC1dFgHj", nil, &result)
```

{% endtab %}

{% tab title="Kotlin" %}

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

val hub = NorbixHub()

val result = hub.code.setCodeIntegrationAsDefault(mapOf(
    "id" to "int_4kX9mQvR2tYw7ZbC1dFgHj",
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix hub code integration as default set int_4kX9mQvR2tYw7ZbC1dFgHj
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
Dart / Flutter and Swift 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 [Code → Integrations](/norbix-cloud/code/integrations.md).

## API reference

Full request and response for this endpoint: [Set Code Integration As Default](/api-reference/code/integrations/set-code-integration-as-default.md).
