Reload task: Update

Note: LOCKED.
This API is extremely reliable and will not be broken unless absolutely necessary.

Method

POST

Path

/qrs/reloadtask/update

Description

Update a task and its triggers (that is, events). There are two types of triggers for a reload task:

  • Composite event

    This event is triggered on condition of other events succeeding or failing, also known as task event trigger.

  • Schema event

    This event is triggered according to a schedule (covers once-only as well as all repeating triggers).

Body

{ "task": { "id": "cf958691-4e4d-40ef-9510-48b39ef862d0", "createdDate": "2017-01-23T15:15:53.794Z", "modifiedDate": "2017-01-23T16:25:15.225Z", "modifiedByUserName": "INTERNAL\\sa_repository", "customProperties": [], "app": { "id": "bda74c3e-c7e6-4154-845a-139ad7c07390", "name": "License Monitor", "appId": "", "publishTime": "2016-12-30T17:52:13.609Z", "published": true, "stream": { "id": "a70ca8a5-1d59-4cc9-b5fa-6e207978dcaf", "name": "Monitoring apps", "privileges": null }, "savedInProductVersion": "4.16.0", "migrationHash": "82b8362010f6f32f12217392e08c75194db0d4fc", "availabilityStatus": 0, "privileges": null }, "isManuallyTriggered": false, "operational": null, "name": "Reload task for license monitor app", "taskType": 0, "enabled": true, "taskSessionTimeout": 1440, "maxRetries": 4, "tags": [], "privileges": null, "impactSecurityAccess": false, "schemaPath": "ReloadTask" }, "schemaEvents":[{ "id": "41bf38be-db79-42f9-99b5-b7e06d0828c6", "createdDate": "2017-01-23T15:15:53.794Z", "modifiedDate": "2017-01-23T17:35:10.981Z", "modifiedByUserName": "INTERNAL\\sa_repository", "timeZone": "America/New_York", "daylightSavingTime": 0, "startDate": "2017-01-23T10:19:29.000", "expirationDate": "9999-01-01T00:00:00.000", "schemaFilterDescription": [ "* * - 1 1 * * *" ], "incrementDescription": "0 0 1 0", "incrementOption": 3, "operational": null, "name": "WeeklyEventTrigMon", "enabled": true, "eventType": 0, "reloadTask": { "id": "cf958691-4e4d-40ef-9510-48b39ef862d0", "operational": null, "name": "Reload task for app ttt", "taskType": 0, "enabled": true, "taskSessionTimeout": 1440, "maxRetries": 4, "privileges": null }, "userSyncTask": null, "externalProgramTask": null, "privileges": null, "impactSecurityAccess": false, "schemaPath": "SchemaEvent" }], "compositeEvents":[{ "id": "84d3cb3a-1016-401d-a0c2-e4a996006dfd", "createdDate": "2017-01-23T17:59:34.005Z", "modifiedDate": "2017-01-23T17:59:34.005Z", "modifiedByUserName": "QTSEL\\bll", "timeConstraint": { "id": "84d3cb3a-1016-401d-a0c2-e4a996006dfd", "createdDate": "2017-01-23T17:59:34.005Z", "modifiedDate": "2017-01-23T17:59:34.005Z", "modifiedByUserName": "INTERNAL\\sa_repository", "days": 0, "hours": 0, "minutes": 360, "seconds": 0, "impactSecurityAccess": false, "schemaPath": "CompositeEvent.TimeConstraint" }, "compositeRules":[{ "id": "ab4b4b88-0c34-4701-8dba-cc899acd9392", "createdDate": "2017-01-23T17:59:34.005Z", "modifiedDate": "2017-01-23T17:59:34.005Z", "modifiedByUserName": "INTERNAL\\sa_repository", "ruleState": 1, "reloadTask": { "id": "90256934-88e8-4ead-8302-5dc90780ed27", "name": "Reload task for app xyz", "taskType": 0, "enabled": true, "taskSessionTimeout": 1440, "maxRetries": 7, "privileges": null }, "userSyncTask": null, "externalProgramTask": null, "impactSecurityAccess": false, "schemaPath": "CompositeEvent.Rule" }], "name": "taskEventTrig77", "enabled": true, "eventType": 1, "reloadTask": { "id": "cf958691-4e4d-40ef-9510-48b39ef862d0", "operational": null, "name": "Reload task for License Monitor app", "taskType": 0, "enabled": true, "taskSessionTimeout": 1440, "maxRetries": 4, "privileges": null }, "userSyncTask": null, "externalProgramTask": null, "privileges": null, "impactSecurityAccess": false, "schemaPath": "CompositeEvent" }] }

Return value

{ "id": "cf958691-4e4d-40ef-9510-48b39ef862d0", "createdDate": "2017-01-23T15:15:53.794Z", "modifiedDate": "2017-01-23T18:05:55.301Z", "modifiedByUserName": "INTERNAL\\sa_repository", "customProperties": [], "app": { "id": "bda74c3e-c7e6-4154-845a-139ad7c07390", "name": "License Monitor", "appId": "", "publishTime": "2016-12-30T17:52:13.609Z", "published": true, "stream": { "id": "a70ca8a5-1d59-4cc9-b5fa-6e207978dcaf", "name": "Monitoring apps", "privileges": null }, "savedInProductVersion": "4.16.0", "migrationHash": "82b8362010f6f32f12217392e08c75194db0d4fc", "availabilityStatus": 0, "privileges": null }, "isManuallyTriggered": false, "operational": null, "name": "Reload task for app ttt", "taskType": 0, "enabled": true, "taskSessionTimeout": 1440, "maxRetries": 4, "tags": [], "privileges":[ "create", "read", "update", "delete" ], "impactSecurityAccess": false, "schemaPath": "ReloadTask" }

Optional parameters

-

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?