Tasks
API for managing tasks and task chains in Qlik Cloud. The requesting user needs the "reload" permission on the target resource to use this set of endpoints. A tenant admin can use GET /v1/tasks and DELETE /v1/tasks/{id} to perform administrative actions, even without the "reload" permission.
Endpoints
Retrieves a list of the tasks that the requesting user has access to.
Facts
Rate limit | Special (600 requests per minute) |
Categories |
Query Parameters
- resourceIdstringRequired
Required. Filter tasks by its target resource ID. If not provided, request will fail with 400 (Bad Request).
- limitinteger
The maximum number of resources to return for a request.
- pagestring
The page cursor.
- sortstring
The property of a resource to sort on (default sort is -updatedAt). A property must be prefixed by + or - to indicate ascending or descending sort order respectively.
Can be one of: "+createdAt""-createdAt""+updatedAt""-updatedAt"
Responses
200
application/json
OK Response
- application/jsonobject
application/json properties
- dataarray of objects
data properties
- idstring
The choreographer's unique identifier
- keystring
Optional expression that will be used to generate a domain-specific workflow instance identifier
- namestringRequired
The name that identifies the workflow definition, and which, when combined with its version, forms a unique identifier.
- startobjectOne of:
- object
Workflow start definition
properties
- schedulestring|objectRequiredOne of:
- string
Time interval (must be repeating interval) described with ISO 8601 format. Declares when workflow instances will be automatically created. (UTC timezone is assumed)
- object
Start state schedule definition
One of:- any
- any
-
-
- stateNamestring
Name of the starting workflow state
-
-
- eventsarray of objects
Workflow CloudEvent definitions. Defines CloudEvents that can be consumed or produced
events properties
- namestring
Unique event name
- typestring
CloudEvent type
Can be one of: "com.qlik.v1.task.run.finished"
- sourcestring
CloudEvent source
Can be one of: "system-events.task"
- dataOnlyboolean
If
true
, only the Event payload is accessible to consuming Workflow states. Iffalse
, both event payload and context attributes should be accessible - correlationarray of objects
CloudEvent correlation definitions
correlation properties
- contextAttributeNamestringRequired
CloudEvent Extension Context Attribute name
Can be one of: "id""status"
- contextAttributeValuestring
CloudEvent Extension Context Attribute value
-
-
- statesarray of objects
State definitions
One of:- any
- any
-
- enabledboolean
Indicates whether the task is enabled or not
- versionstring
Workflow version
- metadataobject
metadata properties
- usagestring
resource usage. Normally it means in which product domain the resource is used. if this field is not presented, it has default of
ANALYTICS
Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerIdstring
The user ID of the owner of the task
- spaceIdstring
The space ID that the Task will operate in
- triggerobject
trigger properties
- idstringRequired
The ID of the Trigger associated with the task in the choreographer
- typeintegerRequired
trigger type
Can be one of: 0123
-
- tenantIdstring
The tenant ID that the Task will operate in
- createdAtstring
The UTC timestamp when the task was created
- createdBystring
The user ID of the user that created the task
- deletedAtstring
The UTC timestamp when the task was deleted
- updatedAtstring
The UTC timestamp when the task was last updated
- disabledCodestring
why the Task is disabled
Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED"
- migratedFromstring
The ID of the reload-task this one was migrated from (if applicable)
- orchestrationobject
orchestration properties
- idstringRequired
The ID of the orchestration associated with the task in the choreographer
- typeintegerRequired
orchestration system type
Can be one of: 0123
- attrsobject
-
-
- keepActiveboolean
If 'true', workflow instances is not terminated when there are no active execution paths. Instance can be terminated via 'terminate end definition' or reaching defined 'workflowExecTimeout'
- resourceIdstring
The resource ID of the task. The
Task.resourceId
value from user input is ignored and will be calculated automatically fromTask.states
. - annotationsarray of strings
List of helpful terms describing the workflows intended purpose, subject areas, or other important qualities
- descriptionstring
Workflow description
- specVersionstringRequired
Serverless Workflow schema version
-
- linksobject
links properties
- nextobject
next properties
- hrefstringRequired
URL to a resource request
-
- prevobject
prev properties
- hrefstringRequired
URL to a resource request
-
- selfobject
self properties
- hrefstringRequired
URL to a resource request
-
-
-
400
application/json
Bad Request
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
401
application/json
Unauthorized
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
403
application/json
Forbidden
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
404
application/json
Not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
500
application/json
Internal Server Error
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
503
application/json
Service Unavailable
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tasks" \-H "Authorization: Bearer <access_token>"
const https = require('https') const data = JSON.stringify("") const options = { 'hostname': 'https://your-tenant.us.qlikcloud.com', 'port': 443, 'path': '/api/v1/tasks', 'method': 'GET', 'headers': { 'Authorization': 'Bearer <access_token>' } } const req = https.request(options)
This API is not included yet in qlik-cli
Response
{ "data": [ { "id": "string", "key": "string", "name": "string", "start": { "schedule": "string", "stateName": "string" }, "events": [ { "name": "string", "type": "com.qlik.v1.task.run.finished", "source": "system-events.task", "dataOnly": true, "correlation": [ { "contextAttributeName": "id", "contextAttributeValue": "string" } ] } ], "states": [ { "end": true, "name": "string", "type": "EVENT", "onEvents": [ { "actions": [ { "name": "string", "retryRef": "string", "condition": "string", "functionRef": {}, "retryableErrors": [ "string" ], "nonRetryableErrors": [ "string" ] } ], "eventRefs": [ "string" ], "actionMode": "SEQUENTIAL" } ], "timeouts": { "eventTimeout": "string", "stateExecTimeout": "string", "actionExecTimeout": "string" }, "exclusive": true, "compensatedBy": "string" } ], "enabled": false, "version": "string", "metadata": { "usage": "ANALYTICS", "ownerId": "string", "spaceId": "string", "trigger": { "id": "string", "type": 0 }, "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "createdBy": "string", "deletedAt": "2018-10-30T07:06:22Z", "updatedAt": "2018-10-30T07:06:22Z", "disabledCode": "MANUALLY", "migratedFrom": "string", "orchestration": { "id": "string", "type": 0, "attrs": {} } }, "keepActive": false, "resourceId": "string", "annotations": [ "string" ], "description": "string", "specVersion": "string" } ], "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" } }}
Creates a new task.
Facts
Rate limit | Special (600 requests per minute) |
Categories |
Query Parameters
- migrateFromstring
ID of the reload-task to migrate from the old system (optional).
Request Body
Requiredapplication/json
- application/jsonobject
application/json properties
- keystring
Optional expression that will be used to generate a domain-specific workflow instance identifier
- namestringRequired
The name that identifies the workflow definition, and which, when combined with its version, forms a unique identifier.
- startobjectOne of:
- object
Workflow start definition
properties
- schedulestring|objectRequiredOne of:
- string
Time interval (must be repeating interval) described with ISO 8601 format. Declares when workflow instances will be automatically created. (UTC timezone is assumed)
- object
Start state schedule definition
One of:- any
- any
-
-
- stateNamestring
Name of the starting workflow state
-
-
- eventsarray of objects
Workflow CloudEvent definitions. Defines CloudEvents that can be consumed or produced
events properties
- namestring
Unique event name
- typestring
CloudEvent type
Can be one of: "com.qlik.v1.task.run.finished"
- sourcestring
CloudEvent source
Can be one of: "system-events.task"
- dataOnlyboolean
If
true
, only the Event payload is accessible to consuming Workflow states. Iffalse
, both event payload and context attributes should be accessible - correlationarray of objects
CloudEvent correlation definitions
correlation properties
- contextAttributeNamestringRequired
CloudEvent Extension Context Attribute name
Can be one of: "id""status"
- contextAttributeValuestring
CloudEvent Extension Context Attribute value
-
-
- statesarray of objects
State definitions
One of:- any
- any
-
- enabledboolean
Indicates whether the task is enabled or not
- versionstring
Workflow version
- metadataobject
metadata properties
- usagestring
resource usage. Normally it means in which product domain the resource is used. if this field is not presented, it has default of
ANALYTICS
Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerIdstring
The user ID of the owner of the task
- spaceIdstring
The space ID that the Task will operate in
- triggerobject
trigger properties
- idstringRequired
The ID of the Trigger associated with the task in the choreographer
- typeintegerRequired
trigger type
Can be one of: 0123
-
- tenantIdstring
The tenant ID that the Task will operate in
- createdBystring
The user ID of the user that created the task
- updatedAtstring
The UTC timestamp when the task was last updated
- disabledCodestring
why the Task is disabled
Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED"
- migratedFromstring
The ID of the reload-task this one was migrated from (if applicable)
- orchestrationobject
orchestration properties
- idstringRequired
The ID of the orchestration associated with the task in the choreographer
- typeintegerRequired
orchestration system type
Can be one of: 0123
- attrsobject
-
-
- keepActiveboolean
If 'true', workflow instances is not terminated when there are no active execution paths. Instance can be terminated via 'terminate end definition' or reaching defined 'workflowExecTimeout'
- resourceIdstring
The resource ID of the task. The
Task.resourceId
value from user input is ignored and will be calculated automatically fromTask.states
. - annotationsarray of strings
List of helpful terms describing the workflows intended purpose, subject areas, or other important qualities
- descriptionstring
Workflow description
- specVersionstringRequired
Serverless Workflow schema version
-
Responses
201
application/json
OK Response
- application/jsonobject
application/json properties
- idstring
The choreographer's unique identifier
- keystring
Optional expression that will be used to generate a domain-specific workflow instance identifier
- namestringRequired
The name that identifies the workflow definition, and which, when combined with its version, forms a unique identifier.
- startobjectOne of:
- object
Workflow start definition
properties
- schedulestring|objectRequiredOne of:
- string
Time interval (must be repeating interval) described with ISO 8601 format. Declares when workflow instances will be automatically created. (UTC timezone is assumed)
- object
Start state schedule definition
One of:- any
- any
-
-
- stateNamestring
Name of the starting workflow state
-
-
- eventsarray of objects
Workflow CloudEvent definitions. Defines CloudEvents that can be consumed or produced
events properties
- namestring
Unique event name
- typestring
CloudEvent type
Can be one of: "com.qlik.v1.task.run.finished"
- sourcestring
CloudEvent source
Can be one of: "system-events.task"
- dataOnlyboolean
If
true
, only the Event payload is accessible to consuming Workflow states. Iffalse
, both event payload and context attributes should be accessible - correlationarray of objects
CloudEvent correlation definitions
correlation properties
- contextAttributeNamestringRequired
CloudEvent Extension Context Attribute name
Can be one of: "id""status"
- contextAttributeValuestring
CloudEvent Extension Context Attribute value
-
-
- statesarray of objects
State definitions
One of:- any
- any
-
- enabledboolean
Indicates whether the task is enabled or not
- versionstring
Workflow version
- metadataobject
metadata properties
- usagestring
resource usage. Normally it means in which product domain the resource is used. if this field is not presented, it has default of
ANALYTICS
Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerIdstring
The user ID of the owner of the task
- spaceIdstring
The space ID that the Task will operate in
- triggerobject
trigger properties
- idstringRequired
The ID of the Trigger associated with the task in the choreographer
- typeintegerRequired
trigger type
Can be one of: 0123
-
- tenantIdstring
The tenant ID that the Task will operate in
- createdAtstring
The UTC timestamp when the task was created
- createdBystring
The user ID of the user that created the task
- deletedAtstring
The UTC timestamp when the task was deleted
- updatedAtstring
The UTC timestamp when the task was last updated
- disabledCodestring
why the Task is disabled
Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED"
- migratedFromstring
The ID of the reload-task this one was migrated from (if applicable)
- orchestrationobject
orchestration properties
- idstringRequired
The ID of the orchestration associated with the task in the choreographer
- typeintegerRequired
orchestration system type
Can be one of: 0123
- attrsobject
-
-
- keepActiveboolean
If 'true', workflow instances is not terminated when there are no active execution paths. Instance can be terminated via 'terminate end definition' or reaching defined 'workflowExecTimeout'
- resourceIdstring
The resource ID of the task. The
Task.resourceId
value from user input is ignored and will be calculated automatically fromTask.states
. - annotationsarray of strings
List of helpful terms describing the workflows intended purpose, subject areas, or other important qualities
- descriptionstring
Workflow description
- specVersionstringRequired
Serverless Workflow schema version
-
400
application/json
Bad Request
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
401
application/json
Unauthorized
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
403
application/json
Forbidden
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
404
application/json
Not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
500
application/json
Internal Server Error
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
503
application/json
Service Unavailable
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tasks" \-X POST \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"key":"string","name":"string","start":{"schedule":"string","stateName":"string"},"events":[{"name":"string","type":"com.qlik.v1.task.run.finished","source":"system-events.task","dataOnly":true,"correlation":[{"contextAttributeName":"id","contextAttributeValue":"string"}]}],"states":[{"end":true,"name":"string","type":"EVENT","onEvents":[{"actions":[{"name":"string","retryRef":"string","condition":"string","functionRef":{},"retryableErrors":["string"],"nonRetryableErrors":["string"]}],"eventRefs":["string"],"actionMode":"SEQUENTIAL"}],"timeouts":{"eventTimeout":"string","stateExecTimeout":"string","actionExecTimeout":"string"},"exclusive":true,"compensatedBy":"string"}],"enabled":false,"version":"string","metadata":{"usage":"ANALYTICS","ownerId":"string","spaceId":"string","trigger":{"id":"string","type":0},"tenantId":"string","createdBy":"string","updatedAt":"2018-10-30T07:06:22Z","disabledCode":"MANUALLY","migratedFrom":"string","orchestration":{"id":"string","type":0,"attrs":{}}},"keepActive":false,"resourceId":"string","annotations":["string"],"description":"string","specVersion":"string"}'
const https = require('https') const data = JSON.stringify({"key":"string","name":"string","start":{"schedule":"string","stateName":"string"},"events":[{"name":"string","type":"com.qlik.v1.task.run.finished","source":"system-events.task","dataOnly":true,"correlation":[{"contextAttributeName":"id","contextAttributeValue":"string"}]}],"states":[{"end":true,"name":"string","type":"EVENT","onEvents":[{"actions":[{"name":"string","retryRef":"string","condition":"string","functionRef":{},"retryableErrors":["string"],"nonRetryableErrors":["string"]}],"eventRefs":["string"],"actionMode":"SEQUENTIAL"}],"timeouts":{"eventTimeout":"string","stateExecTimeout":"string","actionExecTimeout":"string"},"exclusive":true,"compensatedBy":"string"}],"enabled":false,"version":"string","metadata":{"usage":"ANALYTICS","ownerId":"string","spaceId":"string","trigger":{"id":"string","type":0},"tenantId":"string","createdBy":"string","updatedAt":"2018-10-30T07:06:22Z","disabledCode":"MANUALLY","migratedFrom":"string","orchestration":{"id":"string","type":0,"attrs":{}}},"keepActive":false,"resourceId":"string","annotations":["string"],"description":"string","specVersion":"string"}) const options = { 'hostname': 'https://your-tenant.us.qlikcloud.com', 'port': 443, 'path': '/api/v1/tasks', 'method': 'POST', 'headers': { 'Content-type': 'application/json', 'Authorization': 'Bearer <access_token>' } } const req = https.request(options) req.write(data)
This API is not included yet in qlik-cli
Request
{ "key": "string", "name": "string", "start": { "schedule": "string", "stateName": "string" }, "events": [ { "name": "string", "type": "com.qlik.v1.task.run.finished", "source": "system-events.task", "dataOnly": true, "correlation": [ { "contextAttributeName": "id", "contextAttributeValue": "string" } ] } ], "states": [ { "end": true, "name": "string", "type": "EVENT", "onEvents": [ { "actions": [ { "name": "string", "retryRef": "string", "condition": "string", "functionRef": {}, "retryableErrors": [ "string" ], "nonRetryableErrors": [ "string" ] } ], "eventRefs": [ "string" ], "actionMode": "SEQUENTIAL" } ], "timeouts": { "eventTimeout": "string", "stateExecTimeout": "string", "actionExecTimeout": "string" }, "exclusive": true, "compensatedBy": "string" } ], "enabled": false, "version": "string", "metadata": { "usage": "ANALYTICS", "ownerId": "string", "spaceId": "string", "trigger": { "id": "string", "type": 0 }, "tenantId": "string", "createdBy": "string", "updatedAt": "2018-10-30T07:06:22Z", "disabledCode": "MANUALLY", "migratedFrom": "string", "orchestration": { "id": "string", "type": 0, "attrs": {} } }, "keepActive": false, "resourceId": "string", "annotations": [ "string" ], "description": "string", "specVersion": "string"}
Response
{ "id": "string", "key": "string", "name": "string", "start": { "schedule": "string", "stateName": "string" }, "events": [ { "name": "string", "type": "com.qlik.v1.task.run.finished", "source": "system-events.task", "dataOnly": true, "correlation": [ { "contextAttributeName": "id", "contextAttributeValue": "string" } ] } ], "states": [ { "end": true, "name": "string", "type": "EVENT", "onEvents": [ { "actions": [ { "name": "string", "retryRef": "string", "condition": "string", "functionRef": {}, "retryableErrors": [ "string" ], "nonRetryableErrors": [ "string" ] } ], "eventRefs": [ "string" ], "actionMode": "SEQUENTIAL" } ], "timeouts": { "eventTimeout": "string", "stateExecTimeout": "string", "actionExecTimeout": "string" }, "exclusive": true, "compensatedBy": "string" } ], "enabled": false, "version": "string", "metadata": { "usage": "ANALYTICS", "ownerId": "string", "spaceId": "string", "trigger": { "id": "string", "type": 0 }, "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "createdBy": "string", "deletedAt": "2018-10-30T07:06:22Z", "updatedAt": "2018-10-30T07:06:22Z", "disabledCode": "MANUALLY", "migratedFrom": "string", "orchestration": { "id": "string", "type": 0, "attrs": {} } }, "keepActive": false, "resourceId": "string", "annotations": [ "string" ], "description": "string", "specVersion": "string"}
Retrieves details for a specific task.
Facts
Rate limit | Special (600 requests per minute) |
Categories |
Path Parameters
- idstringRequired
The task's unique identifier.
Responses
200
application/json
OK Response
- application/jsonobject
application/json properties
- idstring
The choreographer's unique identifier
- keystring
Optional expression that will be used to generate a domain-specific workflow instance identifier
- namestringRequired
The name that identifies the workflow definition, and which, when combined with its version, forms a unique identifier.
- startobjectOne of:
- object
Workflow start definition
properties
- schedulestring|objectRequiredOne of:
- string
Time interval (must be repeating interval) described with ISO 8601 format. Declares when workflow instances will be automatically created. (UTC timezone is assumed)
- object
Start state schedule definition
One of:- any
- any
-
-
- stateNamestring
Name of the starting workflow state
-
-
- eventsarray of objects
Workflow CloudEvent definitions. Defines CloudEvents that can be consumed or produced
events properties
- namestring
Unique event name
- typestring
CloudEvent type
Can be one of: "com.qlik.v1.task.run.finished"
- sourcestring
CloudEvent source
Can be one of: "system-events.task"
- dataOnlyboolean
If
true
, only the Event payload is accessible to consuming Workflow states. Iffalse
, both event payload and context attributes should be accessible - correlationarray of objects
CloudEvent correlation definitions
correlation properties
- contextAttributeNamestringRequired
CloudEvent Extension Context Attribute name
Can be one of: "id""status"
- contextAttributeValuestring
CloudEvent Extension Context Attribute value
-
-
- statesarray of objects
State definitions
One of:- any
- any
-
- enabledboolean
Indicates whether the task is enabled or not
- versionstring
Workflow version
- metadataobject
metadata properties
- usagestring
resource usage. Normally it means in which product domain the resource is used. if this field is not presented, it has default of
ANALYTICS
Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerIdstring
The user ID of the owner of the task
- spaceIdstring
The space ID that the Task will operate in
- triggerobject
trigger properties
- idstringRequired
The ID of the Trigger associated with the task in the choreographer
- typeintegerRequired
trigger type
Can be one of: 0123
-
- tenantIdstring
The tenant ID that the Task will operate in
- createdAtstring
The UTC timestamp when the task was created
- createdBystring
The user ID of the user that created the task
- deletedAtstring
The UTC timestamp when the task was deleted
- updatedAtstring
The UTC timestamp when the task was last updated
- disabledCodestring
why the Task is disabled
Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED"
- migratedFromstring
The ID of the reload-task this one was migrated from (if applicable)
- orchestrationobject
orchestration properties
- idstringRequired
The ID of the orchestration associated with the task in the choreographer
- typeintegerRequired
orchestration system type
Can be one of: 0123
- attrsobject
-
-
- keepActiveboolean
If 'true', workflow instances is not terminated when there are no active execution paths. Instance can be terminated via 'terminate end definition' or reaching defined 'workflowExecTimeout'
- resourceIdstring
The resource ID of the task. The
Task.resourceId
value from user input is ignored and will be calculated automatically fromTask.states
. - annotationsarray of strings
List of helpful terms describing the workflows intended purpose, subject areas, or other important qualities
- descriptionstring
Workflow description
- specVersionstringRequired
Serverless Workflow schema version
-
400
application/json
Bad Request
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
401
application/json
Unauthorized
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
403
application/json
Forbidden
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
404
application/json
Not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
500
application/json
Internal Server Error
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
503
application/json
Service Unavailable
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tasks/{id}" \-H "Authorization: Bearer <access_token>"
const https = require('https') const data = JSON.stringify("") const options = { 'hostname': 'https://your-tenant.us.qlikcloud.com', 'port': 443, 'path': '/api/v1/tasks/{id}', 'method': 'GET', 'headers': { 'Authorization': 'Bearer <access_token>' } } const req = https.request(options)
This API is not included yet in qlik-cli
Response
{ "id": "string", "key": "string", "name": "string", "start": { "schedule": "string", "stateName": "string" }, "events": [ { "name": "string", "type": "com.qlik.v1.task.run.finished", "source": "system-events.task", "dataOnly": true, "correlation": [ { "contextAttributeName": "id", "contextAttributeValue": "string" } ] } ], "states": [ { "end": true, "name": "string", "type": "EVENT", "onEvents": [ { "actions": [ { "name": "string", "retryRef": "string", "condition": "string", "functionRef": {}, "retryableErrors": [ "string" ], "nonRetryableErrors": [ "string" ] } ], "eventRefs": [ "string" ], "actionMode": "SEQUENTIAL" } ], "timeouts": { "eventTimeout": "string", "stateExecTimeout": "string", "actionExecTimeout": "string" }, "exclusive": true, "compensatedBy": "string" } ], "enabled": false, "version": "string", "metadata": { "usage": "ANALYTICS", "ownerId": "string", "spaceId": "string", "trigger": { "id": "string", "type": 0 }, "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "createdBy": "string", "deletedAt": "2018-10-30T07:06:22Z", "updatedAt": "2018-10-30T07:06:22Z", "disabledCode": "MANUALLY", "migratedFrom": "string", "orchestration": { "id": "string", "type": 0, "attrs": {} } }, "keepActive": false, "resourceId": "string", "annotations": [ "string" ], "description": "string", "specVersion": "string"}
Updates a specific task. If the task is owned by another user, ownership will be transferred to the requesting user.
Facts
Rate limit | Special (600 requests per minute) |
Categories |
Path Parameters
- idstringRequired
The task's unique identifier.
Request Body
Requiredapplication/json
- application/jsonobject
application/json properties
- keystring
Optional expression that will be used to generate a domain-specific workflow instance identifier
- namestringRequired
The name that identifies the workflow definition, and which, when combined with its version, forms a unique identifier.
- startobjectOne of:
- object
Workflow start definition
properties
- schedulestring|objectRequiredOne of:
- string
Time interval (must be repeating interval) described with ISO 8601 format. Declares when workflow instances will be automatically created. (UTC timezone is assumed)
- object
Start state schedule definition
One of:- any
- any
-
-
- stateNamestring
Name of the starting workflow state
-
-
- eventsarray of objects
Workflow CloudEvent definitions. Defines CloudEvents that can be consumed or produced
events properties
- namestring
Unique event name
- typestring
CloudEvent type
Can be one of: "com.qlik.v1.task.run.finished"
- sourcestring
CloudEvent source
Can be one of: "system-events.task"
- dataOnlyboolean
If
true
, only the Event payload is accessible to consuming Workflow states. Iffalse
, both event payload and context attributes should be accessible - correlationarray of objects
CloudEvent correlation definitions
correlation properties
- contextAttributeNamestringRequired
CloudEvent Extension Context Attribute name
Can be one of: "id""status"
- contextAttributeValuestring
CloudEvent Extension Context Attribute value
-
-
- statesarray of objects
State definitions
One of:- any
- any
-
- enabledboolean
Indicates whether the task is enabled or not
- versionstring
Workflow version
- metadataobject
metadata properties
- usagestring
resource usage. Normally it means in which product domain the resource is used. if this field is not presented, it has default of
ANALYTICS
Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerIdstring
The user ID of the owner of the task
- spaceIdstring
The space ID that the Task will operate in
- triggerobject
trigger properties
- idstringRequired
The ID of the Trigger associated with the task in the choreographer
- typeintegerRequired
trigger type
Can be one of: 0123
-
- tenantIdstring
The tenant ID that the Task will operate in
- createdBystring
The user ID of the user that created the task
- updatedAtstring
The UTC timestamp when the task was last updated
- disabledCodestring
why the Task is disabled
Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED"
- migratedFromstring
The ID of the reload-task this one was migrated from (if applicable)
- orchestrationobject
orchestration properties
- idstringRequired
The ID of the orchestration associated with the task in the choreographer
- typeintegerRequired
orchestration system type
Can be one of: 0123
- attrsobject
-
-
- keepActiveboolean
If 'true', workflow instances is not terminated when there are no active execution paths. Instance can be terminated via 'terminate end definition' or reaching defined 'workflowExecTimeout'
- resourceIdstring
The resource ID of the task. The
Task.resourceId
value from user input is ignored and will be calculated automatically fromTask.states
. - annotationsarray of strings
List of helpful terms describing the workflows intended purpose, subject areas, or other important qualities
- descriptionstring
Workflow description
- specVersionstringRequired
Serverless Workflow schema version
-
Responses
200
application/json
OK Response
- application/jsonobject
application/json properties
- idstring
The choreographer's unique identifier
- keystring
Optional expression that will be used to generate a domain-specific workflow instance identifier
- namestringRequired
The name that identifies the workflow definition, and which, when combined with its version, forms a unique identifier.
- startobjectOne of:
- object
Workflow start definition
properties
- schedulestring|objectRequiredOne of:
- string
Time interval (must be repeating interval) described with ISO 8601 format. Declares when workflow instances will be automatically created. (UTC timezone is assumed)
- object
Start state schedule definition
One of:- any
- any
-
-
- stateNamestring
Name of the starting workflow state
-
-
- eventsarray of objects
Workflow CloudEvent definitions. Defines CloudEvents that can be consumed or produced
events properties
- namestring
Unique event name
- typestring
CloudEvent type
Can be one of: "com.qlik.v1.task.run.finished"
- sourcestring
CloudEvent source
Can be one of: "system-events.task"
- dataOnlyboolean
If
true
, only the Event payload is accessible to consuming Workflow states. Iffalse
, both event payload and context attributes should be accessible - correlationarray of objects
CloudEvent correlation definitions
correlation properties
- contextAttributeNamestringRequired
CloudEvent Extension Context Attribute name
Can be one of: "id""status"
- contextAttributeValuestring
CloudEvent Extension Context Attribute value
-
-
- statesarray of objects
State definitions
One of:- any
- any
-
- enabledboolean
Indicates whether the task is enabled or not
- versionstring
Workflow version
- metadataobject
metadata properties
- usagestring
resource usage. Normally it means in which product domain the resource is used. if this field is not presented, it has default of
ANALYTICS
Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerIdstring
The user ID of the owner of the task
- spaceIdstring
The space ID that the Task will operate in
- triggerobject
trigger properties
- idstringRequired
The ID of the Trigger associated with the task in the choreographer
- typeintegerRequired
trigger type
Can be one of: 0123
-
- tenantIdstring
The tenant ID that the Task will operate in
- createdAtstring
The UTC timestamp when the task was created
- createdBystring
The user ID of the user that created the task
- deletedAtstring
The UTC timestamp when the task was deleted
- updatedAtstring
The UTC timestamp when the task was last updated
- disabledCodestring
why the Task is disabled
Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED"
- migratedFromstring
The ID of the reload-task this one was migrated from (if applicable)
- orchestrationobject
orchestration properties
- idstringRequired
The ID of the orchestration associated with the task in the choreographer
- typeintegerRequired
orchestration system type
Can be one of: 0123
- attrsobject
-
-
- keepActiveboolean
If 'true', workflow instances is not terminated when there are no active execution paths. Instance can be terminated via 'terminate end definition' or reaching defined 'workflowExecTimeout'
- resourceIdstring
The resource ID of the task. The
Task.resourceId
value from user input is ignored and will be calculated automatically fromTask.states
. - annotationsarray of strings
List of helpful terms describing the workflows intended purpose, subject areas, or other important qualities
- descriptionstring
Workflow description
- specVersionstringRequired
Serverless Workflow schema version
-
400
application/json
Bad Request
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
401
application/json
Unauthorized
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
403
application/json
Forbidden
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
404
application/json
Not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
500
application/json
Internal Server Error
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
503
application/json
Service Unavailable
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tasks/{id}" \-X PUT \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"key":"string","name":"string","start":{"schedule":"string","stateName":"string"},"events":[{"name":"string","type":"com.qlik.v1.task.run.finished","source":"system-events.task","dataOnly":true,"correlation":[{"contextAttributeName":"id","contextAttributeValue":"string"}]}],"states":[{"end":true,"name":"string","type":"EVENT","onEvents":[{"actions":[{"name":"string","retryRef":"string","condition":"string","functionRef":{},"retryableErrors":["string"],"nonRetryableErrors":["string"]}],"eventRefs":["string"],"actionMode":"SEQUENTIAL"}],"timeouts":{"eventTimeout":"string","stateExecTimeout":"string","actionExecTimeout":"string"},"exclusive":true,"compensatedBy":"string"}],"enabled":false,"version":"string","metadata":{"usage":"ANALYTICS","ownerId":"string","spaceId":"string","trigger":{"id":"string","type":0},"tenantId":"string","createdBy":"string","updatedAt":"2018-10-30T07:06:22Z","disabledCode":"MANUALLY","migratedFrom":"string","orchestration":{"id":"string","type":0,"attrs":{}}},"keepActive":false,"resourceId":"string","annotations":["string"],"description":"string","specVersion":"string"}'
const https = require('https') const data = JSON.stringify({"key":"string","name":"string","start":{"schedule":"string","stateName":"string"},"events":[{"name":"string","type":"com.qlik.v1.task.run.finished","source":"system-events.task","dataOnly":true,"correlation":[{"contextAttributeName":"id","contextAttributeValue":"string"}]}],"states":[{"end":true,"name":"string","type":"EVENT","onEvents":[{"actions":[{"name":"string","retryRef":"string","condition":"string","functionRef":{},"retryableErrors":["string"],"nonRetryableErrors":["string"]}],"eventRefs":["string"],"actionMode":"SEQUENTIAL"}],"timeouts":{"eventTimeout":"string","stateExecTimeout":"string","actionExecTimeout":"string"},"exclusive":true,"compensatedBy":"string"}],"enabled":false,"version":"string","metadata":{"usage":"ANALYTICS","ownerId":"string","spaceId":"string","trigger":{"id":"string","type":0},"tenantId":"string","createdBy":"string","updatedAt":"2018-10-30T07:06:22Z","disabledCode":"MANUALLY","migratedFrom":"string","orchestration":{"id":"string","type":0,"attrs":{}}},"keepActive":false,"resourceId":"string","annotations":["string"],"description":"string","specVersion":"string"}) const options = { 'hostname': 'https://your-tenant.us.qlikcloud.com', 'port': 443, 'path': '/api/v1/tasks/{id}', 'method': 'PUT', 'headers': { 'Content-type': 'application/json', 'Authorization': 'Bearer <access_token>' } } const req = https.request(options) req.write(data)
This API is not included yet in qlik-cli
Request
{ "key": "string", "name": "string", "start": { "schedule": "string", "stateName": "string" }, "events": [ { "name": "string", "type": "com.qlik.v1.task.run.finished", "source": "system-events.task", "dataOnly": true, "correlation": [ { "contextAttributeName": "id", "contextAttributeValue": "string" } ] } ], "states": [ { "end": true, "name": "string", "type": "EVENT", "onEvents": [ { "actions": [ { "name": "string", "retryRef": "string", "condition": "string", "functionRef": {}, "retryableErrors": [ "string" ], "nonRetryableErrors": [ "string" ] } ], "eventRefs": [ "string" ], "actionMode": "SEQUENTIAL" } ], "timeouts": { "eventTimeout": "string", "stateExecTimeout": "string", "actionExecTimeout": "string" }, "exclusive": true, "compensatedBy": "string" } ], "enabled": false, "version": "string", "metadata": { "usage": "ANALYTICS", "ownerId": "string", "spaceId": "string", "trigger": { "id": "string", "type": 0 }, "tenantId": "string", "createdBy": "string", "updatedAt": "2018-10-30T07:06:22Z", "disabledCode": "MANUALLY", "migratedFrom": "string", "orchestration": { "id": "string", "type": 0, "attrs": {} } }, "keepActive": false, "resourceId": "string", "annotations": [ "string" ], "description": "string", "specVersion": "string"}
Response
{ "id": "string", "key": "string", "name": "string", "start": { "schedule": "string", "stateName": "string" }, "events": [ { "name": "string", "type": "com.qlik.v1.task.run.finished", "source": "system-events.task", "dataOnly": true, "correlation": [ { "contextAttributeName": "id", "contextAttributeValue": "string" } ] } ], "states": [ { "end": true, "name": "string", "type": "EVENT", "onEvents": [ { "actions": [ { "name": "string", "retryRef": "string", "condition": "string", "functionRef": {}, "retryableErrors": [ "string" ], "nonRetryableErrors": [ "string" ] } ], "eventRefs": [ "string" ], "actionMode": "SEQUENTIAL" } ], "timeouts": { "eventTimeout": "string", "stateExecTimeout": "string", "actionExecTimeout": "string" }, "exclusive": true, "compensatedBy": "string" } ], "enabled": false, "version": "string", "metadata": { "usage": "ANALYTICS", "ownerId": "string", "spaceId": "string", "trigger": { "id": "string", "type": 0 }, "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "createdBy": "string", "deletedAt": "2018-10-30T07:06:22Z", "updatedAt": "2018-10-30T07:06:22Z", "disabledCode": "MANUALLY", "migratedFrom": "string", "orchestration": { "id": "string", "type": 0, "attrs": {} } }, "keepActive": false, "resourceId": "string", "annotations": [ "string" ], "description": "string", "specVersion": "string"}
Deletes a specific task.
Facts
Rate limit | Special (600 requests per minute) |
Categories |
Path Parameters
- idstringRequired
The task's unique identifier.
Responses
204
No Content response.
400
application/json
Bad Request
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
401
application/json
Unauthorized
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
403
application/json
Forbidden
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
404
application/json
Not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
500
application/json
Internal Server Error
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
503
application/json
Service Unavailable
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tasks/{id}" \-X DELETE \-H "Authorization: Bearer <access_token>"
const https = require('https') const data = JSON.stringify("") const options = { 'hostname': 'https://your-tenant.us.qlikcloud.com', 'port': 443, 'path': '/api/v1/tasks/{id}', 'method': 'DELETE', 'headers': { 'Authorization': 'Bearer <access_token>' } } const req = https.request(options)
This API is not included yet in qlik-cli
Starts the specified task.
Facts
Rate limit | Special (600 requests per minute) |
Categories |
Query Parameters
- sourcestring
Indicates the origin of the trigger. If not provided, defaults to 'manual'. For event-triggered tasks, this can be the name of the triggering task.
Path Parameters
- idstringRequired
The task's unique identifier.
Responses
200
application/json
OK Response
- application/jsonobject
application/json properties
- messagestring
-
400
application/json
Bad Request
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
401
application/json
Unauthorized
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
403
application/json
Forbidden
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
404
application/json
Not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
500
application/json
Internal Server Error
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
503
application/json
Service Unavailable
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tasks/{id}/actions/start" \-X POST \-H "Authorization: Bearer <access_token>"
const https = require('https') const data = JSON.stringify("") const options = { 'hostname': 'https://your-tenant.us.qlikcloud.com', 'port': 443, 'path': '/api/v1/tasks/{id}/actions/start', 'method': 'POST', 'headers': { 'Authorization': 'Bearer <access_token>' } } const req = https.request(options)
This API is not included yet in qlik-cli
Response
{ "message": "Task started successfully"}
Returns runs for the specified task.
Facts
Rate limit | Special (600 requests per minute) |
Categories |
Query Parameters
- limitinteger
The maximum number of task runs to return for a request.
- pagestring
The page cursor.
- sortstring
The property of a resource to sort on (default sort is -startedAt). A property must be prefixed by + or - to indicate ascending or descending sort order respectively.
Can be one of: "+startedAt""-startedAt""+endedAt""-endedAt""+status""-status""+taskId""-taskId""+actionId""-actionId"
Path Parameters
- idstringRequired
The task's unique identifier.
Responses
200
application/json
OK Response
- application/jsonobject
application/json properties
- dataarray of objects
data properties
- idstringRequired
The ID of the task run
- logstring
log info of the run
- statusstringRequired
task run status
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- taskIdstringRequired
The ID of the task
- endedAtstring
The UTC timestamp when the task run ended
- actionIdstringRequired
The ID of the action
- taskMetaobjectRequired
taskMeta properties
- usagestring
resource usage. Normally it means in which product domain the resource is used. if this field is not presented, it has default of
ANALYTICS
Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerIdstring
The user ID of the owner of the task
- spaceIdstring
The space ID that the Task will operate in
- triggerobject
trigger properties
- idstringRequired
The ID of the Trigger associated with the task in the choreographer
- typeintegerRequired
trigger type
Can be one of: 0123
-
- tenantIdstring
The tenant ID that the Task will operate in
- createdAtstring
The UTC timestamp when the task was created
- createdBystring
The user ID of the user that created the task
- deletedAtstring
The UTC timestamp when the task was deleted
- updatedAtstring
The UTC timestamp when the task was last updated
- disabledCodestring
why the Task is disabled
Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED"
- migratedFromstring
The ID of the reload-task this one was migrated from (if applicable)
- orchestrationobject
orchestration properties
- idstringRequired
The ID of the orchestration associated with the task in the choreographer
- typeintegerRequired
orchestration system type
Can be one of: 0123
- attrsobject
-
-
- taskNamestringRequired
task name
- workerIdstringRequired
The ID of the worker who is carrying out the real job. e.g. App.Reload job is carried out by Reload Engine, in this case, workerId will be reloadId from reload engine. Or, if we are using Automation, workerId will be Automation runId.
- startedAtstring
The UTC timestamp when the task run started
- executedAsstring
user ID of on behalf of whom the Task was executed.
- resourceIdstringRequired
The ID of the resource
- workerTypestringRequired
worker type or target system
- triggeredBystringRequired
Information about who or what triggered the task run.
-
- linksobject
links properties
- nextobject
next properties
- hrefstringRequired
URL to a resource request
-
- prevobject
prev properties
- hrefstringRequired
URL to a resource request
-
- selfobject
self properties
- hrefstringRequired
URL to a resource request
-
-
-
400
application/json
Bad Request
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
401
application/json
Unauthorized
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
403
application/json
Forbidden
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
404
application/json
Not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
500
application/json
Internal Server Error
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
503
application/json
Service Unavailable
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tasks/{id}/runs" \-H "Authorization: Bearer <access_token>"
const https = require('https') const data = JSON.stringify("") const options = { 'hostname': 'https://your-tenant.us.qlikcloud.com', 'port': 443, 'path': '/api/v1/tasks/{id}/runs', 'method': 'GET', 'headers': { 'Authorization': 'Bearer <access_token>' } } const req = https.request(options)
This API is not included yet in qlik-cli
Response
{ "data": [ { "id": "string", "log": "string", "status": "RUNNING", "taskId": "string", "endedAt": "2018-10-30T07:06:22Z", "actionId": "string", "taskMeta": { "usage": "ANALYTICS", "ownerId": "string", "spaceId": "string", "trigger": { "id": "string", "type": 0 }, "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "createdBy": "string", "deletedAt": "2018-10-30T07:06:22Z", "updatedAt": "2018-10-30T07:06:22Z", "disabledCode": "MANUALLY", "migratedFrom": "string", "orchestration": { "id": "string", "type": 0, "attrs": {} } }, "taskName": "string", "workerId": "string", "startedAt": "2018-10-30T07:06:22Z", "executedAs": "string", "resourceId": "string", "workerType": "string", "triggeredBy": "manual" } ], "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" } }}
Get specific run log of a task.
Facts
Rate limit | Special (600 requests per minute) |
Categories |
Header Parameters
- Acceptstring
The acceptable content types.
Can be one of: "application/json""text/plain"
Path Parameters
- idstringRequired
The task's unique identifier.
- runIdstringRequired
The run's unique identifier.
Responses
200
text/plain
OK Response
- text/plainobject
text/plain properties
- logContentstring
-
200
application/json
OK Response
- application/jsonobject
application/json properties
- logContentstring
Log content in plain text format
-
400
application/json
Bad Request
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
401
application/json
Unauthorized
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
403
application/json
Forbidden
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
404
application/json
Not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
500
application/json
Internal Server Error
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
503
application/json
Service Unavailable
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tasks/{id}/runs/{runId}/log" \-H "Authorization: Bearer <access_token>"
const https = require('https') const data = JSON.stringify("") const options = { 'hostname': 'https://your-tenant.us.qlikcloud.com', 'port': 443, 'path': '/api/v1/tasks/{id}/runs/{runId}/log', 'method': 'GET', 'headers': { 'Authorization': 'Bearer <access_token>' } } const req = https.request(options)
This API is not included yet in qlik-cli
Response
{ "logContent": "Task run log content"}
Returns the last run of a specific task.
Facts
Rate limit | Special (600 requests per minute) |
Categories |
Path Parameters
- idstringRequired
The task's unique identifier.
Responses
200
application/json
OK Response
- application/jsonobject
application/json properties
- idstringRequired
The ID of the task run
- logstring
log info of the run
- statusstringRequired
task run status
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- taskIdstringRequired
The ID of the task
- endedAtstring
The UTC timestamp when the task run ended
- actionIdstringRequired
The ID of the action
- taskMetaobjectRequired
taskMeta properties
- usagestring
resource usage. Normally it means in which product domain the resource is used. if this field is not presented, it has default of
ANALYTICS
Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerIdstring
The user ID of the owner of the task
- spaceIdstring
The space ID that the Task will operate in
- triggerobject
trigger properties
- idstringRequired
The ID of the Trigger associated with the task in the choreographer
- typeintegerRequired
trigger type
Can be one of: 0123
-
- tenantIdstring
The tenant ID that the Task will operate in
- createdAtstring
The UTC timestamp when the task was created
- createdBystring
The user ID of the user that created the task
- deletedAtstring
The UTC timestamp when the task was deleted
- updatedAtstring
The UTC timestamp when the task was last updated
- disabledCodestring
why the Task is disabled
Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED"
- migratedFromstring
The ID of the reload-task this one was migrated from (if applicable)
- orchestrationobject
orchestration properties
- idstringRequired
The ID of the orchestration associated with the task in the choreographer
- typeintegerRequired
orchestration system type
Can be one of: 0123
- attrsobject
-
-
- taskNamestringRequired
task name
- workerIdstringRequired
The ID of the worker who is carrying out the real job. e.g. App.Reload job is carried out by Reload Engine, in this case, workerId will be reloadId from reload engine. Or, if we are using Automation, workerId will be Automation runId.
- startedAtstring
The UTC timestamp when the task run started
- executedAsstring
user ID of on behalf of whom the Task was executed.
- resourceIdstringRequired
The ID of the resource
- workerTypestringRequired
worker type or target system
- triggeredBystringRequired
Information about who or what triggered the task run.
-
400
application/json
Bad Request
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
401
application/json
Unauthorized
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
403
application/json
Forbidden
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
404
application/json
Not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
500
application/json
Internal Server Error
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
503
application/json
Service Unavailable
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tasks/{id}/runs/last" \-H "Authorization: Bearer <access_token>"
const https = require('https') const data = JSON.stringify("") const options = { 'hostname': 'https://your-tenant.us.qlikcloud.com', 'port': 443, 'path': '/api/v1/tasks/{id}/runs/last', 'method': 'GET', 'headers': { 'Authorization': 'Bearer <access_token>' } } const req = https.request(options)
This API is not included yet in qlik-cli
Response
{ "id": "string", "log": "string", "status": "RUNNING", "taskId": "string", "endedAt": "2018-10-30T07:06:22Z", "actionId": "string", "taskMeta": { "usage": "ANALYTICS", "ownerId": "string", "spaceId": "string", "trigger": { "id": "string", "type": 0 }, "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "createdBy": "string", "deletedAt": "2018-10-30T07:06:22Z", "updatedAt": "2018-10-30T07:06:22Z", "disabledCode": "MANUALLY", "migratedFrom": "string", "orchestration": { "id": "string", "type": 0, "attrs": {} } }, "taskName": "string", "workerId": "string", "startedAt": "2018-10-30T07:06:22Z", "executedAs": "string", "resourceId": "string", "workerType": "string", "triggeredBy": "manual"}
Returns a list of task runs for a specified resourceId
.
Facts
Rate limit | Special (600 requests per minute) |
Categories |
Query Parameters
- limitinteger
The maximum number of task runs to return for a request.
- pagestring
The page cursor.
- sortstring
The property of a resource to sort on (default sort is -startedAt). A property must be prefixed by + or - to indicate ascending or descending sort order respectively.
Can be one of: "+startedAt""-startedAt""+endedAt""-endedAt""+status""-status""+taskId""-taskId""+actionId""-actionId"
Path Parameters
- idstringRequired
Filter tasks by its target resource ID
Responses
200
application/json
OK Response
- application/jsonobject
application/json properties
- dataarray of objects
data properties
- idstringRequired
The ID of the task run
- logstring
log info of the run
- statusstringRequired
task run status
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- taskIdstringRequired
The ID of the task
- endedAtstring
The UTC timestamp when the task run ended
- actionIdstringRequired
The ID of the action
- taskMetaobjectRequired
taskMeta properties
- usagestring
resource usage. Normally it means in which product domain the resource is used. if this field is not presented, it has default of
ANALYTICS
Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerIdstring
The user ID of the owner of the task
- spaceIdstring
The space ID that the Task will operate in
- triggerobject
trigger properties
- idstringRequired
The ID of the Trigger associated with the task in the choreographer
- typeintegerRequired
trigger type
Can be one of: 0123
-
- tenantIdstring
The tenant ID that the Task will operate in
- createdAtstring
The UTC timestamp when the task was created
- createdBystring
The user ID of the user that created the task
- deletedAtstring
The UTC timestamp when the task was deleted
- updatedAtstring
The UTC timestamp when the task was last updated
- disabledCodestring
why the Task is disabled
Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED"
- migratedFromstring
The ID of the reload-task this one was migrated from (if applicable)
- orchestrationobject
orchestration properties
- idstringRequired
The ID of the orchestration associated with the task in the choreographer
- typeintegerRequired
orchestration system type
Can be one of: 0123
- attrsobject
-
-
- taskNamestringRequired
task name
- workerIdstringRequired
The ID of the worker who is carrying out the real job. e.g. App.Reload job is carried out by Reload Engine, in this case, workerId will be reloadId from reload engine. Or, if we are using Automation, workerId will be Automation runId.
- startedAtstring
The UTC timestamp when the task run started
- executedAsstring
user ID of on behalf of whom the Task was executed.
- resourceIdstringRequired
The ID of the resource
- workerTypestringRequired
worker type or target system
- triggeredBystringRequired
Information about who or what triggered the task run.
-
- linksobject
links properties
- nextobject
next properties
- hrefstringRequired
URL to a resource request
-
- prevobject
prev properties
- hrefstringRequired
URL to a resource request
-
- selfobject
self properties
- hrefstringRequired
URL to a resource request
-
-
-
400
application/json
Bad Request
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
401
application/json
Unauthorized
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
403
application/json
Forbidden
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
404
application/json
Not found
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
500
application/json
Internal Server Error
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
503
application/json
Service Unavailable
- application/jsonobject
application/json properties
- errorsarray of objects
errors properties
- codeinteger
- innerany
- titlestring
- resultany
- contextstring
- timestampstring
-
- traceIdstring
A way to trace the source of the error.
-
curl "https://your-tenant.us.qlikcloud.com/api/v1/tasks/resources/{id}/runs" \-H "Authorization: Bearer <access_token>"
const https = require('https') const data = JSON.stringify("") const options = { 'hostname': 'https://your-tenant.us.qlikcloud.com', 'port': 443, 'path': '/api/v1/tasks/resources/{id}/runs', 'method': 'GET', 'headers': { 'Authorization': 'Bearer <access_token>' } } const req = https.request(options)
This API is not included yet in qlik-cli
Response
{ "data": [ { "id": "string", "log": "string", "status": "RUNNING", "taskId": "string", "endedAt": "2018-10-30T07:06:22Z", "actionId": "string", "taskMeta": { "usage": "ANALYTICS", "ownerId": "string", "spaceId": "string", "trigger": { "id": "string", "type": 0 }, "tenantId": "string", "createdAt": "2018-10-30T07:06:22Z", "createdBy": "string", "deletedAt": "2018-10-30T07:06:22Z", "updatedAt": "2018-10-30T07:06:22Z", "disabledCode": "MANUALLY", "migratedFrom": "string", "orchestration": { "id": "string", "type": 0, "attrs": {} } }, "taskName": "string", "workerId": "string", "startedAt": "2018-10-30T07:06:22Z", "executedAs": "string", "resourceId": "string", "workerType": "string", "triggeredBy": "manual" } ], "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" } }}