Trouble creating an extension with WebRTC configured with php backend

I have a php web app and i want to create an extension in asterisk/freepbx without manually touching the config files. This I was able to do with the freepbx graphql api. The problem is when i need that extension to be configured for webrtc support. (eg. webrtc=yes settings) I cannot find anything on the graphql api which allowed me to do this. Then i checkout AMI clients for php and it had UpdateConfig action but wouldn’t that be like manually editing the conf files and freepbx doesn’t recommend it? So how should i go about creating an extension and have it configured for webrtc using php?

I think for yous PHP App best you can try to use pure Asterisk. I think for WebRTC FreePBX has some limitations. ( this is my thought )

Thank you for the suggestion. “Pure Asterisk” meaning using asterisk’s AMI client to interact with the conf files and create an extension? Like using the UpdateConfig action in AMI by using a client like PAMI?
Edit: PAMI doesn’t support UpdateConfig action.