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:
Jokob @NetAlertX
2026-04-08 22:38:43 +00:00
parent 28e6d62ccb
commit da8b694a49
3 changed files with 7 additions and 3 deletions

View File

@@ -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)