This is an old revision of the document!


Units groups by id

The request is intended to receive the list of groups by id's.

Request example

&svc=get_units_groups_by_ids&params={
    "id_user": integer,
    "units_groups_ids": [integer, integer, ...]
}

Parameters

Parameter Description
id_user Unique user id
units_groups_ids List of unique units groups ids

Additional info

If optional parameter id_user is set, response will contain all available groups.

Response

List of groups
[
    {
        "id": 29202, // ID группы
        "creator": 24237, // Создатель группы
        "name": "Тест", // Название группы
        "icon": "darkblue/car_icon.png", // Иконка группы
        "units": [
            28738, // ID объекта
            66780,
            ...
        ]
    },
    ...
]