Qlik Community

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
IMPORTANT security patches for GeoAnalytics Server available to download: READ DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Create reload task with the QRS API

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:

https://help.qlik.com/sense/en-us/developer/#../Subsystems/RepositoryServiceAPI/Content/RepositorySe...

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

1 Solution

Accepted Solutions
Not applicable
Author

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"

     }

  ]

}   

View solution in original post

3 Replies
Not applicable
Author

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"

  }

}

Not applicable
Author

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"

     }

  ]

}   

Not applicable
Author

Yes, this will work.

If you are interested, have a look at Branch and the Qlik Sense Server Automation section. 

Cheers,

jg