# Is it possible to manually trigger a web hook for post\_updated

**URL:** https://meta.discourse.org/t/is-it-possible-to-manually-trigger-a-web-hook-for-post-updated/68074
**Category:** Development
**Created:** [Août 15, 2017, 12:41 UTC](https://meta.discourse.org/t/is-it-possible-to-manually-trigger-a-web-hook-for-post-updated/68074 "2017-08-15T12:41:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![marcusleemitchell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcusleemitchell/32/72875_2.png) [@marcusleemitchell](https://meta.discourse.org/u/marcusleemitchell)
#### Post date: [Août 15, 2017, 12:41 UTC](https://meta.discourse.org/t/is-it-possible-to-manually-trigger-a-web-hook-for-post-updated/68074/1 "2017-08-15T12:41:44Z")

</div>

I’m looking to make a change to the raw data for a bunch of my posts in a rake task and then re-cook the result.  
When this happens I also want to trigger the webhook for `post_updated`

What’s the best practice way to achieve this?

Many thanks.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [Août 16, 2017, 11:35 UTC](https://meta.discourse.org/t/is-it-possible-to-manually-trigger-a-web-hook-for-post-updated/68074/2 "2017-08-16T23:35:40Z")

</div>

From your `rails console`, you can run `WebHook.enqueue_post_hooks(:post_edited, post)`. Make sure Sidekiq is running though.

---

<div class="post-metadata">

### Author: ![marcusleemitchell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcusleemitchell/32/72875_2.png) [@marcusleemitchell](https://meta.discourse.org/u/marcusleemitchell)
#### Post date: [Août 17, 2017, 7:51 UTC](https://meta.discourse.org/t/is-it-possible-to-manually-trigger-a-web-hook-for-post-updated/68074/3 "2017-08-17T07:51:44Z")

</div>

That’s perfect. Thank you so much for the reply.
