support to create query definitons through the API