Overview
This node integrates with the StockAlert.pro API to manage stock alerts and webhooks. Specifically, for the Alert - Delete operation, it deletes an existing stock alert by its unique Alert ID. This is useful in scenarios where you want to programmatically remove alerts that are no longer relevant or needed, such as when a stock condition has changed or after an alert has been triggered and acknowledged.
Practical example: Automatically clean up old or obsolete stock alerts from your monitoring system to keep your alert list manageable and avoid unnecessary notifications.
Properties
| Name | Meaning |
|---|---|
| Alert ID | The unique identifier of the alert to delete |
Output
The output JSON contains a confirmation object indicating the success of the deletion operation. It includes:
success: A boolean value (true) confirming the alert was deleted.message: A string message confirming the deletion, e.g., "Alert deleted successfully" or a message returned by the API.
Example output:
{
"success": true,
"message": "Alert deleted successfully"
}
Dependencies
- Requires an API key credential for authenticating with the StockAlert.pro API.
- The node uses HTTP requests to communicate with the StockAlert.pro endpoints.
- No additional environment variables are explicitly required beyond the API authentication setup.
Troubleshooting
Common issues:
- Invalid or missing Alert ID: The node requires a valid Alert ID; providing an incorrect or empty ID will cause the API call to fail.
- Authentication errors: Ensure the API key credential is correctly configured and has sufficient permissions.
- Network or API downtime: Temporary connectivity issues or API service interruptions can cause failures.
Error messages:
- Errors returned from the API (e.g., "Alert not found") will be thrown unless the node is set to continue on failure.
- To resolve, verify the Alert ID exists and the API credentials are valid.
Links and References
- StockAlert.pro API Documentation (hypothetical link)
- n8n documentation on creating custom nodes