# Using Gramps Web API for adding new information

**URL:** <https://gramps.discourse.group/t/using-gramps-web-api-for-adding-new-information/8652>\
**Category:** Gramps Web\
**Created:** [October 10, 2025, 7:22am UTC](https://gramps.discourse.group/t/using-gramps-web-api-for-adding-new-information/8652 "2025-10-10T07:22:40Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![avanc](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@avanc](https://gramps.discourse.group/u/avanc)\
**Post date:** [October 19, 2025, 6:08pm UTC](https://gramps.discourse.group/t/using-gramps-web-api-for-adding-new-information/8652/21 "2025-10-19T18:08:48Z")

</div>

Yes, I’m using the docker based setup as described here: [Deploy with Docker - Gramps Web](https://www.grampsweb.org/install_setup/deployment/)

Could I avoid the problem by using a MySQL database? Until now I did not used the objects endpoint as it does not provide PUT.

In the meantime, I also found why my code was sending requests in parallel: I forgot an `await`. 😊

But how could I recover from a locked database in future? Because parallel requests are also possible (but not very likely) when two users are changing the tree at the same time.

---

<div class="post-metadata">

**Author:** ![DavidMStraub](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davidmstraub/32/7_2.png) [@DavidMStraub](https://gramps.discourse.group/u/DavidMStraub)\
**Post date:** [October 20, 2025, 7:04am UTC](https://gramps.discourse.group/t/using-gramps-web-api-for-adding-new-information/8652/22 "2025-10-20T07:04:12Z")

</div>

> [@avanc](#):
>
> Could I avoid the problem by using a MySQL database? Until now I did not used the objects endpoint as it does not provide PUT.

Gramps Web doesn’t support MySQL. It support Postgres, but for a handful of users this is usually not needed. I run my own tree with SQLite and never have problems – as long as the tools interfacing with the API don’t send exactly simultaneous requests.

> But how could I recover from a locked database in future? Because parallel requests are also possible (but not very likely) when two users are changing the tree at the same time.

I honestly don’t know. Would be good to find out for sure…

[Previous page](https://gramps.discourse.group/t/using-gramps-web-api-for-adding-new-information/8652.md?page=1)
