Actions39
- Campaign Actions
- Campaign Statistic Actions
- Client Actions
- Email Account Actions
- Lead Actions
- Master Inbox Actions
- Webhook Actions
Overview
The "Update Status" operation for the Campaign resource in this node allows users to change the status of a specific campaign within the Smartlead.ai platform. This operation is useful for controlling the lifecycle of a campaign, such as starting it, pausing it, or stopping it entirely.
Common scenarios where this node would be beneficial include:
- Automatically pausing campaigns during off-hours or holidays.
- Starting campaigns once all setup steps are complete.
- Stopping campaigns that have reached their goals or need to be halted due to external factors.
For example, a user might use this node to pause a campaign while updating its content or to start a campaign at a scheduled time via an automation workflow.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign whose status you want to update. |
| Status | The new status to set for the campaign. Options: Start, Paused, Stopped. |
Output
The output of this operation is the JSON response returned by the Smartlead.ai API after updating the campaign status. It typically contains details about the updated campaign, including its current status and other metadata.
The output is structured as an array of JSON objects, each corresponding to an input item processed. Each object reflects the API's response for that particular update request.
This node does not output binary data.
Dependencies
- Requires an active connection to the Smartlead.ai API.
- Requires an API authentication token configured in n8n credentials (referred to generically as "an API key credential").
- The base URL used for API requests is
https://server.smartlead.ai/api/v1.
Troubleshooting
- Invalid Campaign ID: If the provided Campaign ID does not exist or is incorrect, the API will likely return an error indicating the campaign was not found. Verify the Campaign ID before running the node.
- Unauthorized Access: If the API key credential is missing, invalid, or lacks permissions, the node will fail with an authentication error. Ensure the API key is correctly configured and has sufficient rights.
- Invalid Status Value: The status must be one of the allowed options ("START", "PAUSED", "STOPPED"). Providing an unsupported value may cause the API to reject the request.
- Network Issues: Connectivity problems can cause request failures. Check network access and API availability if errors occur.
- API Rate Limits: Excessive requests may trigger rate limiting. Implement retries or delays if needed.
Links and References
- Smartlead.ai API Documentation (generic link, replace with actual if available)
- n8n Documentation on HTTP Request Node (for understanding API calls)
- Best practices for managing campaign statuses in marketing automation platforms.