mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-09 03:31:51 -07: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:
@@ -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