CA
rare-sapphire

Webhook config per schedule

Hi all, I've found this doc about setting ad-hoc webhooks per actor run but there isn't any info about the schedule case. My use case is I have multiple environments (prod, staging, etc...) and I need an ability to configure webhook url in schedules so different schedule can send results to different webhook endpoint. I know I can add multiple webhooks to an actor but it means for every run, it'll send results to all endpoints which isn't ideal. https://docs.apify.com/platform/integrations/webhooks/ad-hoc-webhooks
Ad-hoc webhooks | Platform | Apify Documentation
Learn how to set one-off webhooks for Actor runs started via the Apify API or from the Actor's code. Trigger the event once the run reaches a desired state.
1 Reply
rare-sapphire
rare-sapphire2y ago
The solution would be to have separate task for each environment and set the webhook on the task

Did you find this page helpful?