> ## 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.

# ApiFunctionRunUpdateRequest

> [!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.

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

This is an internal import alias for the API model `FunctionRunUpdateRequest`. It is not exported by `notte-sdk`.

```typescript theme={null}
type ApiFunctionRunUpdateRequest = {
    /**
     * Session Id
     *
     * The ID of the session
     */
    session_id?: string | null;
    /**
     * Logs
     *
     * The logs of the function run
     */
    logs?: Array<string> | null;
    /**
     * Variables
     *
     * The variables of the function run
     */
    variables?: {
        [key: string]: unknown;
    } | null;
    /**
     * Result
     *
     * The result of the function run
     */
    result?: unknown | null;
    /**
     * Status
     *
     * The status of the function run
     */
    status: 'closed' | 'active' | 'failed' | 'rejected';
    /**
     * Payloads
     */
    payloads?: {
        [key: string]: RunPayloadReference;
    };
    /**
     * Result Preview
     */
    result_preview?: string | null;
    /**
     * The typed error of a failed or rejected run
     */
    error?: FunctionRunError | null;
};
```

## Fields

**session\_id** `string | null | undefined`

The ID of the session

**logs** `string[] | null | undefined`

The logs of the function run

**variables** `\{ [key: string]: unknown; \} | null | undefined`

The variables of the function run

**result** `unknown`

The result of the function run

**status** `"failed" | "rejected" | "closed" | "active"` *required*

The status of the function run

**payloads** `\{ [key: string]: RunPayloadReference; \} | undefined`

**result\_preview** `string | null | undefined`

**error** `FunctionRunError | null | undefined`

The typed error of a failed or rejected run

## Related types

* [FunctionRunError](https://docs.notte.cc/typescript-sdk-reference/types/functionrunerror)
* [RunPayloadReference](https://docs.notte.cc/typescript-sdk-reference/types/runpayloadreference)


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