2 Replies Latest reply: Mar 31, 2017 4:26 AM by Axel Vanden Eynden RSS

    create reload task using qrs api

    Aadil Madarveet

      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

        • Re: create reload task using qrs api
          praveena mundolimoole

          Try changing the taskType to 0

          • Re: create reload task using qrs api
            Axel Vanden Eynden

            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,

                 }

              ]