---
title: "InvokeFunctionBody"
description: "Request body for a Function operation."
section: "Reference"
group: "Types"
order: 101
---

## Definition

```ts
interface InvokeFunctionBody {
  args: Record<string, unknown>;
  versionId?: string | undefined;
}
```

## Fields

| Field       | Type                      | Notes                                                                    |
| ----------- | ------------------------- | ------------------------------------------------------------------------ |
| `args`      | `Record<string, unknown>` | `required` — Arguments object passed to the function entrypoint.         |
| `versionId` | `string \| undefined`     | `optional` — Explicit version to invoke; defaults to `defaultVersionId`. |
