Tasks
Endpoints
Retrieves a paginated list of tasks the requesting user has access to. Results include task metadata such as owner, resource, space, and last run status. Use the filter parameter to narrow results by field values, or sort to control the ordering.
Facts
| Rate limit | Tier 1 (1000 requests per minute) | |
| Replaces |
Query Parameters
- filter string
Advanced filter expression using RFC 7644 SCIM syntax. Refer to RFC 7644 for syntax details. All comparisons are case-insensitive. Supported fields:
name,enabled,resourceId,ownerId,spaceId,createdAt,updatedAt,updatedBy,lastStatus,lastTriggeredBy,lastStartedAt,lastEndedAt,lastExecutedAs, andtriggerType. - limit integer
Maximum number of tasks to return per page.
- page string
Cursor token for fetching the next page of results.
- resourceId string
The unique identifier of the resource to filter tasks by.
- sort string
Field and direction to sort results by. Prefix the field name with
+for ascending or-for descending order. Defaults to-updatedAt.Can be one of: "+createdAt""-createdAt""+enabled""-enabled""+name""-name""+ownerId""-ownerId""+resourceId""-resourceId""+spaceId""-spaceId""+updatedAt""-updatedAt""+updatedBy""-updatedBy""+lastStatus""-lastStatus""+lastTriggeredBy""-lastTriggeredBy""+lastStartedAt""-lastStartedAt""+lastEndedAt""-lastEndedAt""+lastExecutedAs""-lastExecutedAs""+triggerType""-triggerType"
Responses
200
Tasks retrieved successfully.
- application/json object
application/json properties
- data array of objects
data properties
- id string
The unique identifier assigned to the task by the service.
- key string
An optional expression used to generate a domain-specific workflow instance identifier.
- name stringRequired Filterable
The name that identifies the workflow definition. Combined with
version, the name forms a unique identifier for the task. - start object
The start definition for a workflow, including optional schedule configuration.
One of:- object
A scheduled workflow start definition.
properties
- schedule string|objectRequiredOne of:
- string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created. UTC timezone is assumed.
- object
A structured schedule definition with optional recurrence, date range, and timezone.
properties
- cron string|objectOne of:
- string
A cron expression defining when workflow instances should be created automatically.
- object
properties
- expression stringRequired
A cron expression describing when the workflow instance should be created.
- validUntil string
The date and time (ISO 8601 format) after which this cron expression is no longer active.
-
-
- interval string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created.
- timezone string
The timezone name used to evaluate the interval and cron expression. Defaults to
UTC. - recurrence string
An RRULE recurrence rule string defining when the workflow recurs.
- endDateTime string
The date and time (ISO 8601 format) when the workflow schedule ends.
- startDateTime string
The date and time (ISO 8601 format) when the workflow schedule begins.
-
-
- stateName string
The name of the starting workflow state.
-
-
- events array of objects
CloudEvent definitions for the workflow. Defines the events that can be consumed or produced by the workflow.
events properties
- name string
A unique name identifying this event definition within the workflow.
- type string
The CloudEvents type attribute identifying the kind of event.
Can be one of: "com.qlik.v1.task.run.finished""com.qlik/active-analytics-orch"
- source string
The CloudEvents source attribute identifying the origin of the event.
Can be one of: "system-events.task""dataset.updated"
- dataOnly boolean
When
true, only the event payload is accessible to consuming workflow states. Whenfalse, both the payload and context attributes are accessible. - correlation array of objects
Correlation definitions used to match incoming CloudEvents to this workflow instance.
correlation properties
- contextAttributeName stringRequired
The name of the CloudEvent extension context attribute to match on.
Can be one of: "id""status""appId""spaceId""datasetId"
- contextAttributeValue string
The expected value of the CloudEvent extension context attribute.
-
-
- states array of objects
The list of state definitions that compose the workflow.
states properties
- end boolean
Marks this state as a terminal state in the workflow.
- name string
The name of this state, unique within the workflow.
- type string
The state type. Must be
EVENTfor event-driven states.Can be one of: "EVENT"
- onEvents array of objects
The events to consume and the optional actions to perform when they are received.
onEvents properties
- actions array of objects
Actions to perform when the matched events are consumed.
actions properties
- name string
A unique name for this action within the workflow.
- retryRef string
A reference to a defined workflow retry policy. If absent, the default retry policy applies.
- condition string
An expression that must evaluate to
truefor this action to be performed. Whenfalse, the action is skipped. - functionRef object
A reference to a function to invoke, either as a name string or a structured object.
One of:- string
The name of the referenced function.
- object
A structured function reference with arguments and invocation options.
properties
- invoke string
Specifies whether the function is invoked synchronously or asynchronously.
Can be one of: "SYNC""ASYNC"
- refName stringRequired
The name of the function to invoke.
Can be one of: "app.reload"
- arguments object
Arguments to pass to the function. The
app.reloadfunction accepts:appId(string, required): The ID of the app to reload.partial(boolean, defaultfalse): Whether to perform a partial reload.weight(integer,1to10, default1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of10starts sooner than a weight of1. It does not affect the reload once running. Apps in personal spaces always run with weight1. Values outside1to10are rejected.
- selectionSet string
A GraphQL selection set string. Only applicable when the function type is
graphql.
-
-
- retryableErrors array of strings
Workflow error references for which this action must be retried. Used only when
autoRetriesisfalse. - nonRetryableErrors array of strings
Workflow error references for which this action must not be retried. Used only when
autoRetriesistrue.
-
- eventRefs array of stringsRequired
References to one or more unique event names defined in the workflow events list.
- actionMode string
Specifies whether actions are performed sequentially or in parallel.
Can be one of: "SEQUENTIAL""PARALLEL"
-
- timeouts object
State-specific timeout durations.
timeouts properties
- eventTimeout string
The maximum duration to wait for the defined events to be received, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- stateExecTimeout string
The maximum duration for executing this state, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- actionExecTimeout string
The maximum duration for executing a single action, expressed as an ISO 8601 duration string or an expression that evaluates to one.
-
- exclusive boolean
When
true, consuming any one of the defined events causes its associated actions to execute. Whenfalse, all defined events must be consumed before actions are performed. - compensatedBy string
The unique name of a workflow state responsible for compensating this state if it fails.
-
- enabled boolean
Indicates whether the task is enabled. Disabled tasks will not trigger automatically.
- version string
The semantic version of the workflow definition.
- metadata object
metadata properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdAt string
The UTC timestamp when the task was created.
- createdBy string
The user ID of the user who created the task.
- deletedAt string
The UTC timestamp when the task was deleted.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- keepActive boolean
When
true, workflow instances are not terminated when there are no active execution paths. Instances can be ended via a terminate end definition or a configuredworkflowExecTimeout. - resourceId string
The unique identifier of the resource this task operates on. The value supplied in a request body is ignored and is derived automatically from
states. - annotations array of strings
A list of terms describing the workflow's intended purpose, subject areas, or other important qualities.
- description string
A human-readable description of the workflow's purpose.
- specVersion stringRequired
The Serverless Workflow specification version used by this task.
-
- links object
links properties
- next object
next properties
- href stringRequired
The URL of the linked resource.
-
- prev object
prev properties
- href stringRequired
The URL of the linked resource.
-
- self object
self properties
- href stringRequired
The URL of the linked resource.
-
-
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.getTasks({})qlik scheduling task lscurl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks" \-H "Authorization: Bearer <access_token>"Example Response
{ "data": [ { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "name": "TaskExample", "events": [ { "name": "event1", "type": "com.qlik/active-analytics-orch", "source": "dataset.updated", "correlation": [ { "contextAttributeName": "appId", "contextAttributeValue": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } ] } ], "states": [ { "end": true, "name": "Reload", "type": "event", "onEvents": [ { "actions": [ { "name": "app.reload", "functionRef": { "refName": "app.reload", "arguments": { "appId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "partial": false } } } ], "eventRefs": [ "app1-dataset-updated" ] } ], "exclusive": false } ], "enabled": true, "version": "1.0.0", "metadata": { "usage": "ANALYTICS", "ownerId": 0, "spaceId": "", "trigger": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 4 }, "tenantId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "createdAt": "2025-08-31T23:22:27.929Z", "createdBy": 0, "updatedAt": "2025-08-31T23:27:51.207Z", "orchestration": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 3, "attrs": { "last_run_status": "SUCCEEDED", "last_run_endedAt": "2025-08-31T23:28:06Z", "last_run_startedAt": "2025-08-31T23:28:04Z", "last_run_worker_type": "reloads" } } }, "keepActive": false, "resourceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "description": "this is an example of task response", "specVersion": "1.16.0" } ], "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" } }}Creates a new task for the specified resource. The task is owned by the requesting user and is disabled by default until explicitly enabled. The resourceId is derived automatically from the task's state definitions and cannot be set directly in the request body.
Facts
| Rate limit | Tier 2 (100 requests per minute) | |
| Replaces |
Request Body
Required- application/json object
application/json properties
- key string
An optional expression used to generate a domain-specific workflow instance identifier.
- name stringRequired Filterable
The name that identifies the workflow definition. Combined with
version, the name forms a unique identifier for the task. - start object
The start definition for a workflow, including optional schedule configuration.
One of:- object
A scheduled workflow start definition.
properties
- schedule string|objectRequiredOne of:
- string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created. UTC timezone is assumed.
- object
A structured schedule definition with optional recurrence, date range, and timezone.
properties
- cron string|objectOne of:
- string
A cron expression defining when workflow instances should be created automatically.
- object
properties
- expression stringRequired
A cron expression describing when the workflow instance should be created.
- validUntil string
The date and time (ISO 8601 format) after which this cron expression is no longer active.
-
-
- interval string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created.
- timezone string
The timezone name used to evaluate the interval and cron expression. Defaults to
UTC. - recurrence string
An RRULE recurrence rule string defining when the workflow recurs.
- endDateTime string
The date and time (ISO 8601 format) when the workflow schedule ends.
- startDateTime string
The date and time (ISO 8601 format) when the workflow schedule begins.
-
-
- stateName string
The name of the starting workflow state.
-
-
- events array of objects
CloudEvent definitions for the workflow. Defines the events that can be consumed or produced by the workflow.
events properties
- name string
A unique name identifying this event definition within the workflow.
- type string
The CloudEvents type attribute identifying the kind of event.
Can be one of: "com.qlik.v1.task.run.finished""com.qlik/active-analytics-orch"
- source string
The CloudEvents source attribute identifying the origin of the event.
Can be one of: "system-events.task""dataset.updated"
- dataOnly boolean
When
true, only the event payload is accessible to consuming workflow states. Whenfalse, both the payload and context attributes are accessible. - correlation array of objects
Correlation definitions used to match incoming CloudEvents to this workflow instance.
correlation properties
- contextAttributeName stringRequired
The name of the CloudEvent extension context attribute to match on.
Can be one of: "id""status""appId""spaceId""datasetId"
- contextAttributeValue string
The expected value of the CloudEvent extension context attribute.
-
-
- states array of objects
The list of state definitions that compose the workflow.
states properties
- end boolean
Marks this state as a terminal state in the workflow.
- name string
The name of this state, unique within the workflow.
- type string
The state type. Must be
EVENTfor event-driven states.Can be one of: "EVENT"
- onEvents array of objects
The events to consume and the optional actions to perform when they are received.
onEvents properties
- actions array of objects
Actions to perform when the matched events are consumed.
actions properties
- name string
A unique name for this action within the workflow.
- retryRef string
A reference to a defined workflow retry policy. If absent, the default retry policy applies.
- condition string
An expression that must evaluate to
truefor this action to be performed. Whenfalse, the action is skipped. - functionRef object
A reference to a function to invoke, either as a name string or a structured object.
One of:- string
The name of the referenced function.
- object
A structured function reference with arguments and invocation options.
properties
- invoke string
Specifies whether the function is invoked synchronously or asynchronously.
Can be one of: "SYNC""ASYNC"
- refName stringRequired
The name of the function to invoke.
Can be one of: "app.reload"
- arguments object
Arguments to pass to the function. The
app.reloadfunction accepts:appId(string, required): The ID of the app to reload.partial(boolean, defaultfalse): Whether to perform a partial reload.weight(integer,1to10, default1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of10starts sooner than a weight of1. It does not affect the reload once running. Apps in personal spaces always run with weight1. Values outside1to10are rejected.
- selectionSet string
A GraphQL selection set string. Only applicable when the function type is
graphql.
-
-
- retryableErrors array of strings
Workflow error references for which this action must be retried. Used only when
autoRetriesisfalse. - nonRetryableErrors array of strings
Workflow error references for which this action must not be retried. Used only when
autoRetriesistrue.
-
- eventRefs array of stringsRequired
References to one or more unique event names defined in the workflow events list.
- actionMode string
Specifies whether actions are performed sequentially or in parallel.
Can be one of: "SEQUENTIAL""PARALLEL"
-
- timeouts object
State-specific timeout durations.
timeouts properties
- eventTimeout string
The maximum duration to wait for the defined events to be received, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- stateExecTimeout string
The maximum duration for executing this state, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- actionExecTimeout string
The maximum duration for executing a single action, expressed as an ISO 8601 duration string or an expression that evaluates to one.
-
- exclusive boolean
When
true, consuming any one of the defined events causes its associated actions to execute. Whenfalse, all defined events must be consumed before actions are performed. - compensatedBy string
The unique name of a workflow state responsible for compensating this state if it fails.
-
- enabled boolean
Indicates whether the task is enabled. Disabled tasks will not trigger automatically.
- version string
The semantic version of the workflow definition.
- metadata object
metadata properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdBy string
The user ID of the user who created the task.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- keepActive boolean
When
true, workflow instances are not terminated when there are no active execution paths. Instances can be ended via a terminate end definition or a configuredworkflowExecTimeout. - resourceId string
The unique identifier of the resource this task operates on. The value supplied in a request body is ignored and is derived automatically from
states. - annotations array of strings
A list of terms describing the workflow's intended purpose, subject areas, or other important qualities.
- description string
A human-readable description of the workflow's purpose.
- specVersion stringRequired
The Serverless Workflow specification version used by this task.
-
Responses
201
Task created successfully.
- application/json object
application/json properties
- id string
The unique identifier assigned to the task by the service.
- key string
An optional expression used to generate a domain-specific workflow instance identifier.
- name stringRequired Filterable
The name that identifies the workflow definition. Combined with
version, the name forms a unique identifier for the task. - start object
The start definition for a workflow, including optional schedule configuration.
One of:- object
A scheduled workflow start definition.
properties
- schedule string|objectRequiredOne of:
- string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created. UTC timezone is assumed.
- object
A structured schedule definition with optional recurrence, date range, and timezone.
properties
- cron string|objectOne of:
- string
A cron expression defining when workflow instances should be created automatically.
- object
properties
- expression stringRequired
A cron expression describing when the workflow instance should be created.
- validUntil string
The date and time (ISO 8601 format) after which this cron expression is no longer active.
-
-
- interval string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created.
- timezone string
The timezone name used to evaluate the interval and cron expression. Defaults to
UTC. - recurrence string
An RRULE recurrence rule string defining when the workflow recurs.
- endDateTime string
The date and time (ISO 8601 format) when the workflow schedule ends.
- startDateTime string
The date and time (ISO 8601 format) when the workflow schedule begins.
-
-
- stateName string
The name of the starting workflow state.
-
-
- events array of objects
CloudEvent definitions for the workflow. Defines the events that can be consumed or produced by the workflow.
events properties
- name string
A unique name identifying this event definition within the workflow.
- type string
The CloudEvents type attribute identifying the kind of event.
Can be one of: "com.qlik.v1.task.run.finished""com.qlik/active-analytics-orch"
- source string
The CloudEvents source attribute identifying the origin of the event.
Can be one of: "system-events.task""dataset.updated"
- dataOnly boolean
When
true, only the event payload is accessible to consuming workflow states. Whenfalse, both the payload and context attributes are accessible. - correlation array of objects
Correlation definitions used to match incoming CloudEvents to this workflow instance.
correlation properties
- contextAttributeName stringRequired
The name of the CloudEvent extension context attribute to match on.
Can be one of: "id""status""appId""spaceId""datasetId"
- contextAttributeValue string
The expected value of the CloudEvent extension context attribute.
-
-
- states array of objects
The list of state definitions that compose the workflow.
states properties
- end boolean
Marks this state as a terminal state in the workflow.
- name string
The name of this state, unique within the workflow.
- type string
The state type. Must be
EVENTfor event-driven states.Can be one of: "EVENT"
- onEvents array of objects
The events to consume and the optional actions to perform when they are received.
onEvents properties
- actions array of objects
Actions to perform when the matched events are consumed.
actions properties
- name string
A unique name for this action within the workflow.
- retryRef string
A reference to a defined workflow retry policy. If absent, the default retry policy applies.
- condition string
An expression that must evaluate to
truefor this action to be performed. Whenfalse, the action is skipped. - functionRef object
A reference to a function to invoke, either as a name string or a structured object.
One of:- string
The name of the referenced function.
- object
A structured function reference with arguments and invocation options.
properties
- invoke string
Specifies whether the function is invoked synchronously or asynchronously.
Can be one of: "SYNC""ASYNC"
- refName stringRequired
The name of the function to invoke.
Can be one of: "app.reload"
- arguments object
Arguments to pass to the function. The
app.reloadfunction accepts:appId(string, required): The ID of the app to reload.partial(boolean, defaultfalse): Whether to perform a partial reload.weight(integer,1to10, default1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of10starts sooner than a weight of1. It does not affect the reload once running. Apps in personal spaces always run with weight1. Values outside1to10are rejected.
- selectionSet string
A GraphQL selection set string. Only applicable when the function type is
graphql.
-
-
- retryableErrors array of strings
Workflow error references for which this action must be retried. Used only when
autoRetriesisfalse. - nonRetryableErrors array of strings
Workflow error references for which this action must not be retried. Used only when
autoRetriesistrue.
-
- eventRefs array of stringsRequired
References to one or more unique event names defined in the workflow events list.
- actionMode string
Specifies whether actions are performed sequentially or in parallel.
Can be one of: "SEQUENTIAL""PARALLEL"
-
- timeouts object
State-specific timeout durations.
timeouts properties
- eventTimeout string
The maximum duration to wait for the defined events to be received, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- stateExecTimeout string
The maximum duration for executing this state, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- actionExecTimeout string
The maximum duration for executing a single action, expressed as an ISO 8601 duration string or an expression that evaluates to one.
-
- exclusive boolean
When
true, consuming any one of the defined events causes its associated actions to execute. Whenfalse, all defined events must be consumed before actions are performed. - compensatedBy string
The unique name of a workflow state responsible for compensating this state if it fails.
-
- enabled boolean
Indicates whether the task is enabled. Disabled tasks will not trigger automatically.
- version string
The semantic version of the workflow definition.
- metadata object
metadata properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdAt string
The UTC timestamp when the task was created.
- createdBy string
The user ID of the user who created the task.
- deletedAt string
The UTC timestamp when the task was deleted.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- keepActive boolean
When
true, workflow instances are not terminated when there are no active execution paths. Instances can be ended via a terminate end definition or a configuredworkflowExecTimeout. - resourceId string
The unique identifier of the resource this task operates on. The value supplied in a request body is ignored and is derived automatically from
states. - annotations array of strings
A list of terms describing the workflow's intended purpose, subject areas, or other important qualities.
- description string
A human-readable description of the workflow's purpose.
- specVersion stringRequired
The Serverless Workflow specification version used by this task.
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.createTaskWithoutQuery( { description: 'this is an example of task response', enabled: true, events: [ { correlation: [ { contextAttributeName: 'appId', contextAttributeValue: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', }, ], name: 'event1', source: 'dataset.updated', type: 'com.qlik/active-analytics-orch', }, ], id: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', metadata: { createdAt: '2025-08-31T23:22:27.929Z', createdBy: '', orchestration: { attrs: { last_run_status: 'SUCCEEDED', last_run_endedAt: '2025-08-31T23:28:06Z', last_run_startedAt: '2025-08-31T23:28:04Z', last_run_worker_type: 'reloads', }, id: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', type: 3, }, ownerId: '', tenantId: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', trigger: { id: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', type: 4, }, updatedAt: '2025-08-31T23:27:51.207Z', usage: 'ANALYTICS', }, name: 'TaskExample', resourceId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', specVersion: '1.16.0', states: [ { end: true, name: 'Reload', onEvents: [ { actions: [ { functionRef: { refName: 'app.reload', arguments: { appId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', partial: false, }, }, name: 'app.reload', }, ], eventRefs: ['app1-dataset-updated'], }, ], type: 'event', }, ], version: '1.0.0', },)qlik scheduling task create \ --events-correlation-contextAttributeName '' \ --metadata-orchestration-id 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \ --metadata-orchestration-lastRun-id '' \ --metadata-orchestration-lastRun-status '' \ --metadata-orchestration-lastRun-triggeredBy '' \ --metadata-orchestration-lastRun-workerId '' \ --metadata-orchestration-lastRun-workerType '' \ --metadata-orchestration-type 3 \ --metadata-trigger-id 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \ --metadata-trigger-type 4 \ --name 'TaskExample' \ --specVersion '1.16.0' \ --start-schedule '' \ --start-schedule-cron '' \ --start-schedule-cron-expression '' \ --start-schedule-cron-validUntil '' \ --start-schedule-endDateTime '' \ --start-schedule-interval '' \ --start-schedule-recurrence '' \ --start-schedule-startDateTime '' \ --start-schedule-timezone '' \ --states-onEvents-actions-functionRef-refName '' \ --states-onEvents-eventRefs ''curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks" \-X POST \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","name":"TaskExample","events":[{"name":"event1","type":"com.qlik/active-analytics-orch","source":"dataset.updated","correlation":[{"contextAttributeName":"appId","contextAttributeValue":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}]}],"states":[{"end":true,"name":"Reload","type":"event","onEvents":[{"actions":[{"name":"app.reload","functionRef":{"refName":"app.reload","arguments":{"appId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","partial":false}}}],"eventRefs":["app1-dataset-updated"]}],"exclusive":false}],"enabled":true,"version":"1.0.0","metadata":{"usage":"ANALYTICS","ownerId":0,"spaceId":"","trigger":{"id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","type":4},"tenantId":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","createdAt":"2025-08-31T23:22:27.929Z","createdBy":0,"updatedAt":"2025-08-31T23:27:51.207Z","orchestration":{"id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","type":3,"attrs":{"last_run_status":"SUCCEEDED","last_run_endedAt":"2025-08-31T23:28:06Z","last_run_startedAt":"2025-08-31T23:28:04Z","last_run_worker_type":"reloads"}}},"keepActive":false,"resourceId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","description":"this is an example of task response","specVersion":"1.16.0"}'Example Response
{ "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "name": "TaskExample", "events": [ { "name": "event1", "type": "com.qlik/active-analytics-orch", "source": "dataset.updated", "correlation": [ { "contextAttributeName": "appId", "contextAttributeValue": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } ] } ], "states": [ { "end": true, "name": "Reload", "type": "event", "onEvents": [ { "actions": [ { "name": "app.reload", "functionRef": { "refName": "app.reload", "arguments": { "appId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "partial": false } } } ], "eventRefs": [ "app1-dataset-updated" ] } ], "exclusive": false } ], "enabled": true, "version": "1.0.0", "metadata": { "usage": "ANALYTICS", "ownerId": 0, "spaceId": "", "trigger": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 4 }, "tenantId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "createdAt": "2025-08-31T23:22:27.929Z", "createdBy": 0, "updatedAt": "2025-08-31T23:27:51.207Z", "orchestration": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 3, "attrs": { "last_run_status": "SUCCEEDED", "last_run_endedAt": "2025-08-31T23:28:06Z", "last_run_startedAt": "2025-08-31T23:28:04Z", "last_run_worker_type": "reloads" } } }, "keepActive": false, "resourceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "description": "this is an example of task response", "specVersion": "1.16.0"}Retrieves the full definition and metadata for a specific task, including its trigger configuration, state definitions, owner, and last run status. Use this operation to inspect a task before updating or starting it.
Facts
| Rate limit | Tier 1 (1000 requests per minute) | |
| Replaces |
Path Parameters
- id stringRequired
The unique identifier of the task to retrieve.
Responses
200
Task details retrieved successfully.
- application/json object
application/json properties
- id string
The unique identifier assigned to the task by the service.
- key string
An optional expression used to generate a domain-specific workflow instance identifier.
- name stringRequired Filterable
The name that identifies the workflow definition. Combined with
version, the name forms a unique identifier for the task. - start object
The start definition for a workflow, including optional schedule configuration.
One of:- object
A scheduled workflow start definition.
properties
- schedule string|objectRequiredOne of:
- string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created. UTC timezone is assumed.
- object
A structured schedule definition with optional recurrence, date range, and timezone.
properties
- cron string|objectOne of:
- string
A cron expression defining when workflow instances should be created automatically.
- object
properties
- expression stringRequired
A cron expression describing when the workflow instance should be created.
- validUntil string
The date and time (ISO 8601 format) after which this cron expression is no longer active.
-
-
- interval string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created.
- timezone string
The timezone name used to evaluate the interval and cron expression. Defaults to
UTC. - recurrence string
An RRULE recurrence rule string defining when the workflow recurs.
- endDateTime string
The date and time (ISO 8601 format) when the workflow schedule ends.
- startDateTime string
The date and time (ISO 8601 format) when the workflow schedule begins.
-
-
- stateName string
The name of the starting workflow state.
-
-
- events array of objects
CloudEvent definitions for the workflow. Defines the events that can be consumed or produced by the workflow.
events properties
- name string
A unique name identifying this event definition within the workflow.
- type string
The CloudEvents type attribute identifying the kind of event.
Can be one of: "com.qlik.v1.task.run.finished""com.qlik/active-analytics-orch"
- source string
The CloudEvents source attribute identifying the origin of the event.
Can be one of: "system-events.task""dataset.updated"
- dataOnly boolean
When
true, only the event payload is accessible to consuming workflow states. Whenfalse, both the payload and context attributes are accessible. - correlation array of objects
Correlation definitions used to match incoming CloudEvents to this workflow instance.
correlation properties
- contextAttributeName stringRequired
The name of the CloudEvent extension context attribute to match on.
Can be one of: "id""status""appId""spaceId""datasetId"
- contextAttributeValue string
The expected value of the CloudEvent extension context attribute.
-
-
- states array of objects
The list of state definitions that compose the workflow.
states properties
- end boolean
Marks this state as a terminal state in the workflow.
- name string
The name of this state, unique within the workflow.
- type string
The state type. Must be
EVENTfor event-driven states.Can be one of: "EVENT"
- onEvents array of objects
The events to consume and the optional actions to perform when they are received.
onEvents properties
- actions array of objects
Actions to perform when the matched events are consumed.
actions properties
- name string
A unique name for this action within the workflow.
- retryRef string
A reference to a defined workflow retry policy. If absent, the default retry policy applies.
- condition string
An expression that must evaluate to
truefor this action to be performed. Whenfalse, the action is skipped. - functionRef object
A reference to a function to invoke, either as a name string or a structured object.
One of:- string
The name of the referenced function.
- object
A structured function reference with arguments and invocation options.
properties
- invoke string
Specifies whether the function is invoked synchronously or asynchronously.
Can be one of: "SYNC""ASYNC"
- refName stringRequired
The name of the function to invoke.
Can be one of: "app.reload"
- arguments object
Arguments to pass to the function. The
app.reloadfunction accepts:appId(string, required): The ID of the app to reload.partial(boolean, defaultfalse): Whether to perform a partial reload.weight(integer,1to10, default1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of10starts sooner than a weight of1. It does not affect the reload once running. Apps in personal spaces always run with weight1. Values outside1to10are rejected.
- selectionSet string
A GraphQL selection set string. Only applicable when the function type is
graphql.
-
-
- retryableErrors array of strings
Workflow error references for which this action must be retried. Used only when
autoRetriesisfalse. - nonRetryableErrors array of strings
Workflow error references for which this action must not be retried. Used only when
autoRetriesistrue.
-
- eventRefs array of stringsRequired
References to one or more unique event names defined in the workflow events list.
- actionMode string
Specifies whether actions are performed sequentially or in parallel.
Can be one of: "SEQUENTIAL""PARALLEL"
-
- timeouts object
State-specific timeout durations.
timeouts properties
- eventTimeout string
The maximum duration to wait for the defined events to be received, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- stateExecTimeout string
The maximum duration for executing this state, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- actionExecTimeout string
The maximum duration for executing a single action, expressed as an ISO 8601 duration string or an expression that evaluates to one.
-
- exclusive boolean
When
true, consuming any one of the defined events causes its associated actions to execute. Whenfalse, all defined events must be consumed before actions are performed. - compensatedBy string
The unique name of a workflow state responsible for compensating this state if it fails.
-
- enabled boolean
Indicates whether the task is enabled. Disabled tasks will not trigger automatically.
- version string
The semantic version of the workflow definition.
- metadata object
metadata properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdAt string
The UTC timestamp when the task was created.
- createdBy string
The user ID of the user who created the task.
- deletedAt string
The UTC timestamp when the task was deleted.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- keepActive boolean
When
true, workflow instances are not terminated when there are no active execution paths. Instances can be ended via a terminate end definition or a configuredworkflowExecTimeout. - resourceId string
The unique identifier of the resource this task operates on. The value supplied in a request body is ignored and is derived automatically from
states. - annotations array of strings
A list of terms describing the workflow's intended purpose, subject areas, or other important qualities.
- description string
A human-readable description of the workflow's purpose.
- specVersion stringRequired
The Serverless Workflow specification version used by this task.
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.getTask('string')qlik scheduling task get 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/{id}" \-H "Authorization: Bearer <access_token>"Example Response
{ "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "name": "TaskExample", "events": [ { "name": "event1", "type": "com.qlik/active-analytics-orch", "source": "dataset.updated", "correlation": [ { "contextAttributeName": "appId", "contextAttributeValue": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } ] } ], "states": [ { "end": true, "name": "Reload", "type": "event", "onEvents": [ { "actions": [ { "name": "app.reload", "functionRef": { "refName": "app.reload", "arguments": { "appId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "partial": false } } } ], "eventRefs": [ "app1-dataset-updated" ] } ], "exclusive": false } ], "enabled": true, "version": "1.0.0", "metadata": { "usage": "ANALYTICS", "ownerId": 0, "spaceId": "", "trigger": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 4 }, "tenantId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "createdAt": "2025-08-31T23:22:27.929Z", "createdBy": 0, "updatedAt": "2025-08-31T23:27:51.207Z", "orchestration": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 3, "attrs": { "last_run_status": "SUCCEEDED", "last_run_endedAt": "2025-08-31T23:28:06Z", "last_run_startedAt": "2025-08-31T23:28:04Z", "last_run_worker_type": "reloads" } } }, "keepActive": false, "resourceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "description": "this is an example of task response", "specVersion": "1.16.0"}Partially updates a specific task using a JSON Patch document (RFC 6902). Only the fields included in the patch operations are modified. All other fields remain unchanged. If the task is owned by another user, ownership is transferred to the requesting user.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Path Parameters
- id stringRequired
The unique identifier of the task to update.
Request Body
Required- application/json array of objects
A JSON Patch document as defined by RFC 6902.
application/json properties
- op stringRequired
The patch operation to perform.
Can be one of: "add""remove""replace""move""copy"
- path stringRequired
A JSON Pointer (RFC 6901) identifying the field to patch.
- value string|number|integer|boolean|array|object
The value to use in a JSON Patch operation.
One of:- string
- number
- integer
- boolean
- array of undefineds
- object
-
-
Responses
200
Task updated successfully.
- application/json object
application/json properties
- id string
The unique identifier assigned to the task by the service.
- key string
An optional expression used to generate a domain-specific workflow instance identifier.
- name stringRequired Filterable
The name that identifies the workflow definition. Combined with
version, the name forms a unique identifier for the task. - start object
The start definition for a workflow, including optional schedule configuration.
One of:- object
A scheduled workflow start definition.
properties
- schedule string|objectRequiredOne of:
- string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created. UTC timezone is assumed.
- object
A structured schedule definition with optional recurrence, date range, and timezone.
properties
- cron string|objectOne of:
- string
A cron expression defining when workflow instances should be created automatically.
- object
properties
- expression stringRequired
A cron expression describing when the workflow instance should be created.
- validUntil string
The date and time (ISO 8601 format) after which this cron expression is no longer active.
-
-
- interval string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created.
- timezone string
The timezone name used to evaluate the interval and cron expression. Defaults to
UTC. - recurrence string
An RRULE recurrence rule string defining when the workflow recurs.
- endDateTime string
The date and time (ISO 8601 format) when the workflow schedule ends.
- startDateTime string
The date and time (ISO 8601 format) when the workflow schedule begins.
-
-
- stateName string
The name of the starting workflow state.
-
-
- events array of objects
CloudEvent definitions for the workflow. Defines the events that can be consumed or produced by the workflow.
events properties
- name string
A unique name identifying this event definition within the workflow.
- type string
The CloudEvents type attribute identifying the kind of event.
Can be one of: "com.qlik.v1.task.run.finished""com.qlik/active-analytics-orch"
- source string
The CloudEvents source attribute identifying the origin of the event.
Can be one of: "system-events.task""dataset.updated"
- dataOnly boolean
When
true, only the event payload is accessible to consuming workflow states. Whenfalse, both the payload and context attributes are accessible. - correlation array of objects
Correlation definitions used to match incoming CloudEvents to this workflow instance.
correlation properties
- contextAttributeName stringRequired
The name of the CloudEvent extension context attribute to match on.
Can be one of: "id""status""appId""spaceId""datasetId"
- contextAttributeValue string
The expected value of the CloudEvent extension context attribute.
-
-
- states array of objects
The list of state definitions that compose the workflow.
states properties
- end boolean
Marks this state as a terminal state in the workflow.
- name string
The name of this state, unique within the workflow.
- type string
The state type. Must be
EVENTfor event-driven states.Can be one of: "EVENT"
- onEvents array of objects
The events to consume and the optional actions to perform when they are received.
onEvents properties
- actions array of objects
Actions to perform when the matched events are consumed.
actions properties
- name string
A unique name for this action within the workflow.
- retryRef string
A reference to a defined workflow retry policy. If absent, the default retry policy applies.
- condition string
An expression that must evaluate to
truefor this action to be performed. Whenfalse, the action is skipped. - functionRef object
A reference to a function to invoke, either as a name string or a structured object.
One of:- string
The name of the referenced function.
- object
A structured function reference with arguments and invocation options.
properties
- invoke string
Specifies whether the function is invoked synchronously or asynchronously.
Can be one of: "SYNC""ASYNC"
- refName stringRequired
The name of the function to invoke.
Can be one of: "app.reload"
- arguments object
Arguments to pass to the function. The
app.reloadfunction accepts:appId(string, required): The ID of the app to reload.partial(boolean, defaultfalse): Whether to perform a partial reload.weight(integer,1to10, default1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of10starts sooner than a weight of1. It does not affect the reload once running. Apps in personal spaces always run with weight1. Values outside1to10are rejected.
- selectionSet string
A GraphQL selection set string. Only applicable when the function type is
graphql.
-
-
- retryableErrors array of strings
Workflow error references for which this action must be retried. Used only when
autoRetriesisfalse. - nonRetryableErrors array of strings
Workflow error references for which this action must not be retried. Used only when
autoRetriesistrue.
-
- eventRefs array of stringsRequired
References to one or more unique event names defined in the workflow events list.
- actionMode string
Specifies whether actions are performed sequentially or in parallel.
Can be one of: "SEQUENTIAL""PARALLEL"
-
- timeouts object
State-specific timeout durations.
timeouts properties
- eventTimeout string
The maximum duration to wait for the defined events to be received, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- stateExecTimeout string
The maximum duration for executing this state, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- actionExecTimeout string
The maximum duration for executing a single action, expressed as an ISO 8601 duration string or an expression that evaluates to one.
-
- exclusive boolean
When
true, consuming any one of the defined events causes its associated actions to execute. Whenfalse, all defined events must be consumed before actions are performed. - compensatedBy string
The unique name of a workflow state responsible for compensating this state if it fails.
-
- enabled boolean
Indicates whether the task is enabled. Disabled tasks will not trigger automatically.
- version string
The semantic version of the workflow definition.
- metadata object
metadata properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdAt string
The UTC timestamp when the task was created.
- createdBy string
The user ID of the user who created the task.
- deletedAt string
The UTC timestamp when the task was deleted.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- keepActive boolean
When
true, workflow instances are not terminated when there are no active execution paths. Instances can be ended via a terminate end definition or a configuredworkflowExecTimeout. - resourceId string
The unique identifier of the resource this task operates on. The value supplied in a request body is ignored and is derived automatically from
states. - annotations array of strings
A list of terms describing the workflow's intended purpose, subject areas, or other important qualities.
- description string
A human-readable description of the workflow's purpose.
- specVersion stringRequired
The Serverless Workflow specification version used by this task.
-
204
Task updated with no content to return.
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.patchTask('string', [ { op: 'add', path: 'string', value: 'string' },])qlik scheduling task patch 'string' \ --op 'add' \ --path 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/{id}" \-X PATCH \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '[{"op":"add","path":"string","value":"string"}]'Example Response
{ "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "name": "TaskExample", "events": [ { "name": "event1", "type": "com.qlik/active-analytics-orch", "source": "dataset.updated", "correlation": [ { "contextAttributeName": "appId", "contextAttributeValue": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } ] } ], "states": [ { "end": true, "name": "Reload", "type": "event", "onEvents": [ { "actions": [ { "name": "app.reload", "functionRef": { "refName": "app.reload", "arguments": { "appId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "partial": false } } } ], "eventRefs": [ "app1-dataset-updated" ] } ], "exclusive": false } ], "enabled": true, "version": "1.0.0", "metadata": { "usage": "ANALYTICS", "ownerId": 0, "spaceId": "", "trigger": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 4 }, "tenantId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "createdAt": "2025-08-31T23:22:27.929Z", "createdBy": 0, "updatedAt": "2025-08-31T23:27:51.207Z", "orchestration": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 3, "attrs": { "last_run_status": "SUCCEEDED", "last_run_endedAt": "2025-08-31T23:28:06Z", "last_run_startedAt": "2025-08-31T23:28:04Z", "last_run_worker_type": "reloads" } } }, "keepActive": false, "resourceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "description": "this is an example of task response", "specVersion": "1.16.0"}Replaces the full definition of a specific task with the supplied payload. All fields not included in the request body are reset to their defaults. If the task is owned by another user, ownership is transferred to the requesting user. Use PATCH instead to apply a partial update.
Facts
| Rate limit | Tier 2 (100 requests per minute) | |
| Replaces |
Path Parameters
- id stringRequired
The unique identifier of the task to replace.
Request Body
Required- application/json object
application/json properties
- key string
An optional expression used to generate a domain-specific workflow instance identifier.
- name stringRequired Filterable
The name that identifies the workflow definition. Combined with
version, the name forms a unique identifier for the task. - start object
The start definition for a workflow, including optional schedule configuration.
One of:- object
A scheduled workflow start definition.
properties
- schedule string|objectRequiredOne of:
- string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created. UTC timezone is assumed.
- object
A structured schedule definition with optional recurrence, date range, and timezone.
properties
- cron string|objectOne of:
- string
A cron expression defining when workflow instances should be created automatically.
- object
properties
- expression stringRequired
A cron expression describing when the workflow instance should be created.
- validUntil string
The date and time (ISO 8601 format) after which this cron expression is no longer active.
-
-
- interval string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created.
- timezone string
The timezone name used to evaluate the interval and cron expression. Defaults to
UTC. - recurrence string
An RRULE recurrence rule string defining when the workflow recurs.
- endDateTime string
The date and time (ISO 8601 format) when the workflow schedule ends.
- startDateTime string
The date and time (ISO 8601 format) when the workflow schedule begins.
-
-
- stateName string
The name of the starting workflow state.
-
-
- events array of objects
CloudEvent definitions for the workflow. Defines the events that can be consumed or produced by the workflow.
events properties
- name string
A unique name identifying this event definition within the workflow.
- type string
The CloudEvents type attribute identifying the kind of event.
Can be one of: "com.qlik.v1.task.run.finished""com.qlik/active-analytics-orch"
- source string
The CloudEvents source attribute identifying the origin of the event.
Can be one of: "system-events.task""dataset.updated"
- dataOnly boolean
When
true, only the event payload is accessible to consuming workflow states. Whenfalse, both the payload and context attributes are accessible. - correlation array of objects
Correlation definitions used to match incoming CloudEvents to this workflow instance.
correlation properties
- contextAttributeName stringRequired
The name of the CloudEvent extension context attribute to match on.
Can be one of: "id""status""appId""spaceId""datasetId"
- contextAttributeValue string
The expected value of the CloudEvent extension context attribute.
-
-
- states array of objects
The list of state definitions that compose the workflow.
states properties
- end boolean
Marks this state as a terminal state in the workflow.
- name string
The name of this state, unique within the workflow.
- type string
The state type. Must be
EVENTfor event-driven states.Can be one of: "EVENT"
- onEvents array of objects
The events to consume and the optional actions to perform when they are received.
onEvents properties
- actions array of objects
Actions to perform when the matched events are consumed.
actions properties
- name string
A unique name for this action within the workflow.
- retryRef string
A reference to a defined workflow retry policy. If absent, the default retry policy applies.
- condition string
An expression that must evaluate to
truefor this action to be performed. Whenfalse, the action is skipped. - functionRef object
A reference to a function to invoke, either as a name string or a structured object.
One of:- string
The name of the referenced function.
- object
A structured function reference with arguments and invocation options.
properties
- invoke string
Specifies whether the function is invoked synchronously or asynchronously.
Can be one of: "SYNC""ASYNC"
- refName stringRequired
The name of the function to invoke.
Can be one of: "app.reload"
- arguments object
Arguments to pass to the function. The
app.reloadfunction accepts:appId(string, required): The ID of the app to reload.partial(boolean, defaultfalse): Whether to perform a partial reload.weight(integer,1to10, default1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of10starts sooner than a weight of1. It does not affect the reload once running. Apps in personal spaces always run with weight1. Values outside1to10are rejected.
- selectionSet string
A GraphQL selection set string. Only applicable when the function type is
graphql.
-
-
- retryableErrors array of strings
Workflow error references for which this action must be retried. Used only when
autoRetriesisfalse. - nonRetryableErrors array of strings
Workflow error references for which this action must not be retried. Used only when
autoRetriesistrue.
-
- eventRefs array of stringsRequired
References to one or more unique event names defined in the workflow events list.
- actionMode string
Specifies whether actions are performed sequentially or in parallel.
Can be one of: "SEQUENTIAL""PARALLEL"
-
- timeouts object
State-specific timeout durations.
timeouts properties
- eventTimeout string
The maximum duration to wait for the defined events to be received, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- stateExecTimeout string
The maximum duration for executing this state, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- actionExecTimeout string
The maximum duration for executing a single action, expressed as an ISO 8601 duration string or an expression that evaluates to one.
-
- exclusive boolean
When
true, consuming any one of the defined events causes its associated actions to execute. Whenfalse, all defined events must be consumed before actions are performed. - compensatedBy string
The unique name of a workflow state responsible for compensating this state if it fails.
-
- enabled boolean
Indicates whether the task is enabled. Disabled tasks will not trigger automatically.
- version string
The semantic version of the workflow definition.
- metadata object
metadata properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdBy string
The user ID of the user who created the task.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- keepActive boolean
When
true, workflow instances are not terminated when there are no active execution paths. Instances can be ended via a terminate end definition or a configuredworkflowExecTimeout. - resourceId string
The unique identifier of the resource this task operates on. The value supplied in a request body is ignored and is derived automatically from
states. - annotations array of strings
A list of terms describing the workflow's intended purpose, subject areas, or other important qualities.
- description string
A human-readable description of the workflow's purpose.
- specVersion stringRequired
The Serverless Workflow specification version used by this task.
-
Responses
200
Task replaced successfully.
- application/json object
application/json properties
- id string
The unique identifier assigned to the task by the service.
- key string
An optional expression used to generate a domain-specific workflow instance identifier.
- name stringRequired Filterable
The name that identifies the workflow definition. Combined with
version, the name forms a unique identifier for the task. - start object
The start definition for a workflow, including optional schedule configuration.
One of:- object
A scheduled workflow start definition.
properties
- schedule string|objectRequiredOne of:
- string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created. UTC timezone is assumed.
- object
A structured schedule definition with optional recurrence, date range, and timezone.
properties
- cron string|objectOne of:
- string
A cron expression defining when workflow instances should be created automatically.
- object
properties
- expression stringRequired
A cron expression describing when the workflow instance should be created.
- validUntil string
The date and time (ISO 8601 format) after which this cron expression is no longer active.
-
-
- interval string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created.
- timezone string
The timezone name used to evaluate the interval and cron expression. Defaults to
UTC. - recurrence string
An RRULE recurrence rule string defining when the workflow recurs.
- endDateTime string
The date and time (ISO 8601 format) when the workflow schedule ends.
- startDateTime string
The date and time (ISO 8601 format) when the workflow schedule begins.
-
-
- stateName string
The name of the starting workflow state.
-
-
- events array of objects
CloudEvent definitions for the workflow. Defines the events that can be consumed or produced by the workflow.
events properties
- name string
A unique name identifying this event definition within the workflow.
- type string
The CloudEvents type attribute identifying the kind of event.
Can be one of: "com.qlik.v1.task.run.finished""com.qlik/active-analytics-orch"
- source string
The CloudEvents source attribute identifying the origin of the event.
Can be one of: "system-events.task""dataset.updated"
- dataOnly boolean
When
true, only the event payload is accessible to consuming workflow states. Whenfalse, both the payload and context attributes are accessible. - correlation array of objects
Correlation definitions used to match incoming CloudEvents to this workflow instance.
correlation properties
- contextAttributeName stringRequired
The name of the CloudEvent extension context attribute to match on.
Can be one of: "id""status""appId""spaceId""datasetId"
- contextAttributeValue string
The expected value of the CloudEvent extension context attribute.
-
-
- states array of objects
The list of state definitions that compose the workflow.
states properties
- end boolean
Marks this state as a terminal state in the workflow.
- name string
The name of this state, unique within the workflow.
- type string
The state type. Must be
EVENTfor event-driven states.Can be one of: "EVENT"
- onEvents array of objects
The events to consume and the optional actions to perform when they are received.
onEvents properties
- actions array of objects
Actions to perform when the matched events are consumed.
actions properties
- name string
A unique name for this action within the workflow.
- retryRef string
A reference to a defined workflow retry policy. If absent, the default retry policy applies.
- condition string
An expression that must evaluate to
truefor this action to be performed. Whenfalse, the action is skipped. - functionRef object
A reference to a function to invoke, either as a name string or a structured object.
One of:- string
The name of the referenced function.
- object
A structured function reference with arguments and invocation options.
properties
- invoke string
Specifies whether the function is invoked synchronously or asynchronously.
Can be one of: "SYNC""ASYNC"
- refName stringRequired
The name of the function to invoke.
Can be one of: "app.reload"
- arguments object
Arguments to pass to the function. The
app.reloadfunction accepts:appId(string, required): The ID of the app to reload.partial(boolean, defaultfalse): Whether to perform a partial reload.weight(integer,1to10, default1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of10starts sooner than a weight of1. It does not affect the reload once running. Apps in personal spaces always run with weight1. Values outside1to10are rejected.
- selectionSet string
A GraphQL selection set string. Only applicable when the function type is
graphql.
-
-
- retryableErrors array of strings
Workflow error references for which this action must be retried. Used only when
autoRetriesisfalse. - nonRetryableErrors array of strings
Workflow error references for which this action must not be retried. Used only when
autoRetriesistrue.
-
- eventRefs array of stringsRequired
References to one or more unique event names defined in the workflow events list.
- actionMode string
Specifies whether actions are performed sequentially or in parallel.
Can be one of: "SEQUENTIAL""PARALLEL"
-
- timeouts object
State-specific timeout durations.
timeouts properties
- eventTimeout string
The maximum duration to wait for the defined events to be received, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- stateExecTimeout string
The maximum duration for executing this state, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- actionExecTimeout string
The maximum duration for executing a single action, expressed as an ISO 8601 duration string or an expression that evaluates to one.
-
- exclusive boolean
When
true, consuming any one of the defined events causes its associated actions to execute. Whenfalse, all defined events must be consumed before actions are performed. - compensatedBy string
The unique name of a workflow state responsible for compensating this state if it fails.
-
- enabled boolean
Indicates whether the task is enabled. Disabled tasks will not trigger automatically.
- version string
The semantic version of the workflow definition.
- metadata object
metadata properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdAt string
The UTC timestamp when the task was created.
- createdBy string
The user ID of the user who created the task.
- deletedAt string
The UTC timestamp when the task was deleted.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- keepActive boolean
When
true, workflow instances are not terminated when there are no active execution paths. Instances can be ended via a terminate end definition or a configuredworkflowExecTimeout. - resourceId string
The unique identifier of the resource this task operates on. The value supplied in a request body is ignored and is derived automatically from
states. - annotations array of strings
A list of terms describing the workflow's intended purpose, subject areas, or other important qualities.
- description string
A human-readable description of the workflow's purpose.
- specVersion stringRequired
The Serverless Workflow specification version used by this task.
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
409
The request conflicts with the current state of the resource.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.updateTask('string', { description: 'this is an example of task response', enabled: true, events: [ { correlation: [ { contextAttributeName: 'appId', contextAttributeValue: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', }, ], name: 'event1', source: 'dataset.updated', type: 'com.qlik/active-analytics-orch', }, ], id: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', metadata: { createdAt: '2025-08-31T23:22:27.929Z', createdBy: '', orchestration: { attrs: { last_run_status: 'SUCCEEDED', last_run_endedAt: '2025-08-31T23:28:06Z', last_run_startedAt: '2025-08-31T23:28:04Z', last_run_worker_type: 'reloads', }, id: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', type: 3, }, ownerId: '', tenantId: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', trigger: { id: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', type: 4, }, updatedAt: '2025-08-31T23:27:51.207Z', usage: 'ANALYTICS', }, name: 'TaskExample', resourceId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', specVersion: '1.16.0', states: [ { end: true, name: 'Reload', onEvents: [ { actions: [ { functionRef: { refName: 'app.reload', arguments: { appId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', partial: false, }, }, name: 'app.reload', }, ], eventRefs: ['app1-dataset-updated'], }, ], type: 'event', }, ], version: '1.0.0',})qlik scheduling task update 'string' \ --events-correlation-contextAttributeName '' \ --metadata-orchestration-id 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \ --metadata-orchestration-lastRun-id '' \ --metadata-orchestration-lastRun-status '' \ --metadata-orchestration-lastRun-triggeredBy '' \ --metadata-orchestration-lastRun-workerId '' \ --metadata-orchestration-lastRun-workerType '' \ --metadata-orchestration-type 3 \ --metadata-trigger-id 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \ --metadata-trigger-type 4 \ --name 'TaskExample' \ --specVersion '1.16.0' \ --start-schedule '' \ --start-schedule-cron '' \ --start-schedule-cron-expression '' \ --start-schedule-cron-validUntil '' \ --start-schedule-endDateTime '' \ --start-schedule-interval '' \ --start-schedule-recurrence '' \ --start-schedule-startDateTime '' \ --start-schedule-timezone '' \ --states-onEvents-actions-functionRef-refName '' \ --states-onEvents-eventRefs ''curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/{id}" \-X PUT \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","name":"TaskExample","events":[{"name":"event1","type":"com.qlik/active-analytics-orch","source":"dataset.updated","correlation":[{"contextAttributeName":"appId","contextAttributeValue":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}]}],"states":[{"end":true,"name":"Reload","type":"event","onEvents":[{"actions":[{"name":"app.reload","functionRef":{"refName":"app.reload","arguments":{"appId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","partial":false}}}],"eventRefs":["app1-dataset-updated"]}],"exclusive":false}],"enabled":true,"version":"1.0.0","metadata":{"usage":"ANALYTICS","ownerId":0,"spaceId":"","trigger":{"id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","type":4},"tenantId":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","createdAt":"2025-08-31T23:22:27.929Z","createdBy":0,"updatedAt":"2025-08-31T23:27:51.207Z","orchestration":{"id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","type":3,"attrs":{"last_run_status":"SUCCEEDED","last_run_endedAt":"2025-08-31T23:28:06Z","last_run_startedAt":"2025-08-31T23:28:04Z","last_run_worker_type":"reloads"}}},"keepActive":false,"resourceId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","description":"this is an example of task response","specVersion":"1.16.0"}'Example Response
{ "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "name": "TaskExample", "events": [ { "name": "event1", "type": "com.qlik/active-analytics-orch", "source": "dataset.updated", "correlation": [ { "contextAttributeName": "appId", "contextAttributeValue": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } ] } ], "states": [ { "end": true, "name": "Reload", "type": "event", "onEvents": [ { "actions": [ { "name": "app.reload", "functionRef": { "refName": "app.reload", "arguments": { "appId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "partial": false } } } ], "eventRefs": [ "app1-dataset-updated" ] } ], "exclusive": false } ], "enabled": true, "version": "1.0.0", "metadata": { "usage": "ANALYTICS", "ownerId": 0, "spaceId": "", "trigger": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 4 }, "tenantId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "createdAt": "2025-08-31T23:22:27.929Z", "createdBy": 0, "updatedAt": "2025-08-31T23:27:51.207Z", "orchestration": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 3, "attrs": { "last_run_status": "SUCCEEDED", "last_run_endedAt": "2025-08-31T23:28:06Z", "last_run_startedAt": "2025-08-31T23:28:04Z", "last_run_worker_type": "reloads" } } }, "keepActive": false, "resourceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "description": "this is an example of task response", "specVersion": "1.16.0"}Deletes a specific task and cancels any scheduled or pending runs associated with it. This action cannot be undone. Tenant admins can delete tasks owned by other users.
Facts
| Rate limit | Tier 2 (100 requests per minute) | |
| Replaces |
Path Parameters
- id stringRequired
The unique identifier of the task to delete.
Responses
204
Task deleted successfully.
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.deleteTask('string')qlik scheduling task rm 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/{id}" \-X DELETE \-H "Authorization: Bearer <access_token>"Triggers an immediate run of the specified task outside its normal schedule. The optional source parameter identifies what initiated the run, which is recorded in the run history for auditing purposes.
Facts
| Rate limit | Tier 2 (100 requests per minute) | |
| Replaces |
Query Parameters
- source string
The origin of the trigger. Defaults to
manual. For event-triggered tasks, this can be the name of the triggering task.
Path Parameters
- id stringRequired
The unique identifier of the task to start.
Responses
200
Task started successfully.
- application/json object
application/json properties
- message string
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.startTask( 'string', {},)qlik scheduling task start 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/{id}/actions/start" \-X POST \-H "Authorization: Bearer <access_token>"Example Response
{ "message": "Task started successfully"}Retrieves the ancestor subgraph for a specific task, with the requested task as the root vertex. Traverses parent relationships breadth-first up to the depth specified by level. Use this to understand all upstream dependencies of a task.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Query Parameters
- level integer
Maximum ancestor depth to traverse breadth-first.
- withTask boolean
When
true, includes the full task document for each accessible vertex in the response.
Path Parameters
- id stringRequired
The unique identifier of the task.
Responses
200
Ancestor graph retrieved successfully.
- application/json object
application/json properties
- edges array of objects
edges properties
- attrs object
- source string
- target string
-
- taskId string
- vertices array of objects
vertices properties
- task object
task properties
- id string
The unique identifier assigned to the task by the service.
- key string
An optional expression used to generate a domain-specific workflow instance identifier.
- name stringRequired Filterable
The name that identifies the workflow definition. Combined with
version, the name forms a unique identifier for the task. - start object
The start definition for a workflow, including optional schedule configuration.
One of:- object
A scheduled workflow start definition.
properties
- schedule string|objectRequiredOne of:
- string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created. UTC timezone is assumed.
- object
A structured schedule definition with optional recurrence, date range, and timezone.
properties
- cron string|objectOne of:
- string
A cron expression defining when workflow instances should be created automatically.
- object
properties
- expression stringRequired
A cron expression describing when the workflow instance should be created.
- validUntil string
The date and time (ISO 8601 format) after which this cron expression is no longer active.
-
-
- interval string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created.
- timezone string
The timezone name used to evaluate the interval and cron expression. Defaults to
UTC. - recurrence string
An RRULE recurrence rule string defining when the workflow recurs.
- endDateTime string
The date and time (ISO 8601 format) when the workflow schedule ends.
- startDateTime string
The date and time (ISO 8601 format) when the workflow schedule begins.
-
-
- stateName string
The name of the starting workflow state.
-
-
- events array of objects
CloudEvent definitions for the workflow. Defines the events that can be consumed or produced by the workflow.
events properties
- name string
A unique name identifying this event definition within the workflow.
- type string
The CloudEvents type attribute identifying the kind of event.
Can be one of: "com.qlik.v1.task.run.finished""com.qlik/active-analytics-orch"
- source string
The CloudEvents source attribute identifying the origin of the event.
Can be one of: "system-events.task""dataset.updated"
- dataOnly boolean
When
true, only the event payload is accessible to consuming workflow states. Whenfalse, both the payload and context attributes are accessible. - correlation array of objects
Correlation definitions used to match incoming CloudEvents to this workflow instance.
correlation properties
- contextAttributeName stringRequired
The name of the CloudEvent extension context attribute to match on.
Can be one of: "id""status""appId""spaceId""datasetId"
- contextAttributeValue string
The expected value of the CloudEvent extension context attribute.
-
-
- states array of objects
The list of state definitions that compose the workflow.
states properties
- end boolean
Marks this state as a terminal state in the workflow.
- name string
The name of this state, unique within the workflow.
- type string
The state type. Must be
EVENTfor event-driven states.Can be one of: "EVENT"
- onEvents array of objects
The events to consume and the optional actions to perform when they are received.
onEvents properties
- actions array of objects
Actions to perform when the matched events are consumed.
actions properties
- name string
A unique name for this action within the workflow.
- retryRef string
A reference to a defined workflow retry policy. If absent, the default retry policy applies.
- condition string
An expression that must evaluate to
truefor this action to be performed. Whenfalse, the action is skipped. - functionRef object
A reference to a function to invoke, either as a name string or a structured object.
One of:- string
The name of the referenced function.
- object
A structured function reference with arguments and invocation options.
properties
- invoke string
Specifies whether the function is invoked synchronously or asynchronously.
Can be one of: "SYNC""ASYNC"
- refName stringRequired
The name of the function to invoke.
Can be one of: "app.reload"
- arguments object
Arguments to pass to the function. The
app.reloadfunction accepts:appId(string, required): The ID of the app to reload.partial(boolean, defaultfalse): Whether to perform a partial reload.weight(integer,1to10, default1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of10starts sooner than a weight of1. It does not affect the reload once running. Apps in personal spaces always run with weight1. Values outside1to10are rejected.
- selectionSet string
A GraphQL selection set string. Only applicable when the function type is
graphql.
-
-
- retryableErrors array of strings
Workflow error references for which this action must be retried. Used only when
autoRetriesisfalse. - nonRetryableErrors array of strings
Workflow error references for which this action must not be retried. Used only when
autoRetriesistrue.
-
- eventRefs array of stringsRequired
References to one or more unique event names defined in the workflow events list.
- actionMode string
Specifies whether actions are performed sequentially or in parallel.
Can be one of: "SEQUENTIAL""PARALLEL"
-
- timeouts object
State-specific timeout durations.
timeouts properties
- eventTimeout string
The maximum duration to wait for the defined events to be received, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- stateExecTimeout string
The maximum duration for executing this state, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- actionExecTimeout string
The maximum duration for executing a single action, expressed as an ISO 8601 duration string or an expression that evaluates to one.
-
- exclusive boolean
When
true, consuming any one of the defined events causes its associated actions to execute. Whenfalse, all defined events must be consumed before actions are performed. - compensatedBy string
The unique name of a workflow state responsible for compensating this state if it fails.
-
- enabled boolean
Indicates whether the task is enabled. Disabled tasks will not trigger automatically.
- version string
The semantic version of the workflow definition.
- metadata object
metadata properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdAt string
The UTC timestamp when the task was created.
- createdBy string
The user ID of the user who created the task.
- deletedAt string
The UTC timestamp when the task was deleted.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- keepActive boolean
When
true, workflow instances are not terminated when there are no active execution paths. Instances can be ended via a terminate end definition or a configuredworkflowExecTimeout. - resourceId string
The unique identifier of the resource this task operates on. The value supplied in a request body is ignored and is derived automatically from
states. - annotations array of strings
A list of terms describing the workflow's intended purpose, subject areas, or other important qualities.
- description string
A human-readable description of the workflow's purpose.
- specVersion stringRequired
The Serverless Workflow specification version used by this task.
-
- attrs object
- taskId string
-
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.getTaskGraphAncestors( 'string', {},)qlik scheduling task graph ancestor ls 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/{id}/graphs/ancestors" \-H "Authorization: Bearer <access_token>"Example Response
{ "edges": [ { "attrs": { "depth": 1 }, "source": "22222222-2222-2222-2222-222222222222", "target": "11111111-1111-1111-1111-111111111111" } ], "taskId": "11111111-1111-1111-1111-111111111111", "vertices": [ { "attrs": { "depth": 0, "isChild": false, "isParent": true }, "taskId": "11111111-1111-1111-1111-111111111111" }, { "attrs": { "depth": 1, "isChild": true, "isParent": false }, "taskId": "22222222-2222-2222-2222-222222222222" } ]}Retrieves a paginated list of tasks that are direct children of the specified task in the dependency graph. A child task is one that is triggered when the parent task completes successfully.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Query Parameters
- filter string
Advanced filter expression using RFC 7644 SCIM syntax. Refer to RFC 7644 for syntax details. All comparisons are case-insensitive. Supported fields:
name,enabled,resourceId,ownerId,spaceId,createdAt,updatedAt,updatedBy,lastStatus,lastTriggeredBy,lastStartedAt,lastEndedAt,lastExecutedAs, andtriggerType. - limit integer
Maximum number of tasks to return per page.
- page string
Cursor token for fetching the next page of results.
- sort string
Field and direction to sort results by. Prefix the field name with
+for ascending or-for descending order. Defaults to-updatedAt.Can be one of: "+createdAt""-createdAt""+enabled""-enabled""+name""-name""+ownerId""-ownerId""+resourceId""-resourceId""+spaceId""-spaceId""+updatedAt""-updatedAt""+updatedBy""-updatedBy""+lastStatus""-lastStatus""+lastTriggeredBy""-lastTriggeredBy""+lastStartedAt""-lastStartedAt""+lastEndedAt""-lastEndedAt""+lastExecutedAs""-lastExecutedAs""+triggerType""-triggerType"
Path Parameters
- id stringRequired
The unique identifier of the parent task.
Responses
200
Child tasks retrieved successfully.
- application/json object
application/json properties
- data array of objects
data properties
- id string
The unique identifier assigned to the task by the service.
- key string
An optional expression used to generate a domain-specific workflow instance identifier.
- name stringRequired Filterable
The name that identifies the workflow definition. Combined with
version, the name forms a unique identifier for the task. - start object
The start definition for a workflow, including optional schedule configuration.
One of:- object
A scheduled workflow start definition.
properties
- schedule string|objectRequiredOne of:
- string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created. UTC timezone is assumed.
- object
A structured schedule definition with optional recurrence, date range, and timezone.
properties
- cron string|objectOne of:
- string
A cron expression defining when workflow instances should be created automatically.
- object
properties
- expression stringRequired
A cron expression describing when the workflow instance should be created.
- validUntil string
The date and time (ISO 8601 format) after which this cron expression is no longer active.
-
-
- interval string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created.
- timezone string
The timezone name used to evaluate the interval and cron expression. Defaults to
UTC. - recurrence string
An RRULE recurrence rule string defining when the workflow recurs.
- endDateTime string
The date and time (ISO 8601 format) when the workflow schedule ends.
- startDateTime string
The date and time (ISO 8601 format) when the workflow schedule begins.
-
-
- stateName string
The name of the starting workflow state.
-
-
- events array of objects
CloudEvent definitions for the workflow. Defines the events that can be consumed or produced by the workflow.
events properties
- name string
A unique name identifying this event definition within the workflow.
- type string
The CloudEvents type attribute identifying the kind of event.
Can be one of: "com.qlik.v1.task.run.finished""com.qlik/active-analytics-orch"
- source string
The CloudEvents source attribute identifying the origin of the event.
Can be one of: "system-events.task""dataset.updated"
- dataOnly boolean
When
true, only the event payload is accessible to consuming workflow states. Whenfalse, both the payload and context attributes are accessible. - correlation array of objects
Correlation definitions used to match incoming CloudEvents to this workflow instance.
correlation properties
- contextAttributeName stringRequired
The name of the CloudEvent extension context attribute to match on.
Can be one of: "id""status""appId""spaceId""datasetId"
- contextAttributeValue string
The expected value of the CloudEvent extension context attribute.
-
-
- states array of objects
The list of state definitions that compose the workflow.
states properties
- end boolean
Marks this state as a terminal state in the workflow.
- name string
The name of this state, unique within the workflow.
- type string
The state type. Must be
EVENTfor event-driven states.Can be one of: "EVENT"
- onEvents array of objects
The events to consume and the optional actions to perform when they are received.
onEvents properties
- actions array of objects
Actions to perform when the matched events are consumed.
actions properties
- name string
A unique name for this action within the workflow.
- retryRef string
A reference to a defined workflow retry policy. If absent, the default retry policy applies.
- condition string
An expression that must evaluate to
truefor this action to be performed. Whenfalse, the action is skipped. - functionRef object
A reference to a function to invoke, either as a name string or a structured object.
One of:- string
The name of the referenced function.
- object
A structured function reference with arguments and invocation options.
properties
- invoke string
Specifies whether the function is invoked synchronously or asynchronously.
Can be one of: "SYNC""ASYNC"
- refName stringRequired
The name of the function to invoke.
Can be one of: "app.reload"
- arguments object
Arguments to pass to the function. The
app.reloadfunction accepts:appId(string, required): The ID of the app to reload.partial(boolean, defaultfalse): Whether to perform a partial reload.weight(integer,1to10, default1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of10starts sooner than a weight of1. It does not affect the reload once running. Apps in personal spaces always run with weight1. Values outside1to10are rejected.
- selectionSet string
A GraphQL selection set string. Only applicable when the function type is
graphql.
-
-
- retryableErrors array of strings
Workflow error references for which this action must be retried. Used only when
autoRetriesisfalse. - nonRetryableErrors array of strings
Workflow error references for which this action must not be retried. Used only when
autoRetriesistrue.
-
- eventRefs array of stringsRequired
References to one or more unique event names defined in the workflow events list.
- actionMode string
Specifies whether actions are performed sequentially or in parallel.
Can be one of: "SEQUENTIAL""PARALLEL"
-
- timeouts object
State-specific timeout durations.
timeouts properties
- eventTimeout string
The maximum duration to wait for the defined events to be received, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- stateExecTimeout string
The maximum duration for executing this state, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- actionExecTimeout string
The maximum duration for executing a single action, expressed as an ISO 8601 duration string or an expression that evaluates to one.
-
- exclusive boolean
When
true, consuming any one of the defined events causes its associated actions to execute. Whenfalse, all defined events must be consumed before actions are performed. - compensatedBy string
The unique name of a workflow state responsible for compensating this state if it fails.
-
- enabled boolean
Indicates whether the task is enabled. Disabled tasks will not trigger automatically.
- version string
The semantic version of the workflow definition.
- metadata object
metadata properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdAt string
The UTC timestamp when the task was created.
- createdBy string
The user ID of the user who created the task.
- deletedAt string
The UTC timestamp when the task was deleted.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- keepActive boolean
When
true, workflow instances are not terminated when there are no active execution paths. Instances can be ended via a terminate end definition or a configuredworkflowExecTimeout. - resourceId string
The unique identifier of the resource this task operates on. The value supplied in a request body is ignored and is derived automatically from
states. - annotations array of strings
A list of terms describing the workflow's intended purpose, subject areas, or other important qualities.
- description string
A human-readable description of the workflow's purpose.
- specVersion stringRequired
The Serverless Workflow specification version used by this task.
-
- links object
links properties
- next object
next properties
- href stringRequired
The URL of the linked resource.
-
- prev object
prev properties
- href stringRequired
The URL of the linked resource.
-
- self object
self properties
- href stringRequired
The URL of the linked resource.
-
-
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.getTaskGraphChildren( 'string', {},)qlik scheduling task graph children ls 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/{id}/graphs/children" \-H "Authorization: Bearer <access_token>"Example Response
{ "data": [ { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "name": "TaskExample", "events": [ { "name": "event1", "type": "com.qlik/active-analytics-orch", "source": "dataset.updated", "correlation": [ { "contextAttributeName": "appId", "contextAttributeValue": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } ] } ], "states": [ { "end": true, "name": "Reload", "type": "event", "onEvents": [ { "actions": [ { "name": "app.reload", "functionRef": { "refName": "app.reload", "arguments": { "appId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "partial": false } } } ], "eventRefs": [ "app1-dataset-updated" ] } ], "exclusive": false } ], "enabled": true, "version": "1.0.0", "metadata": { "usage": "ANALYTICS", "ownerId": 0, "spaceId": "", "trigger": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 4 }, "tenantId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "createdAt": "2025-08-31T23:22:27.929Z", "createdBy": 0, "updatedAt": "2025-08-31T23:27:51.207Z", "orchestration": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 3, "attrs": { "last_run_status": "SUCCEEDED", "last_run_endedAt": "2025-08-31T23:28:06Z", "last_run_startedAt": "2025-08-31T23:28:04Z", "last_run_worker_type": "reloads" } } }, "keepActive": false, "resourceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "description": "this is an example of task response", "specVersion": "1.16.0" } ], "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" } }}Retrieves the descendant subgraph for a specific task, with the requested task as the root vertex. Traverses child relationships breadth-first down to the depth specified by level. Use this to identify all downstream tasks that will be triggered when this task completes.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Query Parameters
- level integer
Maximum descendant depth to traverse breadth-first.
- withTask boolean
When
true, includes the full task document for each accessible vertex in the response.
Path Parameters
- id stringRequired
The unique identifier of the task.
Responses
200
Descendant graph retrieved successfully.
- application/json object
application/json properties
- edges array of objects
edges properties
- attrs object
- source string
- target string
-
- taskId string
- vertices array of objects
vertices properties
- task object
task properties
- id string
The unique identifier assigned to the task by the service.
- key string
An optional expression used to generate a domain-specific workflow instance identifier.
- name stringRequired Filterable
The name that identifies the workflow definition. Combined with
version, the name forms a unique identifier for the task. - start object
The start definition for a workflow, including optional schedule configuration.
One of:- object
A scheduled workflow start definition.
properties
- schedule string|objectRequiredOne of:
- string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created. UTC timezone is assumed.
- object
A structured schedule definition with optional recurrence, date range, and timezone.
properties
- cron string|objectOne of:
- string
A cron expression defining when workflow instances should be created automatically.
- object
properties
- expression stringRequired
A cron expression describing when the workflow instance should be created.
- validUntil string
The date and time (ISO 8601 format) after which this cron expression is no longer active.
-
-
- interval string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created.
- timezone string
The timezone name used to evaluate the interval and cron expression. Defaults to
UTC. - recurrence string
An RRULE recurrence rule string defining when the workflow recurs.
- endDateTime string
The date and time (ISO 8601 format) when the workflow schedule ends.
- startDateTime string
The date and time (ISO 8601 format) when the workflow schedule begins.
-
-
- stateName string
The name of the starting workflow state.
-
-
- events array of objects
CloudEvent definitions for the workflow. Defines the events that can be consumed or produced by the workflow.
events properties
- name string
A unique name identifying this event definition within the workflow.
- type string
The CloudEvents type attribute identifying the kind of event.
Can be one of: "com.qlik.v1.task.run.finished""com.qlik/active-analytics-orch"
- source string
The CloudEvents source attribute identifying the origin of the event.
Can be one of: "system-events.task""dataset.updated"
- dataOnly boolean
When
true, only the event payload is accessible to consuming workflow states. Whenfalse, both the payload and context attributes are accessible. - correlation array of objects
Correlation definitions used to match incoming CloudEvents to this workflow instance.
correlation properties
- contextAttributeName stringRequired
The name of the CloudEvent extension context attribute to match on.
Can be one of: "id""status""appId""spaceId""datasetId"
- contextAttributeValue string
The expected value of the CloudEvent extension context attribute.
-
-
- states array of objects
The list of state definitions that compose the workflow.
states properties
- end boolean
Marks this state as a terminal state in the workflow.
- name string
The name of this state, unique within the workflow.
- type string
The state type. Must be
EVENTfor event-driven states.Can be one of: "EVENT"
- onEvents array of objects
The events to consume and the optional actions to perform when they are received.
onEvents properties
- actions array of objects
Actions to perform when the matched events are consumed.
actions properties
- name string
A unique name for this action within the workflow.
- retryRef string
A reference to a defined workflow retry policy. If absent, the default retry policy applies.
- condition string
An expression that must evaluate to
truefor this action to be performed. Whenfalse, the action is skipped. - functionRef object
A reference to a function to invoke, either as a name string or a structured object.
One of:- string
The name of the referenced function.
- object
A structured function reference with arguments and invocation options.
properties
- invoke string
Specifies whether the function is invoked synchronously or asynchronously.
Can be one of: "SYNC""ASYNC"
- refName stringRequired
The name of the function to invoke.
Can be one of: "app.reload"
- arguments object
Arguments to pass to the function. The
app.reloadfunction accepts:appId(string, required): The ID of the app to reload.partial(boolean, defaultfalse): Whether to perform a partial reload.weight(integer,1to10, default1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of10starts sooner than a weight of1. It does not affect the reload once running. Apps in personal spaces always run with weight1. Values outside1to10are rejected.
- selectionSet string
A GraphQL selection set string. Only applicable when the function type is
graphql.
-
-
- retryableErrors array of strings
Workflow error references for which this action must be retried. Used only when
autoRetriesisfalse. - nonRetryableErrors array of strings
Workflow error references for which this action must not be retried. Used only when
autoRetriesistrue.
-
- eventRefs array of stringsRequired
References to one or more unique event names defined in the workflow events list.
- actionMode string
Specifies whether actions are performed sequentially or in parallel.
Can be one of: "SEQUENTIAL""PARALLEL"
-
- timeouts object
State-specific timeout durations.
timeouts properties
- eventTimeout string
The maximum duration to wait for the defined events to be received, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- stateExecTimeout string
The maximum duration for executing this state, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- actionExecTimeout string
The maximum duration for executing a single action, expressed as an ISO 8601 duration string or an expression that evaluates to one.
-
- exclusive boolean
When
true, consuming any one of the defined events causes its associated actions to execute. Whenfalse, all defined events must be consumed before actions are performed. - compensatedBy string
The unique name of a workflow state responsible for compensating this state if it fails.
-
- enabled boolean
Indicates whether the task is enabled. Disabled tasks will not trigger automatically.
- version string
The semantic version of the workflow definition.
- metadata object
metadata properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdAt string
The UTC timestamp when the task was created.
- createdBy string
The user ID of the user who created the task.
- deletedAt string
The UTC timestamp when the task was deleted.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- keepActive boolean
When
true, workflow instances are not terminated when there are no active execution paths. Instances can be ended via a terminate end definition or a configuredworkflowExecTimeout. - resourceId string
The unique identifier of the resource this task operates on. The value supplied in a request body is ignored and is derived automatically from
states. - annotations array of strings
A list of terms describing the workflow's intended purpose, subject areas, or other important qualities.
- description string
A human-readable description of the workflow's purpose.
- specVersion stringRequired
The Serverless Workflow specification version used by this task.
-
- attrs object
- taskId string
-
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.getTaskGraphDescendants( 'string', {},)qlik scheduling task graph descendant ls 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/{id}/graphs/descendants" \-H "Authorization: Bearer <access_token>"Example Response
{ "edges": [ { "attrs": { "depth": 1 }, "source": "22222222-2222-2222-2222-222222222222", "target": "11111111-1111-1111-1111-111111111111" } ], "taskId": "11111111-1111-1111-1111-111111111111", "vertices": [ { "attrs": { "depth": 0, "isChild": false, "isParent": true }, "taskId": "11111111-1111-1111-1111-111111111111" }, { "attrs": { "depth": 1, "isChild": true, "isParent": false }, "taskId": "22222222-2222-2222-2222-222222222222" } ]}Retrieves a paginated list of tasks that are direct parents of the specified task in the dependency graph. A parent task is one whose completion triggers the current task.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Query Parameters
- filter string
Advanced filter expression using RFC 7644 SCIM syntax. Refer to RFC 7644 for syntax details. All comparisons are case-insensitive. Supported fields:
name,enabled,resourceId,ownerId,spaceId,createdAt,updatedAt,updatedBy,lastStatus,lastTriggeredBy,lastStartedAt,lastEndedAt,lastExecutedAs, andtriggerType. - limit integer
Maximum number of tasks to return per page.
- page string
Cursor token for fetching the next page of results.
- sort string
Field and direction to sort results by. Prefix the field name with
+for ascending or-for descending order. Defaults to-updatedAt.Can be one of: "+createdAt""-createdAt""+enabled""-enabled""+name""-name""+ownerId""-ownerId""+resourceId""-resourceId""+spaceId""-spaceId""+updatedAt""-updatedAt""+updatedBy""-updatedBy""+lastStatus""-lastStatus""+lastTriggeredBy""-lastTriggeredBy""+lastStartedAt""-lastStartedAt""+lastEndedAt""-lastEndedAt""+lastExecutedAs""-lastExecutedAs""+triggerType""-triggerType"
Path Parameters
- id stringRequired
The unique identifier of the child task.
Responses
200
Parent tasks retrieved successfully.
- application/json object
application/json properties
- data array of objects
data properties
- id string
The unique identifier assigned to the task by the service.
- key string
An optional expression used to generate a domain-specific workflow instance identifier.
- name stringRequired Filterable
The name that identifies the workflow definition. Combined with
version, the name forms a unique identifier for the task. - start object
The start definition for a workflow, including optional schedule configuration.
One of:- object
A scheduled workflow start definition.
properties
- schedule string|objectRequiredOne of:
- string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created. UTC timezone is assumed.
- object
A structured schedule definition with optional recurrence, date range, and timezone.
properties
- cron string|objectOne of:
- string
A cron expression defining when workflow instances should be created automatically.
- object
properties
- expression stringRequired
A cron expression describing when the workflow instance should be created.
- validUntil string
The date and time (ISO 8601 format) after which this cron expression is no longer active.
-
-
- interval string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created.
- timezone string
The timezone name used to evaluate the interval and cron expression. Defaults to
UTC. - recurrence string
An RRULE recurrence rule string defining when the workflow recurs.
- endDateTime string
The date and time (ISO 8601 format) when the workflow schedule ends.
- startDateTime string
The date and time (ISO 8601 format) when the workflow schedule begins.
-
-
- stateName string
The name of the starting workflow state.
-
-
- events array of objects
CloudEvent definitions for the workflow. Defines the events that can be consumed or produced by the workflow.
events properties
- name string
A unique name identifying this event definition within the workflow.
- type string
The CloudEvents type attribute identifying the kind of event.
Can be one of: "com.qlik.v1.task.run.finished""com.qlik/active-analytics-orch"
- source string
The CloudEvents source attribute identifying the origin of the event.
Can be one of: "system-events.task""dataset.updated"
- dataOnly boolean
When
true, only the event payload is accessible to consuming workflow states. Whenfalse, both the payload and context attributes are accessible. - correlation array of objects
Correlation definitions used to match incoming CloudEvents to this workflow instance.
correlation properties
- contextAttributeName stringRequired
The name of the CloudEvent extension context attribute to match on.
Can be one of: "id""status""appId""spaceId""datasetId"
- contextAttributeValue string
The expected value of the CloudEvent extension context attribute.
-
-
- states array of objects
The list of state definitions that compose the workflow.
states properties
- end boolean
Marks this state as a terminal state in the workflow.
- name string
The name of this state, unique within the workflow.
- type string
The state type. Must be
EVENTfor event-driven states.Can be one of: "EVENT"
- onEvents array of objects
The events to consume and the optional actions to perform when they are received.
onEvents properties
- actions array of objects
Actions to perform when the matched events are consumed.
actions properties
- name string
A unique name for this action within the workflow.
- retryRef string
A reference to a defined workflow retry policy. If absent, the default retry policy applies.
- condition string
An expression that must evaluate to
truefor this action to be performed. Whenfalse, the action is skipped. - functionRef object
A reference to a function to invoke, either as a name string or a structured object.
One of:- string
The name of the referenced function.
- object
A structured function reference with arguments and invocation options.
properties
- invoke string
Specifies whether the function is invoked synchronously or asynchronously.
Can be one of: "SYNC""ASYNC"
- refName stringRequired
The name of the function to invoke.
Can be one of: "app.reload"
- arguments object
Arguments to pass to the function. The
app.reloadfunction accepts:appId(string, required): The ID of the app to reload.partial(boolean, defaultfalse): Whether to perform a partial reload.weight(integer,1to10, default1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of10starts sooner than a weight of1. It does not affect the reload once running. Apps in personal spaces always run with weight1. Values outside1to10are rejected.
- selectionSet string
A GraphQL selection set string. Only applicable when the function type is
graphql.
-
-
- retryableErrors array of strings
Workflow error references for which this action must be retried. Used only when
autoRetriesisfalse. - nonRetryableErrors array of strings
Workflow error references for which this action must not be retried. Used only when
autoRetriesistrue.
-
- eventRefs array of stringsRequired
References to one or more unique event names defined in the workflow events list.
- actionMode string
Specifies whether actions are performed sequentially or in parallel.
Can be one of: "SEQUENTIAL""PARALLEL"
-
- timeouts object
State-specific timeout durations.
timeouts properties
- eventTimeout string
The maximum duration to wait for the defined events to be received, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- stateExecTimeout string
The maximum duration for executing this state, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- actionExecTimeout string
The maximum duration for executing a single action, expressed as an ISO 8601 duration string or an expression that evaluates to one.
-
- exclusive boolean
When
true, consuming any one of the defined events causes its associated actions to execute. Whenfalse, all defined events must be consumed before actions are performed. - compensatedBy string
The unique name of a workflow state responsible for compensating this state if it fails.
-
- enabled boolean
Indicates whether the task is enabled. Disabled tasks will not trigger automatically.
- version string
The semantic version of the workflow definition.
- metadata object
metadata properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdAt string
The UTC timestamp when the task was created.
- createdBy string
The user ID of the user who created the task.
- deletedAt string
The UTC timestamp when the task was deleted.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- keepActive boolean
When
true, workflow instances are not terminated when there are no active execution paths. Instances can be ended via a terminate end definition or a configuredworkflowExecTimeout. - resourceId string
The unique identifier of the resource this task operates on. The value supplied in a request body is ignored and is derived automatically from
states. - annotations array of strings
A list of terms describing the workflow's intended purpose, subject areas, or other important qualities.
- description string
A human-readable description of the workflow's purpose.
- specVersion stringRequired
The Serverless Workflow specification version used by this task.
-
- links object
links properties
- next object
next properties
- href stringRequired
The URL of the linked resource.
-
- prev object
prev properties
- href stringRequired
The URL of the linked resource.
-
- self object
self properties
- href stringRequired
The URL of the linked resource.
-
-
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.getTaskGraphParents( 'string', {},)qlik scheduling task graph parent ls 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/{id}/graphs/parents" \-H "Authorization: Bearer <access_token>"Example Response
{ "data": [ { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "name": "TaskExample", "events": [ { "name": "event1", "type": "com.qlik/active-analytics-orch", "source": "dataset.updated", "correlation": [ { "contextAttributeName": "appId", "contextAttributeValue": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } ] } ], "states": [ { "end": true, "name": "Reload", "type": "event", "onEvents": [ { "actions": [ { "name": "app.reload", "functionRef": { "refName": "app.reload", "arguments": { "appId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "partial": false } } } ], "eventRefs": [ "app1-dataset-updated" ] } ], "exclusive": false } ], "enabled": true, "version": "1.0.0", "metadata": { "usage": "ANALYTICS", "ownerId": 0, "spaceId": "", "trigger": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 4 }, "tenantId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "createdAt": "2025-08-31T23:22:27.929Z", "createdBy": 0, "updatedAt": "2025-08-31T23:27:51.207Z", "orchestration": { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "type": 3, "attrs": { "last_run_status": "SUCCEEDED", "last_run_endedAt": "2025-08-31T23:28:06Z", "last_run_startedAt": "2025-08-31T23:28:04Z", "last_run_worker_type": "reloads" } } }, "keepActive": false, "resourceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "description": "this is an example of task response", "specVersion": "1.16.0" } ], "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" } }}Retrieves the combined ancestor-and-descendant subgraph for a specific task, with the requested task as the root vertex. Traverses both parent and child relationships breadth-first up to the depth specified by level. Use this to see the full dependency context for a task in one request.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Query Parameters
- level integer
Maximum ancestor and descendant depth to traverse breadth-first.
- withTask boolean
When
true, includes the full task document for each accessible vertex in the response.
Path Parameters
- id stringRequired
The unique identifier of the task.
Responses
200
Task subgraph retrieved successfully.
- application/json object
application/json properties
- edges array of objects
edges properties
- attrs object
- source string
- target string
-
- taskId string
- vertices array of objects
vertices properties
- task object
task properties
- id string
The unique identifier assigned to the task by the service.
- key string
An optional expression used to generate a domain-specific workflow instance identifier.
- name stringRequired Filterable
The name that identifies the workflow definition. Combined with
version, the name forms a unique identifier for the task. - start object
The start definition for a workflow, including optional schedule configuration.
One of:- object
A scheduled workflow start definition.
properties
- schedule string|objectRequiredOne of:
- string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created. UTC timezone is assumed.
- object
A structured schedule definition with optional recurrence, date range, and timezone.
properties
- cron string|objectOne of:
- string
A cron expression defining when workflow instances should be created automatically.
- object
properties
- expression stringRequired
A cron expression describing when the workflow instance should be created.
- validUntil string
The date and time (ISO 8601 format) after which this cron expression is no longer active.
-
-
- interval string
A repeating time interval in ISO 8601 format that defines when workflow instances are automatically created.
- timezone string
The timezone name used to evaluate the interval and cron expression. Defaults to
UTC. - recurrence string
An RRULE recurrence rule string defining when the workflow recurs.
- endDateTime string
The date and time (ISO 8601 format) when the workflow schedule ends.
- startDateTime string
The date and time (ISO 8601 format) when the workflow schedule begins.
-
-
- stateName string
The name of the starting workflow state.
-
-
- events array of objects
CloudEvent definitions for the workflow. Defines the events that can be consumed or produced by the workflow.
events properties
- name string
A unique name identifying this event definition within the workflow.
- type string
The CloudEvents type attribute identifying the kind of event.
Can be one of: "com.qlik.v1.task.run.finished""com.qlik/active-analytics-orch"
- source string
The CloudEvents source attribute identifying the origin of the event.
Can be one of: "system-events.task""dataset.updated"
- dataOnly boolean
When
true, only the event payload is accessible to consuming workflow states. Whenfalse, both the payload and context attributes are accessible. - correlation array of objects
Correlation definitions used to match incoming CloudEvents to this workflow instance.
correlation properties
- contextAttributeName stringRequired
The name of the CloudEvent extension context attribute to match on.
Can be one of: "id""status""appId""spaceId""datasetId"
- contextAttributeValue string
The expected value of the CloudEvent extension context attribute.
-
-
- states array of objects
The list of state definitions that compose the workflow.
states properties
- end boolean
Marks this state as a terminal state in the workflow.
- name string
The name of this state, unique within the workflow.
- type string
The state type. Must be
EVENTfor event-driven states.Can be one of: "EVENT"
- onEvents array of objects
The events to consume and the optional actions to perform when they are received.
onEvents properties
- actions array of objects
Actions to perform when the matched events are consumed.
actions properties
- name string
A unique name for this action within the workflow.
- retryRef string
A reference to a defined workflow retry policy. If absent, the default retry policy applies.
- condition string
An expression that must evaluate to
truefor this action to be performed. Whenfalse, the action is skipped. - functionRef object
A reference to a function to invoke, either as a name string or a structured object.
One of:- string
The name of the referenced function.
- object
A structured function reference with arguments and invocation options.
properties
- invoke string
Specifies whether the function is invoked synchronously or asynchronously.
Can be one of: "SYNC""ASYNC"
- refName stringRequired
The name of the function to invoke.
Can be one of: "app.reload"
- arguments object
Arguments to pass to the function. The
app.reloadfunction accepts:appId(string, required): The ID of the app to reload.partial(boolean, defaultfalse): Whether to perform a partial reload.weight(integer,1to10, default1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of10starts sooner than a weight of1. It does not affect the reload once running. Apps in personal spaces always run with weight1. Values outside1to10are rejected.
- selectionSet string
A GraphQL selection set string. Only applicable when the function type is
graphql.
-
-
- retryableErrors array of strings
Workflow error references for which this action must be retried. Used only when
autoRetriesisfalse. - nonRetryableErrors array of strings
Workflow error references for which this action must not be retried. Used only when
autoRetriesistrue.
-
- eventRefs array of stringsRequired
References to one or more unique event names defined in the workflow events list.
- actionMode string
Specifies whether actions are performed sequentially or in parallel.
Can be one of: "SEQUENTIAL""PARALLEL"
-
- timeouts object
State-specific timeout durations.
timeouts properties
- eventTimeout string
The maximum duration to wait for the defined events to be received, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- stateExecTimeout string
The maximum duration for executing this state, expressed as an ISO 8601 duration string or an expression that evaluates to one.
- actionExecTimeout string
The maximum duration for executing a single action, expressed as an ISO 8601 duration string or an expression that evaluates to one.
-
- exclusive boolean
When
true, consuming any one of the defined events causes its associated actions to execute. Whenfalse, all defined events must be consumed before actions are performed. - compensatedBy string
The unique name of a workflow state responsible for compensating this state if it fails.
-
- enabled boolean
Indicates whether the task is enabled. Disabled tasks will not trigger automatically.
- version string
The semantic version of the workflow definition.
- metadata object
metadata properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdAt string
The UTC timestamp when the task was created.
- createdBy string
The user ID of the user who created the task.
- deletedAt string
The UTC timestamp when the task was deleted.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- keepActive boolean
When
true, workflow instances are not terminated when there are no active execution paths. Instances can be ended via a terminate end definition or a configuredworkflowExecTimeout. - resourceId string
The unique identifier of the resource this task operates on. The value supplied in a request body is ignored and is derived automatically from
states. - annotations array of strings
A list of terms describing the workflow's intended purpose, subject areas, or other important qualities.
- description string
A human-readable description of the workflow's purpose.
- specVersion stringRequired
The Serverless Workflow specification version used by this task.
-
- attrs object
- taskId string
-
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.getTaskSubgraph( 'string', {},)qlik scheduling task graph subgraph 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/{id}/graphs/subgraph" \-H "Authorization: Bearer <access_token>"Example Response
{ "edges": [ { "attrs": { "depth": 1 }, "source": "22222222-2222-2222-2222-222222222222", "target": "11111111-1111-1111-1111-111111111111" } ], "taskId": "11111111-1111-1111-1111-111111111111", "vertices": [ { "attrs": { "depth": 0, "isChild": false, "isParent": true }, "taskId": "11111111-1111-1111-1111-111111111111" }, { "attrs": { "depth": 1, "isChild": true, "isParent": false }, "taskId": "22222222-2222-2222-2222-222222222222" } ]}Retrieves a paginated list of execution runs for the specified task, ordered by most recent run by default. Each run record includes the start and end time, status, and the identity that triggered it.
Facts
| Rate limit | Tier 1 (1000 requests per minute) | |
| Replaces |
Query Parameters
- limit integer
Maximum number of task runs to return per page.
- page string
Cursor token for fetching the next page of results.
- sort string
Field and direction to sort results by. Prefix the field name with
+for ascending or-for descending order. Defaults to-startedAt.Can be one of: "+startedAt""-startedAt""+endedAt""-endedAt""+status""-status""+taskId""-taskId""+actionId""-actionId"
Path Parameters
- id stringRequired
The unique identifier of the task.
Responses
200
Task runs retrieved successfully.
- application/json object
application/json properties
- data array of objects
data properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
- log string
The raw log output from the task run.
- taskId stringRequired
The unique identifier of the task.
- actionId stringRequired
The unique identifier of the action that was executed.
- taskMeta objectRequired
taskMeta properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdAt string
The UTC timestamp when the task was created.
- createdBy string
The user ID of the user who created the task.
- deletedAt string
The UTC timestamp when the task was deleted.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- taskName stringRequired
The name of the task at the time it was run.
- resourceId stringRequired
The unique identifier of the resource the task operated on.
-
- links object
links properties
- next object
next properties
- href stringRequired
The URL of the linked resource.
-
- prev object
prev properties
- href stringRequired
The URL of the linked resource.
-
- self object
self properties
- href stringRequired
The URL of the linked resource.
-
-
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.getTaskRuns( 'string', {},)qlik scheduling task run ls 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/{id}/runs" \-H "Authorization: Bearer <access_token>"Example Response
{ "data": [ { "id": "0c42b269-51d4-453a-a8ea-55734d209aa9", "status": "SUCCEEDED", "endedAt": "2018-03-20T09:12:28Z", "workerId": "550e8400-e29b-41d4-a716-446655440000", "startedAt": "2018-03-20T09:12:28Z", "executedAs": "z1w_5hWRq-wIxXON_slIRrsF0YxpYjA", "workerType": "reloads", "triggeredBy": "manual", "log": "string", "taskId": "string", "actionId": "string", "taskMeta": { "usage": "ANALYTICS", "ownerId": "z1w_5hWRq-wIxXON_slIRrsF0YxpYjA", "spaceId": "434f9f7c-4eeb-43f0-8f08-88b91f357c07", "trigger": { "id": "0c42b269-51d4-453a-a8ea-55734d209aa9", "type": 1 }, "tenantId": "rpxzti_ptV0RS4eGPSsaI0SCKl-6h2a", "topology": { "isChild": false, "isParent": true }, "createdAt": "2018-03-20T09:12:28Z", "createdBy": "LP_LlaXYhUUWMr5csy8pFfTHecXePH5Z", "deletedAt": "2018-03-20T09:12:28Z", "spaceType": "shared", "updatedAt": "2018-03-20T09:12:28Z", "disabledCode": "MANUALLY", "migratedFrom": "c7dba73-dd5a-4725-9dd2-8bd9c8d126d7", "resourceName": "sample app", "resourceType": "app", "orchestration": { "id": "0c42b269-51d4-453a-a8ea-55734d209aa9", "type": 3, "attrs": { "last_run_status": "SUCCEEDED", "last_run_worker_type": "reloads" }, "lastRun": { "id": "0c42b269-51d4-453a-a8ea-55734d209aa9", "status": "SUCCEEDED", "endedAt": "2018-03-20T09:12:28Z", "workerId": "550e8400-e29b-41d4-a716-446655440000", "startedAt": "2018-03-20T09:12:28Z", "executedAs": "z1w_5hWRq-wIxXON_slIRrsF0YxpYjA", "workerType": "reloads", "triggeredBy": "manual" } }, "scriptOwnerId": "z1w_5hWRq-wIxXON_slIRrsF0YxpYjA", "resourceSubType": "script" }, "taskName": "string", "resourceId": "string" } ], "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" } }}Retrieves the execution log for a specific task run. Set the Accept header to text/plain to receive the raw log as a downloadable file, or application/json (default) to receive it wrapped in a JSON object with a logContent field.
Facts
| Rate limit | Tier 1 (1000 requests per minute) | |
| Replaces |
Header Parameters
- Accept string
The preferred response format for the log content.
Can be one of: "application/json""text/plain"
Path Parameters
- id stringRequired
The unique identifier of the task.
- runId stringRequired
The unique identifier of the task run.
Responses
200
Task run log retrieved successfully.
- text/plain object
text/plain properties
- logContent string
-
200
Task run log retrieved successfully.
- application/json object
application/json properties
- logContent string
Log content in plain text format.
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.getTaskRunLog( 'string', 'string',)qlik scheduling task run log \ --taskId 'string' \ --runId 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/{id}/runs/{runId}/log" \-H "Authorization: Bearer <access_token>"Example Response
[object Object]Retrieves the most recent execution run for the specified task. Returns a 404 response if the task has never been run. Use this operation to quickly check whether the last run succeeded or failed without paginating through the full run history.
Facts
| Rate limit | Tier 1 (1000 requests per minute) | |
| Replaces |
Path Parameters
- id stringRequired
The unique identifier of the task.
Responses
200
Last task run retrieved successfully.
- application/json object
application/json properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
- log string
The raw log output from the task run.
- taskId stringRequired
The unique identifier of the task.
- actionId stringRequired
The unique identifier of the action that was executed.
- taskMeta objectRequired
taskMeta properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdAt string
The UTC timestamp when the task was created.
- createdBy string
The user ID of the user who created the task.
- deletedAt string
The UTC timestamp when the task was deleted.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- taskName stringRequired
The name of the task at the time it was run.
- resourceId stringRequired
The unique identifier of the resource the task operated on.
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.getTaskLastRun( 'string',)qlik scheduling task run last 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/{id}/runs/last" \-H "Authorization: Bearer <access_token>"Example Response
{ "id": "0c42b269-51d4-453a-a8ea-55734d209aa9", "status": "SUCCEEDED", "endedAt": "2018-03-20T09:12:28Z", "workerId": "550e8400-e29b-41d4-a716-446655440000", "startedAt": "2018-03-20T09:12:28Z", "executedAs": "z1w_5hWRq-wIxXON_slIRrsF0YxpYjA", "workerType": "reloads", "triggeredBy": "manual", "log": "string", "taskId": "string", "actionId": "string", "taskMeta": { "usage": "ANALYTICS", "ownerId": "z1w_5hWRq-wIxXON_slIRrsF0YxpYjA", "spaceId": "434f9f7c-4eeb-43f0-8f08-88b91f357c07", "trigger": { "id": "0c42b269-51d4-453a-a8ea-55734d209aa9", "type": 1 }, "tenantId": "rpxzti_ptV0RS4eGPSsaI0SCKl-6h2a", "topology": { "isChild": false, "isParent": true }, "createdAt": "2018-03-20T09:12:28Z", "createdBy": "LP_LlaXYhUUWMr5csy8pFfTHecXePH5Z", "deletedAt": "2018-03-20T09:12:28Z", "spaceType": "shared", "updatedAt": "2018-03-20T09:12:28Z", "disabledCode": "MANUALLY", "migratedFrom": "c7dba73-dd5a-4725-9dd2-8bd9c8d126d7", "resourceName": "sample app", "resourceType": "app", "orchestration": { "id": "0c42b269-51d4-453a-a8ea-55734d209aa9", "type": 3, "attrs": { "last_run_status": "SUCCEEDED", "last_run_worker_type": "reloads" }, "lastRun": { "id": "0c42b269-51d4-453a-a8ea-55734d209aa9", "status": "SUCCEEDED", "endedAt": "2018-03-20T09:12:28Z", "workerId": "550e8400-e29b-41d4-a716-446655440000", "startedAt": "2018-03-20T09:12:28Z", "executedAs": "z1w_5hWRq-wIxXON_slIRrsF0YxpYjA", "workerType": "reloads", "triggeredBy": "manual" } }, "scriptOwnerId": "z1w_5hWRq-wIxXON_slIRrsF0YxpYjA", "resourceSubType": "script" }, "taskName": "string", "resourceId": "string"}Retrieves a paginated list of task runs for a given resource, identified by id. Returns run history across all tasks associated with that resource, ordered by the most recent run by default.
Facts
| Rate limit | Tier 1 (1000 requests per minute) | |
| Replaces |
Query Parameters
- limit integer
Maximum number of task runs to return per page.
- page string
Cursor token for fetching the next page of results.
- sort string
Field and direction to sort results by. Prefix the field name with
+for ascending or-for descending order. Defaults to-startedAt.Can be one of: "+startedAt""-startedAt""+endedAt""-endedAt""+status""-status""+taskId""-taskId""+actionId""-actionId"
Path Parameters
- id stringRequired
The unique identifier of the resource to retrieve task runs for.
Responses
200
Task runs retrieved successfully.
- application/json object
application/json properties
- data array of objects
data properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
- log string
The raw log output from the task run.
- taskId stringRequired
The unique identifier of the task.
- actionId stringRequired
The unique identifier of the action that was executed.
- taskMeta objectRequired
taskMeta properties
- usage string
The product domain in which the resource is used. Defaults to
ANALYTICSwhen not present.Can be one of: "ANALYTICS""DATA_PREPARATION""DATAFLOW_PREP""SINGLE_TABLE_PREP"
- ownerId string
The user ID of the task owner.
- spaceId string
The unique identifier of the space the task operates in.
- trigger object
trigger properties
- id stringRequired
The unique identifier of the trigger associated with this task.
- type integerRequired
The type identifier of the trigger associated with this task.
Can be one of: 01234
-
- tenantId string
The unique identifier of the tenant the task operates in.
- topology object
Indicates the task's position in a dependency graph.
topology properties
- isChild boolean
When
true, this task is triggered by one or more parent tasks. - isParent boolean
When
true, this task has one or more downstream dependent tasks.
-
- createdAt string
The UTC timestamp when the task was created.
- createdBy string
The user ID of the user who created the task.
- deletedAt string
The UTC timestamp when the task was deleted.
- spaceType string
The type of space the task operates in.
Can be one of: "personal""shared""managed"
- updatedAt string
The UTC timestamp when the task was last updated.
- disabledCode string
The reason the task is currently disabled.
SCHEDULE-EXPIREDis reserved for tasks migrated from a legacy reload-task whose schedule had already ended; it is stripped when supplied on create or update.Can be one of: "MANUALLY""CONSECUTIVE-FAILURES""APP-SCRIPT-UPDATED""OWNER-DELETED""OWNER-DISABLED""APP-MOVED-SPACE""OWNER-MOVED""SCHEDULE-EXPIRED"
- migratedFrom string
The unique identifier of the legacy reload task this task was migrated from, if applicable.
- resourceName string
The name of the resource on which the task was created.
- resourceType string
The type of resource on which the task was created.
- orchestration object
orchestration properties
- id stringRequired
The unique identifier of the orchestration instance associated with this task in the scheduling service.
- type integerRequired
The type identifier of the orchestration system handling this task.
Can be one of: 0123
- attrs object
Additional attributes of the orchestration instance associated with this task in the scheduling service.
additional optional properties
- string string
-
- lastRun object
lastRun properties
- id stringRequired
The unique identifier of the task run.
- status stringRequired
The current status of the task run.
Can be one of: "RUNNING""SUCCEEDED""FAILED"
- endedAt string
The UTC timestamp when the task run ended.
- workerId stringRequired
The unique identifier of the worker that executed the job. For example, a reload run carries the reload ID from the engine, and an automation run carries the automation run ID.
- startedAt string
The UTC timestamp when the task run started.
- executedAs string
The user ID of the user on whose behalf the task was executed.
- workerType stringRequired
The type or name of the target system that executed the run.
- triggeredBy stringRequired
The identity or event that triggered the task run.
-
-
- scriptOwnerId string
The user ID of the owner whose script context is used when running the task.
- resourceSubType string
The subtype of resource on which the task was created.
-
- taskName stringRequired
The name of the task at the time it was run.
- resourceId stringRequired
The unique identifier of the resource the task operated on.
-
- links object
links properties
- next object
next properties
- href stringRequired
The URL of the linked resource.
-
- prev object
prev properties
- href stringRequired
The URL of the linked resource.
-
- self object
self properties
- href stringRequired
The URL of the linked resource.
-
-
-
400
The request is malformed or contains invalid parameters.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
401
Authentication credentials are missing or invalid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
403
Access denied. You lack permission to perform this operation.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
404
The requested resource was not found.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
500
An unexpected error occurred on the server.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
503
The service is temporarily unavailable. Retry the request after a short delay.
- application/json object
application/json properties
- errors array of objects
errors properties
- code integer
- inner object
inner properties
- code integer
- inner object
- title string
- result any
- context string
- timestamp string
-
- title string
- result any
- context string
- timestamp string
-
- traceId string
A trace identifier for correlating the error to a specific service request.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.scheduling.tasks.getTaskResourceRuns( 'string', {},)qlik scheduling task resource-runs 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/scheduling/tasks/resources/{id}/runs" \-H "Authorization: Bearer <access_token>"Example Response
{ "data": [ { "id": "0c42b269-51d4-453a-a8ea-55734d209aa9", "status": "SUCCEEDED", "endedAt": "2018-03-20T09:12:28Z", "workerId": "550e8400-e29b-41d4-a716-446655440000", "startedAt": "2018-03-20T09:12:28Z", "executedAs": "z1w_5hWRq-wIxXON_slIRrsF0YxpYjA", "workerType": "reloads", "triggeredBy": "manual", "log": "string", "taskId": "string", "actionId": "string", "taskMeta": { "usage": "ANALYTICS", "ownerId": "z1w_5hWRq-wIxXON_slIRrsF0YxpYjA", "spaceId": "434f9f7c-4eeb-43f0-8f08-88b91f357c07", "trigger": { "id": "0c42b269-51d4-453a-a8ea-55734d209aa9", "type": 1 }, "tenantId": "rpxzti_ptV0RS4eGPSsaI0SCKl-6h2a", "topology": { "isChild": false, "isParent": true }, "createdAt": "2018-03-20T09:12:28Z", "createdBy": "LP_LlaXYhUUWMr5csy8pFfTHecXePH5Z", "deletedAt": "2018-03-20T09:12:28Z", "spaceType": "shared", "updatedAt": "2018-03-20T09:12:28Z", "disabledCode": "MANUALLY", "migratedFrom": "c7dba73-dd5a-4725-9dd2-8bd9c8d126d7", "resourceName": "sample app", "resourceType": "app", "orchestration": { "id": "0c42b269-51d4-453a-a8ea-55734d209aa9", "type": 3, "attrs": { "last_run_status": "SUCCEEDED", "last_run_worker_type": "reloads" }, "lastRun": { "id": "0c42b269-51d4-453a-a8ea-55734d209aa9", "status": "SUCCEEDED", "endedAt": "2018-03-20T09:12:28Z", "workerId": "550e8400-e29b-41d4-a716-446655440000", "startedAt": "2018-03-20T09:12:28Z", "executedAs": "z1w_5hWRq-wIxXON_slIRrsF0YxpYjA", "workerType": "reloads", "triggeredBy": "manual" } }, "scriptOwnerId": "z1w_5hWRq-wIxXON_slIRrsF0YxpYjA", "resourceSubType": "script" }, "taskName": "string", "resourceId": "string" } ], "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" } }}