> ## Documentation Index
> Fetch the complete documentation index at: https://notte-experiment-visibility-md-links.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# update

> Update the workflow with a a new code version

```python theme={null}
function = notte.Function("<your-function-id>")
function.update(path="<path-to-your-function.py>")
```

If you set a version, only that version will be updated

## Parameters

<ParamField path="path" type="UnionType[str, None]" default="None" />

<ParamField path="version" type="UnionType[str, None]" default="None" />

<ParamField path="workflow_path" type="UnionType[str, None]" default="None" />

<ParamField path="restricted" type="bool" default="True" />

## Returns

`None`
