Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Cynicszm
Partner - Contributor II
Partner - Contributor II

OpenAPI Reload Task - ReloadTaskCondensed

Hi,

We are attempting to use the Open API specification for Repository Main API version: 38.32.0 to create a Reload Task as shown here https://help.qlik.com/en-US/sense-developer/August2023/APIs/RepositoryServiceAPI/index.html?page=124...

The example request body specifies a Task and App.
 
{
   "task": {"app": {
      "id": "bda74c3e-c7e6-4154-845a-139ad7c07390"
      },
      "name": "Reload task for app xyz"
   },
   "compositeEvents": [ ],
   "schemaEvents":[]
}
 
The ReloadTaskBundle has a Task member defined as a ReloadTaskCondensed https://help.qlik.com/en-US/sense-developer/August2023/APIs/RepositoryServiceAPI/index.html?page=184...
 
However there isn't an App member on ReloadTaskCondensed.
 
So is the API definition wrong and the ReloadTaskBundle Task should be a ReloadTask instead of a ReloadTaskCondensed or what Model should I be using to create the Reload Task?
 
Thanks,
John
 
 
Labels (1)
  • API

2 Replies
DaveChannon
Employee
Employee

Hi @Cynicszm 

In case you haven't solved this...

There are a few components that differ depending on the task type, triggers, etc. You may want to take a look at how the functions in qlik-cli-windows do this, as it shows the payloads and the endpoints - https://github.com/ahaydon/Qlik-Cli-Windows/blob/master/resources/task.ps1 

Cynicszm
Partner - Contributor II
Partner - Contributor II
Author

Thanks for the reply, I'll have a look at the script.

My main aim is to have a typed client based off the Open API specification for Repository Main API instead of creating our own versions of the JSON objects that will need to be maintained.

I'm using Open API Tools Open API Generator https://github.com/OpenAPITools/openapi-generator to generate the client types and the Open API specification for Repository Main API differs from the example code e.g. not having an App on ReloadTaskCondensed.