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

[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 workflow run
     */
    logs?: Array<string>;
    /**
     * Variables
     *
     * The variables of the workflow run
     */
    variables?: {
        [key: string]: unknown;
    } | null;
    /**
     * Result
     *
     * The result of the workflow run
     */
    result?: unknown | null;
    /**
     * Status
     *
     * The status of the workflow run
     */
    status: 'closed' | 'active' | 'failed';
    /**
     * Payloads
     */
    payloads?: {
        [key: string]: RunPayloadReference;
    };
    /**
     * Result Preview
     */
    result_preview?: string | null;
};
```

## Fields

<ParamField body="session_id" type={"string | null | undefined"}>
  The ID of the session
</ParamField>

<ParamField body="logs" type={"string[] | undefined"}>
  The logs of the workflow run
</ParamField>

<ParamField body="variables" type={"{ [key: string]: unknown; } | null | undefined"}>
  The variables of the workflow run
</ParamField>

<ParamField body="result" type={"unknown"}>
  The result of the workflow run
</ParamField>

<ParamField body="status" type={"\"active\" | \"closed\" | \"failed\""} required>
  The status of the workflow run
</ParamField>

<ParamField body="payloads" type={"{ [key: string]: RunPayloadReference; } | undefined"} />

<ParamField body="result_preview" type={"string | null | undefined"} />

## Related types

* [RunPayloadReference](/typescript-sdk-reference/types/runpayloadreference)


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