# Webhook post\_edit event is not being fired?

**URL:** https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063
**Category:** Support
**Created:** [March 16, 2022, 2:12am UTC](https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063 "2022-03-16T02:12:51Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![j3ang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j3ang/32/251087_2.png) [@j3ang](https://meta.discourse.org/u/j3ang)
#### Post date: [March 16, 2022, 2:12am UTC](https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063/1 "2022-03-16T02:12:51Z")

</div>

Hi everyone,

I’m having issue setting up the webhook for post. For some reason, the post\_edited event is not being fired. I’m only getting post\_created event.

any idea?

Thanks!

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [March 16, 2022, 5:36am UTC](https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063/2 "2022-03-16T05:36:42Z")

</div>

Any errors popping up? Can you share in detail how you set up the webhooks too? We’ll need some additional info or context to be able to help here. 😉

---

<div class="post-metadata">

### Author: ![j3ang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j3ang/32/251087_2.png) [@j3ang](https://meta.discourse.org/u/j3ang)
#### Post date: [March 16, 2022, 6:46am UTC](https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063/3 "2022-03-16T06:46:52Z")

</div>

Hi @osioke ,  
I have no idea where to find logs for the webhooks except in the admin settings api/webhook tab. but it’s nothing but the post\_created events.  
I can’t find anything helpful in the `production.log` when create/edit a new post.

 ![CleanShot 2022-03-15 at 23.46.08](https://global.discourse-cdn.com/meta/original/3X/0/c/0c6b8472f64d24f9e279486feaefc7cccb441870.jpeg)

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [March 16, 2022, 9:19am UTC](https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063/4 "2022-03-16T09:19:22Z")

</div>

How did you set up the webhooks?

---

<div class="post-metadata">

### Author: ![j3ang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j3ang/32/251087_2.png) [@j3ang](https://meta.discourse.org/u/j3ang)
#### Post date: [March 16, 2022, 9:20am UTC](https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063/5 "2022-03-16T09:20:55Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/f/9/f98c057f71f8bc6210331efe28df23ebd9b46e17.jpeg)

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [March 16, 2022, 9:25am UTC](https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063/7 "2022-03-16T09:25:20Z")

</div>

This is outside my technical skills, was asking to get more info so the more technical folks can better help 🙂 please hang tight

---

<div class="post-metadata">

### Author: ![j3ang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j3ang/32/251087_2.png) [@j3ang](https://meta.discourse.org/u/j3ang)
#### Post date: [March 16, 2022, 8:08pm UTC](https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063/8 "2022-03-16T20:08:46Z")

</div>

Hi @osioke,

I just found out that the post\_edit event will only fire when the post content is edited.  
If I just change the title/category/tags alone wouldn’t trigger the edit event.

Is this the default behavior?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 16, 2022, 8:13pm UTC](https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063/9 "2022-03-16T20:13:02Z")

</div>

> [@j3ang](#):
>
> I just found out that the post\_edit event will only fire when the post content is edited.  
> If I just change the title/category/tags alone wouldn’t trigger the edit event.

If you consider that posts doesn’t have “title/category/tags” it makes sense. Only **topics** have “title/category/tags”.

---

<div class="post-metadata">

### Author: ![j3ang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j3ang/32/251087_2.png) [@j3ang](https://meta.discourse.org/u/j3ang)
#### Post date: [March 16, 2022, 8:29pm UTC](https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063/10 "2022-03-16T20:29:10Z")

</div>

Thanks. I see, just tested and the events are being fired.

I’m trying to syncing the questions post back to our WordPress, and embedding the discourse answers/replies. So I only care on the changes to the first post in the topic.

It seems like I will have to work with both Topic & Post event.

---

<div class="post-metadata">

### Author: ![j3ang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j3ang/32/251087_2.png) [@j3ang](https://meta.discourse.org/u/j3ang)
#### Post date: [March 16, 2022, 10:09pm UTC](https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063/11 "2022-03-16T22:09:05Z")

</div>

When I was using the post webhook, I could do  
`add_to_serializer(:web_hook_post, :category_import_id, false)` in a plugin to add extra field in the payload.

I’m trying to do the samething for topic, I found that there’s only web\_hook\_topic\_view, but add\_to\_serializer does not work and causes 500 error.

Do I have to create a custom serializer myself in the plugin?

---

<div class="post-metadata">

### Author: ![j3ang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j3ang/32/251087_2.png) [@j3ang](https://meta.discourse.org/u/j3ang)
#### Post date: [March 16, 2022, 10:14pm UTC](https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063/12 "2022-03-16T22:14:48Z")

</div>

Ah nevermind, I didn’t fetch the object fields correctly.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 15, 2022, 10:15pm UTC](https://meta.discourse.org/t/webhook-post-edit-event-is-not-being-fired/221063/13 "2022-04-15T22:15:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
