Тема: Add 1 unit to existing unit-group with some units
could you help me with this code:
spec = {
'itemsType': 'avl_unit_group',
'propName': 'sys_name',
'propValueMask': 'Falck',
'sortType': 'sys_name' }
interval = {"from": 0, "to": 0}
dunits = wialon_api.core_search_items(spec=spec, force=1, flags=flags.ITEM_DATAFLAG_BASE, **interval)
u=dunits['items'][0]['u']
u=u+[unitid]
unitg= wialon_api.unit_group_update_units(itemId=19391894, units=u)
I get this error:
WialonError(Invalid service unit_group_update_units (2))