# Manually triggering webhooks

**URL:** https://meta.discourse.org/t/manually-triggering-webhooks/156097
**Category:** Development
**Tags:** webhooks
**Created:** [June 27, 2020, 12:02pm UTC](https://meta.discourse.org/t/manually-triggering-webhooks/156097 "2020-06-27T12:02:20Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Parker1090](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/parker1090/32/119862_2.png) [@Parker1090](https://meta.discourse.org/u/Parker1090)
#### Post date: [June 27, 2020, 12:02pm UTC](https://meta.discourse.org/t/manually-triggering-webhooks/156097/1 "2020-06-27T12:02:20Z")

</div>

I did find [a post](https://meta.discourse.org/t/is-it-possible-to-manually-trigger-a-web-hook-for-post-updated/68074/2) on this but didn’t want to revive a 3-year-old thread.

I can’t even class myself as a novice when it comes to Ruby because I just haven’t used it. But basically, I have around 30 topics in a specific category that I want to trigger a webhook for (either new topic or post edited).

I’ve got as far as entering the command from the aforementioned topic but now I’m lost. What should “post” represent? I’ve tried the post ID in various ways, but I’m getting no where and can’t seem to find any answers.

Appreciate this may be an easy action for some, but I literally have zero experience with ruby, other than running the odd command I’ve found on this forum.

Any help appreciated! 🙂

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [June 27, 2020, 12:05pm UTC](https://meta.discourse.org/t/manually-triggering-webhooks/156097/2 "2020-06-27T12:05:23Z")

</div>

What are you trying to do? This might not be the best way to do it. Maybe just generate the web hook with curl or postman?

---

<div class="post-metadata">

### Author: ![Parker1090](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/parker1090/32/119862_2.png) [@Parker1090](https://meta.discourse.org/u/Parker1090)
#### Post date: [June 27, 2020, 12:07pm UTC](https://meta.discourse.org/t/manually-triggering-webhooks/156097/3 "2020-06-27T12:07:34Z")

</div>

Hi @pfaffman

Basically I’ve built an endpoint that processes webhooks triggered from a specific category.

Postman is normally my go to, but didn’t want to hassle of generating a signature for each one (although admittedly, I could disable it temporarily).

My thought process was to some how manually trigger a webhook and just let the script do it’s job as it normally would. But certainly open to ideas - moreso when it makes life easier!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [June 27, 2020, 12:13pm UTC](https://meta.discourse.org/t/manually-triggering-webhooks/156097/4 "2020-06-27T12:13:45Z")

</div>

I’m not sure how to trigger a web hook without wading in the code. Maybe actually edit the topics? You could, say, add a tag to them and then delete it. Look at the bulk operations howto for some ideas.

---

<div class="post-metadata">

### Author: ![Parker1090](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/parker1090/32/119862_2.png) [@Parker1090](https://meta.discourse.org/u/Parker1090)
#### Post date: [June 27, 2020, 3:42pm UTC](https://meta.discourse.org/t/manually-triggering-webhooks/156097/5 "2020-06-27T15:42:09Z")

</div>

Thanks for your reply Jay. I’ve edited the posts and triggered the webhooks manually.

None of the bulk options seemed to trigger them (perhaps down my settings more than the capabilities of Discourse), but all sorted now.

Have a great weekend!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [June 27, 2020, 3:56pm UTC](https://meta.discourse.org/t/manually-triggering-webhooks/156097/6 "2020-06-27T15:56:43Z")

</div>

Ah, well. Many is the task that I’d have completed **much** faster if just using brute force rather than automating it. Well done!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 6, 2024, 10:43am UTC](https://meta.discourse.org/t/manually-triggering-webhooks/156097/7 "2024-09-06T10:43:24Z")

</div>


