Disconnect
AI-generatedSummary
Disconnects the specified WapiZap instance using the selected API version.
Inputs
- inputData — Each workflow item passes through; the node does not read any specific fields from the item beyond using its index for error pairing when continueOnFail is enabled.
Output shape
array of objects, one per input item
Each object contains the API response from the disconnect request in its
jsonfield. If an error occurs andcontinueOnFailis enabled, the object includes{ json: { error: <message> }, pairedItem: { item: <index> } }.
Examples
Example 1: Successful disconnect
Instance Name: my-instance, API Version: v2 (default), Credential: wapizapApi configured, continueOnFail: false (default). Input contains 2 items (any data). Output contains 2 objects, each with the API’s success response (e.g., { status: 'disconnected' }).
Example 2: Error with continueOnFail enabled
Same as above but continueOnFail: true. If the instance does not exist, the first item’s output is { json: { error: 'Instance not found' }, pairedItem: { item: 0 } } and processing continues for remaining items.
