I have it working for process variables that I know exist and I just want a certain value. However, I have a use case where I need all the ones that don’t have the variable and in another case, all the ones that do regardless of the value.
I think a single api won’t suffice for this. You can use GET /task/{id}/variables/{varName api for each task in the get task list api. That will give you appropriate http status depending upon if that variable exists or not.
Querying for all tasks that don’t have a specific variable might be impossible with the exisiting filters.
But getting all tasks that have a variable regardless of its value might work, if you know the variable type and that the variable is not null: