Using Asterisk Manager API to updateConfig

Hi,
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 http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+UpdateConfig

Now I want to use templates in the sip.conf
=> example here http://www.voip-info.org/wiki/view/Asterisk+config+template

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 1.6.2.13

Thanks for your help.

Sebastien

No idea ? Is it possible to do ?