API or Command to create / update / delete extensions in freepbx

For what it’s worth, I tried doing this in the past, but was unsuccessful. I ran out of time, but someone in the community found a bug with my query. Check it out here: