SmartLead

Comprehensive SmartLead API integration for email marketing automation

Overview

The Update General Settings operation in the 🎯 Campaign Management resource allows users to modify the general configuration of an existing email campaign within the SmartLead platform. This node action is useful for adjusting campaign parameters such as its name, status, or other settings that define how the campaign behaves without recreating it from scratch.

Typical scenarios include:

  • Changing campaign details after creation to reflect updated marketing strategies.
  • Adjusting campaign parameters before launching or while a campaign is paused.
  • Automating campaign management workflows where campaign settings need to be updated dynamically based on external triggers or data.

For example, you might use this operation to update the subject line or sender information of an ongoing campaign or to toggle certain campaign features programmatically.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign to update.
Additional Fields Optional fields to further customize the update request. Includes:
- Limit Number of results to return (used in some contexts).
- Offset Number of results to skip (used in some contexts).
- Status The current status of the campaign. Options: Active, Paused, Stopped.

Note: For this specific operation, the main required property is the Campaign ID to identify which campaign to update. Additional fields can be used to specify particular settings like status.

Output

The node outputs JSON data representing the response from the SmartLead API after updating the campaign settings. The structure typically includes:

  • A data field containing the updated campaign object with its properties reflecting the new settings.
  • If the update fails, an error message will be included in the output.

No binary data is produced by this operation.

Example output snippet (simplified):

{
  "data": {
    "id": "campaign123",
    "name": "Updated Campaign Name",
    "status": "ACTIVE",
    ...
  }
}

Dependencies

  • Requires an active connection to the SmartLead API via an API key credential configured in n8n.
  • The node uses the base URL https://server.smartlead.ai/api/v1.
  • Proper permissions on the API key are necessary to update campaign settings.

Troubleshooting

  • Common issues:

    • Invalid or missing Campaign ID will cause the API to reject the request.
    • Insufficient permissions on the API key may result in authorization errors.
    • Network connectivity problems can prevent reaching the SmartLead API endpoint.
  • Error messages and resolutions:

    • "Campaign not found": Verify the Campaign ID is correct and exists.
    • "Unauthorized" or "Forbidden": Check API key validity and permissions.
    • "Invalid input": Ensure all required fields are provided and correctly formatted.
    • Timeout or network errors: Confirm internet connectivity and API server status.

Using the node's "Continue On Fail" option can help handle errors gracefully in workflows.

Links and References

Discussion