Added variables to apiCall query definitions

TODO: Add documentation