# 如何更改 Post-Created Webhook 事件的负载

**URL:** <https://meta.discourse.org/t/how-to-change-a-post-created-webhook-event-payload/210651>\
**Category:** Product Support\
**Created:** [2021 年12 月 1 日 08:53 UTC](https://meta.discourse.org/t/how-to-change-a-post-created-webhook-event-payload/210651 "2021-12-01T08:53:33Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![luck7even](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@luck7even](https://meta.discourse.org/u/luck7even)\
发布日期： [2021 年12 月 1 日 08:53 UTC](https://meta.discourse.org/t/how-to-change-a-post-created-webhook-event-payload/210651/1 "2021-12-01T08:53:33Z")

</div>

你好。

我想在发生主题生成事件时自定义 webhook 的 payload 值。

例如…

# AS-IS

```plaintext
{
  "post": {
    "id": 19,
    "name": "user",
    "username": "user",
    "avatar_template": "/letter_avatar_proxy/v2/letter/u/c0e974/{size}.png",
    "created_at": "2018-07-20T06:24:33.205Z",
    "cooked": "<p>Cool, now i have you, haha</p>",
    "post_number": 6,
    "post_type": 1,
    "updated_at": "2018-07-20T06:24:33.205Z",
    "reply_count": 0,
    "reply_to_post_number": null,
    "quote_count": 0,
    "avg_time": null,
    "incoming_link_count": 0,
    "reads": 0,
    "score": 0,
    "topic_id": 11,
    "topic_slug": "this-is-new-topic",
    "topic_title": "This is new topic",
    "display_username": "user",
    "primary_group_name": null,
    "version": 1,
    "user_title": null,
    "moderator": false,
    "admin": true,
    "staff": true,
    "user_id": 1,
    "hidden": false,
    "trust_level": 1,
    "deleted_at": null,
    "user_deleted": false,
    "edit_reason": null,
    "wiki": false,
    "topic_posts_count": 6
  }
}

```

# TO-BE

```plaintext
{
   "topic_title": "This is new topic"
}

```

请问如何实现？

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-a-post-created-webhook-event-payload/210651)._
