is there any ability, or API Endpoint (REST) available that can perform the equivalent of a human pressing “Apply config” in the web browser?
I know that there is amportal reload or /var/lib/asterisk/bin/module_admin reload, howver I dont want to have to Cron this, and would much rather only call it when necessary.
Use Case:
with the newest update to the queues module, and the ability to SET members of a queue, we gave our staff a google doc wherein they can enter their extension, push a button, and it will populate their extension into the dynamic members of their queue.
This is much safer than giving them the keys to the kingdom and a full web account.
however, the last step we do is push this code into freePBX… and then contact a human to press “Apply Config” for you.
thats easy to program… if an endpoint exists.
@lgaetz Graphql is interesting… but is there not a REST endpoint that i can post to to trigger the same?
it seems odd to me that such key functionality would be missing from the REST api.
Thank you @PitzKey.
it does seem that I MIGHT be able to post to http://{REDACTED}/admin/api/api/gql
with a doreload…
However, ive hit another stumbling block:
doreload is not a function in the “Current” api module, 15.0.10
this was mentioned above, however, while trying to upgrade to the edge track… fwconsole ma upgrade api --edge
only gives
No repos specified, using: [standard,extended,unsupported,commercial,edge] from last GUI settings
api is the same as the online version, unable to upgrade
Updating Hooks...Done
Chowning directories...Done
which puts my version to 15.0.3.11
im sure im doing something wrong here, but i just cant seem to find it. 15.0.3.11 would be Older than 15.0.10
Any chance you could lend some advice as to why im not able to install the edge API module?
thanks @lgaetz… but after using the CLI to upgrade to 15.0.3.11, i still dont have access to the new functionality, even in the API Explorer as linked previously.
other than a core reload… what am i missing for getting the new version “active”?
its not showing as the active version in my web interface either, only 15.0.10
an asterisk -r core reload hasnt helped
nor has a fwconsole reload