Webhooks for publish topic event

AI-generated summary

The discussion revolves around using webhooks to trigger actions when a topic is published via a scheduled event in Discourse. Parker1090 initially struggled to receive webhooks for topic publication, only getting them for topic creation. simon clarified that a topic_edited event should be triggered when a scheduled topic is published, which aligns with expected behavior. Parker1090 confirmed the issue was resolved after realizing the correct webhook event was being sent.

I’m playing around with webhooks and hoped to trigger them on a timed topic publish event and push through articles to an endpoint.

I’ve set this up, even with all events enabled, but I notice I’m only getting hooks for the initial creation of the topic, and not the publishing of it.

Is there a way to enable this please (thinking perhaps I’ve missed something)?

If not, any suggestions on how to work with this scenario? I’d love to say I’d somehow try to make my own little trigger, but I haven’t the foggiest idea on where to start (although open to ideas there too!)

Thanks in advance!

When you first publish a topic there should be a webhook with the X-Discourse-Event header set to topic_created. If you then set a topic timer to publish the topic to another category, there should be a webhook with the X-Discourse-Event header set to topic_edited when the topic is published to the new category.

This works correctly when I test it on my development site.

Thanks @simon. For some reason I didn’t see that when I was testing it initially - obviously missed something!

All working as expected now. Thanks!