mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-15 05:26:13 -04:00
Update API documentation and schemas: clarify lock/unlock behavior for device fields and enhance error handling in device alias update
This commit is contained in:
1 parent
28e6d62ccb
commit
da8b694a49
3 files changed
+7
-3
No files matched your search
@@ -585,6 +585,10 @@ def api_device_set_alias(mac, payload=None):
|
||||
|
||||
device_handler = DeviceInstance()
|
||||
result = device_handler.updateDeviceColumn(mac, 'devName', alias)
|
||||
|
||||
if not result.get("success") and result.get("error") == "Device not found":
|
||||
return jsonify(result), 404
|
||||
|
||||
return jsonify(result)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user