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

# Set as default

Make a Code provider integration the default — the action is accepted, but the default is not kept.

**Where:** Code → Integrations → an integration → **Actions** → **Set as default** · `/projects/<project>/code/integrations/<integrationId>/edit`

{% hint style="warning" %}
Cloud offers **Set as default** and the server answers success, but the default is not stored: the integration gets no **DEFAULT** badge, the **Default** column stays empty and the answer of Get Code Integrations has no `defaultIntegrationId`. The yellow box *No Default Set For Active Integrations* stays. Nothing in Norbix uses a default Code integration yet, because no provider can run a function.
{% endhint %}

## Before you start

* At least one enabled provider integration — see [Connect a provider](/codemash/cloud/code/integrations/providers.md).
* You need `code:manage` on the integration.

## Steps

1. Open the integration, here `Bookshop Azure`, and open **Actions**. The first item is **Set as default**.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-96d0864d0fed49d9c23459f8bdc3ec0035acdfdd%2Fset-default-1.png?alt=media" alt="The Actions menu of Bookshop Azure: Set as default, Disable, See AzureFunctions documentation, See SDK documentation, See API documentation, Delete"><figcaption><p>Set as default in the Actions menu.</p></figcaption></figure>
2. Press **Set as default**. The page stays as it was — no **DEFAULT** badge appears.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-01765fe831bd8c7cb4751a388a02bc110b4875ab%2Fset-default-2.png?alt=media" alt="Bookshop Azure after Set as default: the badges are still ENABLED and TEST FAILED, no DEFAULT badge"><figcaption><p>After Set as default.</p></figcaption></figure>

## Result

The list still shows no default and the yellow box **No Default Set For Active Integrations**.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-69629d11b66843fe8dacf7a16930f454e4709cbc%2Fset-default-3.png?alt=media" alt="Code Integrations after Set as default: the Default column is empty for all three integrations and the yellow warning is still shown"><figcaption><p>The list after Set as default.</p></figcaption></figure>

## Change or remove it later

* There is nothing to undo. To stop using an integration, see [Disable, enable or delete an integration](/codemash/cloud/code/integrations/disable.md).

## Do it from code

```ts
await norbix.hub.code.setCodeIntegrationAsDefault({ id: 'int_2vW8u1Vse9tSNuK7KgbmeV' });
```

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

Both answer success; [Get Code Integrations](/codemash/api-reference/code/integrations/get-code-integrations.md) afterwards still has no `defaultIntegrationId`. API: [Set Code Integration As Default](/codemash/api-reference/code/integrations/set-code-integration-as-default.md)
