How to store the config ID of newly added uci section in config file using uci_add_section()?

In CLI if I add new section using uci command

uci add dhcp host
cfg07fe63

It will give config ID which is "cfg07fe63" here.

I'm trying to add new section using uci_add_section() by including uci.h in my c file. I need the cfg ID generated after adding new section.

Anyone here knows, please help.

Thanks in advance.

Provide a variable for the result (res) to land in of type uci_section**
uci_section has a uci_element (e)
uci_element contains a name

This is all in uci.h