# Libconfd\_db API

**URL:** <https://dmap-community.ductus.global/t/libconfd-db-api/2774>\
**Category:** NETCONF\
**Created:** [November 14, 2019, 8:02am UTC](https://dmap-community.ductus.global/t/libconfd-db-api/2774 "2019-11-14T08:02:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HoangCV](https://avatars.discourse-cdn.com/v4/letter/h/ce7236/32.png) [@HoangCV](https://dmap-community.ductus.global/u/HoangCV)\
**Post date:** [November 14, 2019, 8:02am UTC](https://dmap-community.ductus.global/t/libconfd-db-api/2774/1 "2019-11-14T08:02:57Z")

</div>

hi all, Is there a way to edit the configuration data in the database using c program?

---

<div class="post-metadata">

**Author:** ![per](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@per](https://dmap-community.ductus.global/u/per)\
**Post date:** [November 15, 2019, 5:21pm UTC](https://dmap-community.ductus.global/t/libconfd-db-api/2774/2 "2019-11-15T17:21:41Z")

</div>

Absolutely - the way to do that is to run and commit a transaction via the MAAPI API. The `intro/12-c_maapi` example in the examples collection seems to cover _all_ uses of MAAPI - the most relevant part for you is probably (from the README):

```auto
* during start up: application creates MAAPI transaction and adds current date
  and time to the `start-log` list (shows how to use `maapi_start_trans`,
  `maapi_create` and `maapi_set_elem`)

```

For the full details, see the confd\_lib\_maapi(3) manual page.
