Cancel Scheduled Campaign
AI-generatedOverview
This node manages Braze campaigns by interacting with the Braze API. It supports various operations such as listing campaigns, retrieving campaign details, triggering campaigns immediately or on a schedule, cancelling scheduled campaigns, and fetching campaign analytics.
The Cancel Scheduled Campaign operation specifically allows users to cancel a previously scheduled API-triggered campaign before it is sent. This is useful in scenarios where a campaign needs to be stopped due to changes in marketing strategy, errors in the campaign setup, or other business reasons.
Practical example:
- A marketing team schedules a promotional email campaign for a future date but later decides to cancel it due to updated product information. Using this node’s cancel scheduled campaign operation, they can programmatically cancel the scheduled send without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign (API identifier from campaign details). |
| Schedule ID | The unique identifier of the scheduled campaign instance returned when the campaign was scheduled. |
Output
The output is a JSON object representing the response from the Braze API after attempting to cancel the scheduled campaign. It typically contains confirmation of the cancellation or error details if the cancellation failed.
If an error occurs, the output JSON includes fields such as:
error: A descriptive error message.originalError: The original error message from the HTTP request.httpCode: The HTTP status code returned by the API.brazeErrorCode: The specific error code returned by Braze API.
No binary data output is produced by this operation.
Dependencies
- Requires an active Braze API connection configured with an API key credential.
- The node uses the Braze API endpoint associated with the provided Braze instance.
- Proper permissions on the Braze API key are necessary to manage campaigns and cancel scheduled sends.
Troubleshooting
Common issues:
- Invalid or expired API key: The node will fail to authenticate with Braze API.
- Incorrect Campaign ID or Schedule ID: The API will return an error indicating that the specified campaign or schedule does not exist.
- Network connectivity problems: HTTP requests may time out or fail.
Common error messages:
"Invalid API key"or authentication failures: Verify the API key credential and its permissions."Campaign not found"or"Schedule not found": Double-check the Campaign ID and Schedule ID values.- HTTP 4xx or 5xx errors: Review the Braze API documentation for the meaning of the status code and adjust the request accordingly.
To handle errors gracefully, enable the node's "Continue On Fail" option to process subsequent items even if one fails.