Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add API method to rename devices #7895
Not sure on how you'd like this method to be presented? Let me know if you'd prefer the new hostname to be in the body (I just wanted some kind of differentiation).
If you would like to test this pull request then please run:
Fixed the typo, thanks for spotting that.
I've also added
@laf what branch should I rebase from? I've just checked and it seems up to date with master on here, just let me know what I'm missing, can get it fixed today :)
@thomseddon sorry for the delay, busy week as you know.
So sending an error back can be done like: https://github.com/librenms/librenms/blob/master/html/includes/api_functions.inc.php#L255
Sending the end response can be done like: https://github.com/librenms/librenms/blob/master/html/includes/api_functions.inc.php#L263
Happy to update if you don't have time.