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

# extend_payload

```python theme={null}
from intuned_runtime import extend_payload

def extend_payload(*payload: Payload) -> None: ...
```

Adds additional payloads to the current job execution. Use this for dynamic scheduling—when your automation discovers new work that should be processed as part of the same job run.

For example, when scraping a paginated list, you can extend the job with payloads for each subsequent page as you discover them.

Implicitly calls [`extend_timeout`](./extend-timeout) to ensure the job has time to process the new payloads.

<Note>
  This function only works in the context of a Job. It has no effect when running automations directly via the API.
</Note>

**Parameters**

<ParamField body="*payload" type={<a href="#payload">Payload</a>} required>
  One or more payloads to add to the job execution.
</ParamField>

**Returns**

Returns `None`.

## `Payload`

```python theme={null}
from typing import Any, TypedDict

class Payload(TypedDict):
    api: str
    parameters: dict[str, Any]
```

**Properties**

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

<ParamField body="parameters" type="dict[str, Any]" required>
  The parameters to pass to the API.
</ParamField>

## Related

* [Extend payload recipe](/main/01-learn/recipes/extend-payload) — Examples and patterns for dynamic scheduling.
* [extend\_timeout](/main/05-references/runtime-sdk-python/extend-timeout) — Reset the timeout timer for the current attempt.
* [Jobs](/main/02-features/jobs-batched-executions) — Learn about job execution and scheduling.
