Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

aadil_zyme
Contributor

create reload task using qrs api

Hi All,

I am trying to create a reload task using the below API.But i get the response as "500 Internal server error"

Can someone help me understand where am i going wrong with the below script.

var String = "https://servername/qrs/reloadtask/create?Xrfkey=abcdefghijklmnop";

var Type = "POST";

var Body = {

                "app": {

                        "id": "e23d5857-9be3-4d7f-b659-71a7c0f48fbe",

                        "name": "TestDash"

                },

                "operational": {"id":"b8a7a7c6-b3c2-4d55-a7cc-a31f488eb984"},

                "name": "TestTaskNew",

                "taskType": 1,

                "enabled": true,

                "taskSessionTimeout": 1440,

                "maxRetries": 0,

                "tags": [],

                "privileges": null,

                "impactSecurityAccess": false,

                "schemaPath": "ReloadTask"

        };

Thanks,
Aadil

3 Replies
s29124141
Contributor II

Re: create reload task using qrs api

Try changing the taskType to 0

Not applicable

Re: create reload task using qrs api

Sorry to reply you 3 month later, but here would be the expected structure of these endpoint :

{

  "task":

  {

    "app": {

      "id": "91441f7d-c6aa-46ee-8a8d-88210fece399"

    },

    "isManuallyTriggered": false,

    "name": "_Reloader",

    "taskType": 0,

    "enabled": true,

    "taskSessionTimeout": 1440,

    "maxRetries": 0,

    "schemaPath": "ReloadTask"

  },

  "schemaEvents":

  [

    {

     "timeZone": "Europe/Paris",

     "daylightSavingTime": 0,

     "startDate": "2016-12-07T08:00:00.000",

     "expirationDate": "9999-01-01T00:00:00.000",

     "schemaFilterDescription": ["* * - * * * * *"],

     "incrementDescription": "0 0 1 0",

     "incrementOption": 2,

     "name": "Daily-Reloader",

     "enabled": true,

     }

  ]

sandeep_roy
Contributor

Re: create reload task using qrs api

Hi Axel, Where are you trying this to execute in your qlik sense or external call??

Did you get success?... I am also trying the similar in my app extension development js file.

Community Browser