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

**Parameters**

**payload** `[Payload](#payload) | [Payload](#payload)[]` *required*

The payload or list of payloads to extend the job with.

## `Payload`

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

**Properties**

**api** `string` *required*

The name of the API to extend.

**parameters** `Record\<string, any\>` *required*

The parameters to pass to the API.


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