How to filter organisationunit by hierarchylevel in query

I am trying to filter organisation units by hierarchylevel to return all orgunit in that level. I use the query below in playground but it throws error. Also if I want to return all the items under the level what other params do I need to include?

{
    "organisationUnits": {
        "resource": "organisationUnits",
        "params": {
            "fields": [
                "id",
                "name"
            ],
            "filter": "hierarchylevel:eq:5",
            "order": "code:desc",
            "pageSize": 100
        }
    }
}

Hi @jetisco4u ,

There is no field called hierarchylevel. Replace that with level.
Use below

{
    "organisationUnits": {
        "resource": "organisationUnits",
        "params": {
            "fields": [
                "id",
                "name"
            ],
            "filter": "level:eq:1",
            "order": "code:desc",
            "pageSize": 100
        }
    }
}

Thanks,
Rithvik