---
title: "UpdateFunctionFileBody"
description: "Request body for updating a FunctionFile."
section: "Reference"
group: "Types"
order: 105
---

## Definition

```ts
interface UpdateFunctionFileBody {
  name?: string | undefined;
  source?: string | undefined;
}
```

## Fields

| Field    | Type                  | Notes                                                                      |
| -------- | --------------------- | -------------------------------------------------------------------------- |
| `name`   | `string \| undefined` | `optional` — New logical file name. Must remain unique within the version. |
| `source` | `string \| undefined` | `optional` — New raw file contents.                                        |
