# Advice on updating a preview module to newer version and backwards compatability

**URL:** <https://forum.ansible.com/t/advice-on-updating-a-preview-module-to-newer-version-and-backwards-compatability/27758>\
**Category:** Ansible Developer\
**Created:** [June 9, 2018, 7:48pm UTC](https://forum.ansible.com/t/advice-on-updating-a-preview-module-to-newer-version-and-backwards-compatability/27758 "2018-06-09T19:48:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen\_Barry](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stephen\_Barry](https://forum.ansible.com/u/Stephen_Barry)\
**Post date:** [June 9, 2018, 7:48pm UTC](https://forum.ansible.com/t/advice-on-updating-a-preview-module-to-newer-version-and-backwards-compatability/27758/1 "2018-06-09T19:48:28Z")

</div>

Hi fellow Ansible users,

I am thinking of contributing to Ansible modules, by way of updating an existing module, namely [pagerduty\_alert](https://docs.ansible.com/ansible/latest/modules/pagerduty_alert_module.html) to use [PagerDuty Events API V2](https://v2.developer.pagerduty.com/docs/send-an-event-events-api-v2), as the [PagerDuty v1 API is being decommissioned on Oct 19th 2018](https://v2.developer.pagerduty.com/v2/docs/v1-rest-api-decommissioning-faq). I may tackle an existing open [Feature Request (#36438)](https://github.com/ansible/ansible/issues/36438) to update [pagerduty\_module](https://docs.ansible.com/ansible/latest/modules/pagerduty_module.html) at a later time, all going well 🙂 But for now, I only need ability to trigger/resolve incidents via PgaerDuty.

I not that pagerduty\_alert\_module is marked as preview, so not guaranteed to have backwards compatible interface. My question is whether this is acceptable or should I add a new module (for example pagerduty\_incident module) which provides event creation through V2 API while leaving pagerduty\_alert provide event creation via V1 API? Should pagerduty\_alert be marked/flagged as being deprecated, as looks like it will stop working for any active users of the module on Oct 19th.

Any comments, advice and feedback would be appreciated. Looking forward to contributing to Ansible 🙂

S
