rerun_webhook
imerit_ango.sdk.SDK.
rerun_webhook(project_id, webhook_stage_id)
Re-run a webhook stage.
Parameters
project_id: string
The unique identifier for the project. You can find the project ID in the user interface or retrieve it using the
list_projectsfunction.
webhook_stage_id: string
The unique identifier for the webhook stage to re-run.
Returns:
output: dict
A dictionary containing the result of the operation.
Example:
import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK
load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
project_id = os.getenv('PROJECT_ID')
stage_id = "YOUR_WEBHOOK_STAGE_ID"
ango_sdk = SDK(api_key)
sdk_response = ango_sdk.rerun_webhook(project_id=project_id, webhook_stage_id=stage_id)curl -X POST "https://imeritapi.ango.ai/v2/project/$PROJECT_ID/rerun-webhook" \
-H "Content-Type: application/json" \
-H "apikey: $ANGO_API_KEY" \
-d '{
"stageId": "YOUR_WEBHOOK_STAGE_ID"
}'
Last updated