> 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/functions/edit.md).

# Edit a function

Editing your own function — Cloud has no screen for it.

**Where:** Code → Functions → a function · `/projects/<project>/code/functions/custom/<functionId>/edit` (route kept, no screen)

{% hint style="warning" %}
Cloud has no screen for this yet. The routes `…/functions/custom/<functionId>/edit`, `…/functions/<functionId>`, `…/functions/system/list` and `…/functions/system/<functionId>/edit` are in Cloud's route table, but nothing is drawn there — the page stays blank. The server no longer has standalone functions (ids `cf_…`) or the old built-in system functions, so no API, SDK or CLI call edits one either. Edit a [marketplace function](/codemash/cloud/code/marketplace/function.md) instead.
{% endhint %}

## Before you start

* There is nothing to edit: the [Functions list](/codemash/cloud/code/functions.md) is always empty, because [creating a function](/codemash/cloud/code/functions/new.md) does not save one.

## Steps

1. Open **Code → Functions**. The table has no rows, so there is no function to open.
2. Opening an edit address by hand, for example `/projects/<project>/code/functions/custom/cf_7pW2sKvB9qLm3XcT1yRfGh/edit`, shows an empty page.

## Result

Nothing changes.

## Change or remove it later

* **Delete** has no screen either — see [Delete a function](/codemash/cloud/code/functions/delete.md).
* To change a marketplace function, open it with **Edit …** on its connection — see [Add and call a marketplace function](/codemash/cloud/code/marketplace/function.md).

## Do it from code

There is no endpoint for standalone functions. A marketplace function is read and changed by its `func_…` id:

```ts
const { function: fn } = await norbix.hub.code.getMarketplaceFunction({
  integrationViewId: 'int_4dotEqXT1UolAf5w6FqcMT',
  functionViewId: 'func_154strpl8cl6Kk4eL7k5Rj',
});
```

```sh
norbix hub code marketplace functions get --integrationViewId int_4dotEqXT1UolAf5w6FqcMT
```

API: [Get Marketplace Function](/codemash/api-reference/code/marketplace/get-marketplace-function.md) · [Save Marketplace Function](/codemash/api-reference/code/marketplace/save-marketplace-function.md)
