Using Asterisk Manager API to updateConfig

I’m using the Asterisk Manager API to update my sip.conf and extensions.conf without problems (i’ve created a c program to use it)
=> example of command here

Now I want to use templates in the sip.conf
=> example here

Does someone know how to set the category with the options ?
I can create a sip extenstion like this [my-sip-ep]
But how to create a template basic-options using the API ? Is it possible ?

I’m using asterisk

Thanks for your help.


No idea ? Is it possible to do ?