> ## Documentation Index
> Fetch the complete documentation index at: https://intunedhq.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# extendPayload

```typescript theme={null}
import { extendPayload } from '@intuned/runtime';

export declare function extendPayload(
    payload: Payload | Payload[]
): void;
```

In the context of a job, extends the job execution with the provided payloads after the current payload execution succeeds.

Will implicitly call [`extendTimeout`](./extend-timeout).

<br />

**Parameters**

<ParamField body="payload" type={<span><a href="#payload">Payload</a> | <a href="#payload">Payload</a>[]</span>} required>
  The payload or list of payloads to extend the job with.
</ParamField>

## `Payload`

```typescript theme={null}
export interface Payload {
  api: string;
  parameters: Record<string, any>;
}
```

**Properties**

<ParamField body="api" type="string" required>
  The name of the API to extend.
</ParamField>

<ParamField body="parameters" type="Record<string, any>" required>
  The parameters to pass to the API.
</ParamField>
