Hi,
We are using the QRS API and .NET SDK to automate several steps, including duplicating and publishing applications. One step we need to manage is creating reload tasks using the API, we've found the following documentation:
but the details about the JSON body to send are incomplete, and we can't find this information anywhere else, has anyone else used this successfully?
Thanks for your time
Here's what the JSON should look like:
{
"task":
{
"app": {
"id": "ba9445ac-bcd3-44ac-b636-67cbe9a54428"
},
"isManuallyTriggered": false,
"name": "_LukeReloadTask",
"taskType": 0,
"enabled": true,
"taskSessionTimeout": 1440,
"maxRetries": 0,
"schemaPath": "ReloadTask"
},
"schemaEvents":
[
{
"name" : "AutoSchedule1",
"eventtype" : 0,
"modifiedDate": "2015-05-11T14:45:31",
"incrementDescription" : "10 0 0 0",
"incrementOption" : 1,
"startDate": "2015-05-11T14:45:31",
"expirationDate": "9999-12-30T23:59:00"
}
]
}
Figured out how to create the task, now just missing the timed schedule creation part:
{
"task":
{
"id": "88043841-e711-46ba-a48e-157bfdf266ad",
"modifiedDate": "2015-05-11T11:18:31.485Z",
"app": {
"id": "ba9445ac-bcd3-44ac-b636-67cbe9a54428"
},
"isManuallyTriggered": true,
"name": "LukeTest",
"taskType": 0,
"enabled": true,
"taskSessionTimeout": 1440,
"maxRetries": 0,
"schemaPath": "ReloadTask"
}
}
Here's what the JSON should look like:
{
"task":
{
"app": {
"id": "ba9445ac-bcd3-44ac-b636-67cbe9a54428"
},
"isManuallyTriggered": false,
"name": "_LukeReloadTask",
"taskType": 0,
"enabled": true,
"taskSessionTimeout": 1440,
"maxRetries": 0,
"schemaPath": "ReloadTask"
},
"schemaEvents":
[
{
"name" : "AutoSchedule1",
"eventtype" : 0,
"modifiedDate": "2015-05-11T14:45:31",
"incrementDescription" : "10 0 0 0",
"incrementOption" : 1,
"startDate": "2015-05-11T14:45:31",
"expirationDate": "9999-12-30T23:59:00"
}
]
}
Yes, this will work.
If you are interested, have a look at Branch and the Qlik Sense Server Automation section.
Cheers,
jg