-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: API PUT request support on Organizaiton & Network #380
Comments
I came up with a workaround to accomplish this.. here is the sample bash script... I am actually passing variables from a windows machine with powershell to make everything full automated. but here is the BASH portion. You will need to adjust the path for identity.public when obtaining the NODE_ID as it is unique to Unifi UDM.
|
Glad you found a solution. However, i do see the API docs has an error regards the DNS entries. |
🚀 Feature Summary
API PUT request support on Organizaiton & Network
📝 Detailed Description
currently API endpoint only supports POST which overwrites the JSON payload entirely. For example. I would like the functionality to "add" a route and dns server via cURL.
🎯 Use Case
Here is a bash script for Unifi Dream Machine I am working on. It currently can authorize and name a node based on host name. But I would like it to be able to pass its static route of its native LAN and DNS. But currently with POST only supported and not PUT, I cannot seem to get it to work the way I envisioned. I have attempted to perform a pre-emptive GET and extrapolate data, then concatonate a new variable, to no avail. I assume PUT support would rememedy this problem?
💡 Willing to Contribute
Yes, I could help with testing
The text was updated successfully, but these errors were encountered: