function extendPayload(payload): void

Description

In the context of a job or queue execution, extendPayload appends new payloads to the end of the queue of job.

Examples

import { extendPayload } from "@intuned/sdk/runtime"

// this function will append the exampleApi to the end of the queue or job it's executing in.
extendPayload({ api: 'exampleApi', parameters: { key: 'value' } });

Parameters

payload: Payload | Payload[]

The payload or array of payloads to extend. you can specify the api name and what parameters you want to pass it, the new added apis will use the same proxy and auth-session settings as the api that extended them

Returns

void