Director REST API - Delete method - adding more filter options

Hi experts,

I am struggling to find proper Director REST API call for deleting host object.
We wanted to delete host object not based only on name. Wanted to include in rest api call name and some other attr. like address or vars.custom_var.

We are running multi tenant env and have a lot of zones and Satellites and we have situation that our ansible is doing some strange stuff because hostname is not unique on complete env. It is unique under specific zone.

For now we have managed to delete host object using only name.

So this API is working:

curl --location --request DELETE ‘https:///director/host?name=vm-host-01’
–header ‘Accept: application/json’
–header ‘Content-Type: application/json’
–header ‘Authorization: Basic somestring==’
–header ‘Cookie: Icingaweb2=somestring’

and this not:

curl --location --request DELETE ‘https:///director/host?name=vm-host-01&vars.customer=blabla’
–header ‘Accept: application/json’
–header ‘Content-Type: application/json’
–header ‘Authorization: Basic somestring==’
–header ‘Cookie: Icingaweb2=somestring’

After checking icinga2 docu REST API - Icinga Director we have noticed that there is only example with:

DELETE director/host?name=apitest

Is there possible to use something like:

DELETE director/host?name=apitest&vars.customer=blabla ?

We have tried to do that in test env and there we have icinga Director version 1.7.2 (a bit outdated version)

Many thanks,
J