> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# updateMetadata

<Tip>
  Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
</Tip>

[Source: node-sdk/src/functions.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/functions.ts)

Update the function metadata (name, description, default runtime, ...).

```typescript theme={null}
NotteFunction.updateMetadata(options: FunctionMetadataUpdateOptions): Promise<FunctionResponse>;
```

## Parameters

<ParamField body="options" type={"FunctionMetadataUpdateOptions"} required>
  Metadata fields to update, such as name, description, or default runtime.
</ParamField>

## Returns

```typescript theme={null}
Promise<FunctionResponse>
```

Updated function metadata.

## Raises

* NotteAPIError if the metadata update is rejected.

## Example

```typescript theme={null}
await fn.updateMetadata({ name: 'Price monitor', default_runtime: 'extended' });
```

## Related types

* [FunctionMetadataUpdateOptions](/typescript-sdk-reference/types/functionmetadataupdateoptions)
* [FunctionResponse](/typescript-sdk-reference/types/functionresponse)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.