# Webhook contact updated for segment membership change

**URL:** <https://forum.mautic.org/t/webhook-contact-updated-for-segment-membership-change/27545>\
**Category:** Ideas and Feature Requests\
**Tags:** webhooks, contacts-and-fields, integrations-other\
**Created:** [March 29, 2023, 2:45pm UTC](https://forum.mautic.org/t/webhook-contact-updated-for-segment-membership-change/27545 "2023-03-29T14:45:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [March 29, 2023, 2:45pm UTC](https://forum.mautic.org/t/webhook-contact-updated-for-segment-membership-change/27545/1 "2023-03-29T14:45:50Z")

</div>

While there is a webhook action for updated contact, there seem to be non for changed segment membership? I was looking at contact updated, but it could logically also be related to segment updated?

(this support item seems to be related)

There is no segment update webhook currently, but this would also be difficult. Currently webhooks seem to send the full record, not the change. Sending all the segment members for a segment update would probably not work well.

So this should probably part of “contact updated” webhook?

---

<div class="post-metadata">

**Author:** ![asad786](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/asad786/32/8990_2.png) [@asad786](https://forum.mautic.org/u/asad786)\
**Post date:** [April 5, 2023, 5:43am UTC](https://forum.mautic.org/t/webhook-contact-updated-for-segment-membership-change/27545/2 "2023-04-05T05:43:43Z")

</div>

There are cron jobs for segment update which has to set on mautic server and contact updates is a part of contact webhook.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [April 5, 2023, 6:08am UTC](https://forum.mautic.org/t/webhook-contact-updated-for-segment-membership-change/27545/3 "2023-04-05T06:08:18Z")

</div>

Actually here is a PR:

> <https://github.com/mautic/mautic/pull/10511>
>
> \<!-- ## Which branch should I use for my PR?
> 
> Assuming that:
> 
> a = current ma…jor release
> b = current minor release
> c = future major release
> 
> \* a.x for any features and enhancements (e.g. 4.x)
> \* a.b for any bug fixes (e.g. 4.0, 4.1, 4.2)
> \* c.x for any features, enhancements or bug fixes with backward compatibility breaking changes (e.g. 5.x) --\>
> 
> | Q | A
> | -------------------------------------- | ---
> | Bug fix? (use the a.b branch) | no
> | New feature/enhancement? (use the a.x branch) | yes
> | Deprecations? | no
> | BC breaks? (use the c.x branch) | no
> | Automated tests included? | not yet
> | Related user documentation PR URL | 
> | Related developer documentation PR URL | https://github.com/mautic/developer-documentation/pull/204
> | Issue(s) addressed | 
> 
> \<!--
> Additionally (see https://contribute.mautic.org/contributing-to-mautic/developer/code/pull-requests#work-on-your-pull-request):
> - Always add tests and ensure they pass.
> - Bug fixes must be submitted against the lowest maintained branch where they apply
> (lowest branches are regularly merged to upper ones so they get the fixes too.)
> - Features and deprecations must be submitted against the "4.x" branch.
> \--\>
> 
> \#### Description:
> 
> This PR just add Contact Segment Membership Change Event to Webhooks
> 
> !\[image\](https://user-images.githubusercontent.com/462477/136180165-fc1d916a-8518-4741-a38a-f802381e5b0b.png)
> 
> 
> \<!--
> Please write a short README for your feature/bugfix. This will help people understand your PR and what it aims to do. If you are fixing a bug and if there is no linked issue already, please provide steps to reproduce the issue here.
> \--\>
> 
> \#### Steps to test this PR:
> 
> \<!--
> This part is really important. If you want your PR to be merged, take the time to write very clear, annotated and step by step test instructions. Do not assume any previous knowledge - testers may not be developers.
> \--\>
> 1. Load up \[this PR\](https://mautibox.com)
> 2. Go to https://webhook.site/ and copy link of your webhook
> 3. Go to Mautic and Webhooks
> 4. Create Contact Segment Membership Change Event to your webhook.site url
> 5. Go to contact list and change segment membership for few contacts
> 6. Check If you receive correct data to webhook.site
> 
> \<!--
> If you have any deprecations, list them here along with the new alternative.
> If you have any backwards compatibility breaks, list them here.
> \--\>
> 
> 
> \<a href="https://gitpod.io/#https://github.com/mautic/mautic/pull/10511"\>\<img src="https://gitpod.io/button/open-in-gitpod.svg"/\>\</a\>
