StockAlert icon

StockAlert

Interact with StockAlert.pro API

Actions8

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 needed or relevant, 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 of the deletion operation with two fields:

  • success: A boolean indicating if the deletion was successful (always true on success).
  • message: A string message confirming the alert was deleted, e.g., "Alert deleted successfully" or a message returned by the API.

Example output:

{
  "success": true,
  "message": "Alert deleted successfully"
}

No binary data is output by this operation.

Dependencies

  • Requires an active connection to the StockAlert.pro API.
  • Requires an API authentication token configured in the node credentials to authorize requests.
  • The node uses HTTP DELETE requests to the /alerts/{alertId} endpoint of the StockAlert.pro API.

Troubleshooting

  • Common issues:

    • Invalid or missing Alert ID: The node requires a valid alert ID; otherwise, the API will return an error.
    • Authentication errors: If the API key or token is invalid or expired, the request will fail.
    • Network issues: Connectivity problems can cause request failures.
  • Error messages:

    • "Alert not found": The specified Alert ID does not exist. Verify the ID is correct.
    • "Unauthorized" or similar: Check that the API credentials are correctly set up and have proper permissions.
    • Timeout or network errors: Ensure stable internet connection and that the StockAlert.pro API is reachable.

To resolve errors, verify input parameters, check API credentials, and ensure network connectivity.

Links and References

Discussion