---
title: "UpdateFunctionBody"
description: "Request body for updating a Function."
section: "Reference"
group: "Types"
order: 100
---

## Definition

```ts
interface UpdateFunctionBody {
  name?: string | undefined;
  description?: string | undefined;
  runtimeUserId?: string | null | undefined;
}
```

## Fields

| Field           | Type                          | Notes                                                                                                                                                                     |
| --------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`          | `string \| undefined`         | `optional` — New name                                                                                                                                                     |
| `description`   | `string \| undefined`         | `optional` — New description                                                                                                                                              |
| `runtimeUserId` | `string \| null \| undefined` | `optional` — Override the workspace default service user as the runtime caller when this function runs headlessly. Null clears the override. Workspace-admin-only to set. |
