Group

GET /groups

List all groups of this account.

Response

Status: 200
[
    {
        "id": 1,
        "name": "Group Name 1",
        "worktime": "Default 8x5 - 09:00 às 18:00"
        "users_count": 15,
        "managed_users_count": 13,
        "request_users_count": 14
    },
    {
        "id": 2,
        "name": "Group Name 2",
        "worktime": "Default 8x5 - 09:00 às 18:00"
        "users_count": 4,
        "managed_users_count": 13,
        "request_users_count": 14
    }
]

GET /groups/{id}

Get details of one group.

Response

Status: 200
{
    "id": 1,
    "name": "Group Name 1",
    "worktime": "Default 8x5 - 09:00 - 18:00",
    "users_count": 2,
    "managed_users_count": 1,
    "request_users_count": 1,
    "users": [
        {
            "id": 1,
            "name": "User Name 1",
            "email": "[email protected]"
        },
        {
            "id": 2,
            "name": "User Name 2",
            "email": "[email protected]"
        }
    ],
    "managed_users": [
        {
            "id": 1,
            "name": "User Name 1",
            "email": "[email protected]"
        }
    ],
    "request_users": [
        {
            "id": 1,
            "name": "User Name 1",
            "email": "[email protected]"
        }
    ]
}