HOw to add new extension using AMI interface

I want to add an extension to asterisk server using AMI interface from external Web server. Can you please give me the commands to add an extension.
Can we use the action ‘updateconfig’ to add an extension?

Yes you can.

–Satish Barot

Thank you for your reply.
Can you please give me an command example to add an extension?

Thanks in advance.