# API Update: Upsert Abilities on the v2 Case API

**URL:** <https://forum.dimagi.com/t/api-update-upsert-abilities-on-the-v2-case-api/12170>\
**Category:** Product & Platform Announcements\
**Created:** [January 19, 2026, 4:28pm UTC](https://forum.dimagi.com/t/api-update-upsert-abilities-on-the-v2-case-api/12170 "2026-01-19T16:28:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kai\_Cowger\_Dimagi](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/kai_cowger_dimagi/32/2509_2.png) [@Kai\_Cowger\_Dimagi](https://forum.dimagi.com/u/Kai_Cowger_Dimagi)\
**Post date:** [January 19, 2026, 4:28pm UTC](https://forum.dimagi.com/t/api-update-upsert-abilities-on-the-v2-case-api/12170/1 "2026-01-19T16:28:55Z")

</div>

Hello!

I wanted to announce an update to our v2 Case API. We now have the ability to upsert cases based on the external\_id field as outlined [here](https://commcare-hq.readthedocs.io/api/cases-v2.html#upsert). If a case update includes a value for “external\_id” and does not include a value for “case\_id”, then the “create” field may be omitted, and the API will upsert the case based on the value of “external\_id”. We intend for this behavior to help projects that bulk update and create cases programmatically via the APIs on a regular basis.

As always, feel free to reach out to [support@dimagi.com](mailto:support@dimagi.com) for any questions.

-Kai
