3 Replies Latest reply: May 12, 2015 7:58 AM by Jeffrey Goldberg RSS

    Create reload task with the QRS API

    Luke Williams

      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/RepositoryServiceAPI/RepositoryS…

       

      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

        • Re: Create reload task with the QRS API
          Luke Williams

          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"

            }

          }

          • Re: Create reload task with the QRS API
            Luke Williams

            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"

                 }

              ]

            }