Actions15
Sweepstake → Pause
AI-generatedSummary
Pauses an active Sweeppea sweepstake by sending its UUID token to the Sweeppea API (POST /sweepstakes/pause).
Inputs
- Sweepstakes Token (required) — The sweepstakes UUID token identifying which sweepstake to pause. Entered as a password-masked string.
Output shape
One output item per input item, containing the JSON response returned by the Sweeppea API for the pause request, paired to the input item.
The exact response fields aren't defined in the node, so they come straight from the API. A 404 error is reported as 'Sweepstake not found' and a 400 error surfaces the API's validation message. With Continue On Fail enabled, errors are returned as items holding the API error body, or {Response:false, Message, itemIndex} if no body is available. Requires Sweeppea API credentials.
Examples
Example 1: Pause a sweepstake when a campaign needs to be halted, for example after a stock-out alert.
Resource: Sweepstake, Operation: Pause, Sweepstakes Token: the sweepstake's UUID (can be an expression such as {{ $json.token }}).
Example 2: Pause several sweepstakes in one run by feeding multiple items from a previous Get Many step.
Resource: Sweepstake, Operation: Pause, Sweepstakes Token set to an expression that reads each item's token field. The node runs once per input item.