List tasks

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, and triggerType.

  • 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
    Show application/json properties
    • data array of objects
      Show 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 string
        Required 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.

          Show properties
          • schedule string|object
            Required
            One 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.

              Show properties
              • cron string|object
                One of:
                • string

                  A cron expression defining when workflow instances should be created automatically.

                • object
                  Show properties
                  • expression string
                    Required

                    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.

        Show 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. When false, both the payload and context attributes are accessible.

        • correlation array of objects

          Correlation definitions used to match incoming CloudEvents to this workflow instance.

          Show correlation properties
          • contextAttributeName string
            Required

            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.

        Show 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 EVENT for 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.

          Show onEvents properties
          • actions array of objects

            Actions to perform when the matched events are consumed.

            Show 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 true for this action to be performed. When false, 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.

                Show properties
                • invoke string

                  Specifies whether the function is invoked synchronously or asynchronously.

                  Can be one of: "SYNC""ASYNC"

                • refName string
                  Required

                  The name of the function to invoke.

                  Can be one of: "app.reload"

                • arguments object

                  Arguments to pass to the function. The app.reload function accepts:

                  • appId (string, required): The ID of the app to reload.
                  • partial (boolean, default false): Whether to perform a partial reload.
                  • weight (integer, 1 to 10, default 1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of 10 starts sooner than a weight of 1. It does not affect the reload once running. Apps in personal spaces always run with weight 1. Values outside 1 to 10 are 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 autoRetries is false.

            • nonRetryableErrors array of strings

              Workflow error references for which this action must not be retried. Used only when autoRetries is true.

          • eventRefs array of strings
            Required

            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.

          Show 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. When false, 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
        Show metadata properties
        • usage string

          The product domain in which the resource is used. Defaults to ANALYTICS when 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
          Show trigger properties
          • id string
            Required

            The unique identifier of the trigger associated with this task.

          • type integer
            Required

            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.

          Show 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-EXPIRED is 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
          Show orchestration properties
          • id string
            Required

            The unique identifier of the orchestration instance associated with this task in the scheduling service.

          • type integer
            Required

            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.

            Show additional optional properties
            • string string
          • lastRun object
            Show lastRun properties
            • id string
              Required

              The unique identifier of the task run.

            • status string
              Required

              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 string
              Required

              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 string
              Required

              The type or name of the target system that executed the run.

            • triggeredBy string
              Required

              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 configured workflowExecTimeout.

      • 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 string
        Required

        The Serverless Workflow specification version used by this task.

    • links object
      Show links properties
      • next object
        Show next properties
        • href string
          Required

          The URL of the linked resource.

      • prev object
        Show prev properties
        • href string
          Required

          The URL of the linked resource.

      • self object
        Show self properties
        • href string
          Required

          The URL of the linked resource.

400

The request is malformed or contains invalid parameters.

  • application/json object
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

GET /api/scheduling/tasks
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 ls
curl "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"
}
}
}

Create a task

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
    Show application/json properties
    • key string

      An optional expression used to generate a domain-specific workflow instance identifier.

    • name string
      Required 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.

        Show properties
        • schedule string|object
          Required
          One 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.

            Show properties
            • cron string|object
              One of:
              • string

                A cron expression defining when workflow instances should be created automatically.

              • object
                Show properties
                • expression string
                  Required

                  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.

      Show 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. When false, both the payload and context attributes are accessible.

      • correlation array of objects

        Correlation definitions used to match incoming CloudEvents to this workflow instance.

        Show correlation properties
        • contextAttributeName string
          Required

          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.

      Show 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 EVENT for 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.

        Show onEvents properties
        • actions array of objects

          Actions to perform when the matched events are consumed.

          Show 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 true for this action to be performed. When false, 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.

              Show properties
              • invoke string

                Specifies whether the function is invoked synchronously or asynchronously.

                Can be one of: "SYNC""ASYNC"

              • refName string
                Required

                The name of the function to invoke.

                Can be one of: "app.reload"

              • arguments object

                Arguments to pass to the function. The app.reload function accepts:

                • appId (string, required): The ID of the app to reload.
                • partial (boolean, default false): Whether to perform a partial reload.
                • weight (integer, 1 to 10, default 1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of 10 starts sooner than a weight of 1. It does not affect the reload once running. Apps in personal spaces always run with weight 1. Values outside 1 to 10 are 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 autoRetries is false.

          • nonRetryableErrors array of strings

            Workflow error references for which this action must not be retried. Used only when autoRetries is true.

        • eventRefs array of strings
          Required

          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.

        Show 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. When false, 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
      Show metadata properties
      • usage string

        The product domain in which the resource is used. Defaults to ANALYTICS when 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
        Show trigger properties
        • id string
          Required

          The unique identifier of the trigger associated with this task.

        • type integer
          Required

          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.

        Show 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-EXPIRED is 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
        Show orchestration properties
        • id string
          Required

          The unique identifier of the orchestration instance associated with this task in the scheduling service.

        • type integer
          Required

          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.

          Show additional optional properties
          • string string
        • lastRun object
          Show lastRun properties
          • id string
            Required

            The unique identifier of the task run.

          • status string
            Required

            The current status of the task run.

            Can be one of: "RUNNING""SUCCEEDED""FAILED"

          • workerId string
            Required

            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 string
            Required

            The type or name of the target system that executed the run.

          • triggeredBy string
            Required

            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 configured workflowExecTimeout.

    • 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 string
      Required

      The Serverless Workflow specification version used by this task.

Responses

201

Task created successfully.

  • application/json object
    Show 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 string
      Required 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.

        Show properties
        • schedule string|object
          Required
          One 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.

            Show properties
            • cron string|object
              One of:
              • string

                A cron expression defining when workflow instances should be created automatically.

              • object
                Show properties
                • expression string
                  Required

                  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.

      Show 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. When false, both the payload and context attributes are accessible.

      • correlation array of objects

        Correlation definitions used to match incoming CloudEvents to this workflow instance.

        Show correlation properties
        • contextAttributeName string
          Required

          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.

      Show 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 EVENT for 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.

        Show onEvents properties
        • actions array of objects

          Actions to perform when the matched events are consumed.

          Show 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 true for this action to be performed. When false, 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.

              Show properties
              • invoke string

                Specifies whether the function is invoked synchronously or asynchronously.

                Can be one of: "SYNC""ASYNC"

              • refName string
                Required

                The name of the function to invoke.

                Can be one of: "app.reload"

              • arguments object

                Arguments to pass to the function. The app.reload function accepts:

                • appId (string, required): The ID of the app to reload.
                • partial (boolean, default false): Whether to perform a partial reload.
                • weight (integer, 1 to 10, default 1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of 10 starts sooner than a weight of 1. It does not affect the reload once running. Apps in personal spaces always run with weight 1. Values outside 1 to 10 are 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 autoRetries is false.

          • nonRetryableErrors array of strings

            Workflow error references for which this action must not be retried. Used only when autoRetries is true.

        • eventRefs array of strings
          Required

          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.

        Show 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. When false, 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
      Show metadata properties
      • usage string

        The product domain in which the resource is used. Defaults to ANALYTICS when 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
        Show trigger properties
        • id string
          Required

          The unique identifier of the trigger associated with this task.

        • type integer
          Required

          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.

        Show 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-EXPIRED is 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
        Show orchestration properties
        • id string
          Required

          The unique identifier of the orchestration instance associated with this task in the scheduling service.

        • type integer
          Required

          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.

          Show additional optional properties
          • string string
        • lastRun object
          Show lastRun properties
          • id string
            Required

            The unique identifier of the task run.

          • status string
            Required

            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 string
            Required

            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 string
            Required

            The type or name of the target system that executed the run.

          • triggeredBy string
            Required

            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 configured workflowExecTimeout.

    • 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 string
      Required

      The Serverless Workflow specification version used by this task.

400

The request is malformed or contains invalid parameters.

  • application/json object
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

POST /api/scheduling/tasks
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"
}

Get a task

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 string
    Required

    The unique identifier of the task to retrieve.

Responses

200

Task details retrieved successfully.

  • application/json object
    Show 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 string
      Required 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.

        Show properties
        • schedule string|object
          Required
          One 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.

            Show properties
            • cron string|object
              One of:
              • string

                A cron expression defining when workflow instances should be created automatically.

              • object
                Show properties
                • expression string
                  Required

                  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.

      Show 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. When false, both the payload and context attributes are accessible.

      • correlation array of objects

        Correlation definitions used to match incoming CloudEvents to this workflow instance.

        Show correlation properties
        • contextAttributeName string
          Required

          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.

      Show 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 EVENT for 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.

        Show onEvents properties
        • actions array of objects

          Actions to perform when the matched events are consumed.

          Show 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 true for this action to be performed. When false, 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.

              Show properties
              • invoke string

                Specifies whether the function is invoked synchronously or asynchronously.

                Can be one of: "SYNC""ASYNC"

              • refName string
                Required

                The name of the function to invoke.

                Can be one of: "app.reload"

              • arguments object

                Arguments to pass to the function. The app.reload function accepts:

                • appId (string, required): The ID of the app to reload.
                • partial (boolean, default false): Whether to perform a partial reload.
                • weight (integer, 1 to 10, default 1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of 10 starts sooner than a weight of 1. It does not affect the reload once running. Apps in personal spaces always run with weight 1. Values outside 1 to 10 are 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 autoRetries is false.

          • nonRetryableErrors array of strings

            Workflow error references for which this action must not be retried. Used only when autoRetries is true.

        • eventRefs array of strings
          Required

          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.

        Show 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. When false, 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
      Show metadata properties
      • usage string

        The product domain in which the resource is used. Defaults to ANALYTICS when 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
        Show trigger properties
        • id string
          Required

          The unique identifier of the trigger associated with this task.

        • type integer
          Required

          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.

        Show 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-EXPIRED is 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
        Show orchestration properties
        • id string
          Required

          The unique identifier of the orchestration instance associated with this task in the scheduling service.

        • type integer
          Required

          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.

          Show additional optional properties
          • string string
        • lastRun object
          Show lastRun properties
          • id string
            Required

            The unique identifier of the task run.

          • status string
            Required

            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 string
            Required

            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 string
            Required

            The type or name of the target system that executed the run.

          • triggeredBy string
            Required

            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 configured workflowExecTimeout.

    • 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 string
      Required

      The Serverless Workflow specification version used by this task.

400

The request is malformed or contains invalid parameters.

  • application/json object
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

GET /api/scheduling/tasks/{id}
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"
}

Patch a task

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 string
    Required

    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.

    Show application/json properties
    • op string
      Required

      The patch operation to perform.

      Can be one of: "add""remove""replace""move""copy"

    • path string
      Required

      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
    Show 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 string
      Required 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.

        Show properties
        • schedule string|object
          Required
          One 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.

            Show properties
            • cron string|object
              One of:
              • string

                A cron expression defining when workflow instances should be created automatically.

              • object
                Show properties
                • expression string
                  Required

                  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.

      Show 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. When false, both the payload and context attributes are accessible.

      • correlation array of objects

        Correlation definitions used to match incoming CloudEvents to this workflow instance.

        Show correlation properties
        • contextAttributeName string
          Required

          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.

      Show 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 EVENT for 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.

        Show onEvents properties
        • actions array of objects

          Actions to perform when the matched events are consumed.

          Show 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 true for this action to be performed. When false, 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.

              Show properties
              • invoke string

                Specifies whether the function is invoked synchronously or asynchronously.

                Can be one of: "SYNC""ASYNC"

              • refName string
                Required

                The name of the function to invoke.

                Can be one of: "app.reload"

              • arguments object

                Arguments to pass to the function. The app.reload function accepts:

                • appId (string, required): The ID of the app to reload.
                • partial (boolean, default false): Whether to perform a partial reload.
                • weight (integer, 1 to 10, default 1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of 10 starts sooner than a weight of 1. It does not affect the reload once running. Apps in personal spaces always run with weight 1. Values outside 1 to 10 are 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 autoRetries is false.

          • nonRetryableErrors array of strings

            Workflow error references for which this action must not be retried. Used only when autoRetries is true.

        • eventRefs array of strings
          Required

          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.

        Show 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. When false, 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
      Show metadata properties
      • usage string

        The product domain in which the resource is used. Defaults to ANALYTICS when 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
        Show trigger properties
        • id string
          Required

          The unique identifier of the trigger associated with this task.

        • type integer
          Required

          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.

        Show 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-EXPIRED is 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
        Show orchestration properties
        • id string
          Required

          The unique identifier of the orchestration instance associated with this task in the scheduling service.

        • type integer
          Required

          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.

          Show additional optional properties
          • string string
        • lastRun object
          Show lastRun properties
          • id string
            Required

            The unique identifier of the task run.

          • status string
            Required

            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 string
            Required

            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 string
            Required

            The type or name of the target system that executed the run.

          • triggeredBy string
            Required

            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 configured workflowExecTimeout.

    • 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 string
      Required

      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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

PATCH /api/scheduling/tasks/{id}
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"
}

Replace a task

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 string
    Required

    The unique identifier of the task to replace.

Request Body

Required
  • application/json object
    Show application/json properties
    • key string

      An optional expression used to generate a domain-specific workflow instance identifier.

    • name string
      Required 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.

        Show properties
        • schedule string|object
          Required
          One 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.

            Show properties
            • cron string|object
              One of:
              • string

                A cron expression defining when workflow instances should be created automatically.

              • object
                Show properties
                • expression string
                  Required

                  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.

      Show 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. When false, both the payload and context attributes are accessible.

      • correlation array of objects

        Correlation definitions used to match incoming CloudEvents to this workflow instance.

        Show correlation properties
        • contextAttributeName string
          Required

          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.

      Show 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 EVENT for 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.

        Show onEvents properties
        • actions array of objects

          Actions to perform when the matched events are consumed.

          Show 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 true for this action to be performed. When false, 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.

              Show properties
              • invoke string

                Specifies whether the function is invoked synchronously or asynchronously.

                Can be one of: "SYNC""ASYNC"

              • refName string
                Required

                The name of the function to invoke.

                Can be one of: "app.reload"

              • arguments object

                Arguments to pass to the function. The app.reload function accepts:

                • appId (string, required): The ID of the app to reload.
                • partial (boolean, default false): Whether to perform a partial reload.
                • weight (integer, 1 to 10, default 1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of 10 starts sooner than a weight of 1. It does not affect the reload once running. Apps in personal spaces always run with weight 1. Values outside 1 to 10 are 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 autoRetries is false.

          • nonRetryableErrors array of strings

            Workflow error references for which this action must not be retried. Used only when autoRetries is true.

        • eventRefs array of strings
          Required

          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.

        Show 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. When false, 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
      Show metadata properties
      • usage string

        The product domain in which the resource is used. Defaults to ANALYTICS when 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
        Show trigger properties
        • id string
          Required

          The unique identifier of the trigger associated with this task.

        • type integer
          Required

          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.

        Show 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-EXPIRED is 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
        Show orchestration properties
        • id string
          Required

          The unique identifier of the orchestration instance associated with this task in the scheduling service.

        • type integer
          Required

          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.

          Show additional optional properties
          • string string
        • lastRun object
          Show lastRun properties
          • id string
            Required

            The unique identifier of the task run.

          • status string
            Required

            The current status of the task run.

            Can be one of: "RUNNING""SUCCEEDED""FAILED"

          • workerId string
            Required

            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 string
            Required

            The type or name of the target system that executed the run.

          • triggeredBy string
            Required

            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 configured workflowExecTimeout.

    • 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 string
      Required

      The Serverless Workflow specification version used by this task.

Responses

200

Task replaced successfully.

  • application/json object
    Show 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 string
      Required 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.

        Show properties
        • schedule string|object
          Required
          One 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.

            Show properties
            • cron string|object
              One of:
              • string

                A cron expression defining when workflow instances should be created automatically.

              • object
                Show properties
                • expression string
                  Required

                  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.

      Show 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. When false, both the payload and context attributes are accessible.

      • correlation array of objects

        Correlation definitions used to match incoming CloudEvents to this workflow instance.

        Show correlation properties
        • contextAttributeName string
          Required

          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.

      Show 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 EVENT for 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.

        Show onEvents properties
        • actions array of objects

          Actions to perform when the matched events are consumed.

          Show 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 true for this action to be performed. When false, 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.

              Show properties
              • invoke string

                Specifies whether the function is invoked synchronously or asynchronously.

                Can be one of: "SYNC""ASYNC"

              • refName string
                Required

                The name of the function to invoke.

                Can be one of: "app.reload"

              • arguments object

                Arguments to pass to the function. The app.reload function accepts:

                • appId (string, required): The ID of the app to reload.
                • partial (boolean, default false): Whether to perform a partial reload.
                • weight (integer, 1 to 10, default 1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of 10 starts sooner than a weight of 1. It does not affect the reload once running. Apps in personal spaces always run with weight 1. Values outside 1 to 10 are 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 autoRetries is false.

          • nonRetryableErrors array of strings

            Workflow error references for which this action must not be retried. Used only when autoRetries is true.

        • eventRefs array of strings
          Required

          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.

        Show 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. When false, 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
      Show metadata properties
      • usage string

        The product domain in which the resource is used. Defaults to ANALYTICS when 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
        Show trigger properties
        • id string
          Required

          The unique identifier of the trigger associated with this task.

        • type integer
          Required

          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.

        Show 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-EXPIRED is 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
        Show orchestration properties
        • id string
          Required

          The unique identifier of the orchestration instance associated with this task in the scheduling service.

        • type integer
          Required

          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.

          Show additional optional properties
          • string string
        • lastRun object
          Show lastRun properties
          • id string
            Required

            The unique identifier of the task run.

          • status string
            Required

            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 string
            Required

            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 string
            Required

            The type or name of the target system that executed the run.

          • triggeredBy string
            Required

            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 configured workflowExecTimeout.

    • 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 string
      Required

      The Serverless Workflow specification version used by this task.

400

The request is malformed or contains invalid parameters.

  • application/json object
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

PUT /api/scheduling/tasks/{id}
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"
}

Delete a task

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 string
    Required

    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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

DELETE /api/scheduling/tasks/{id}
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>"

Start a task

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 string
    Required

    The unique identifier of the task to start.

Responses

200

Task started successfully.

  • application/json object
    Show application/json properties
    • message string

400

The request is malformed or contains invalid parameters.

  • application/json object
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

POST /api/scheduling/tasks/{id}/actions/start
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"
}

Get ancestor graph

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 string
    Required

    The unique identifier of the task.

Responses

200

Ancestor graph retrieved successfully.

  • application/json object
    Show application/json properties
    • edges array of objects
      Show edges properties
      • attrs object
      • source string
      • target string
    • taskId string
    • vertices array of objects
      Show vertices properties
      • task object
        Show 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 string
          Required 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.

            Show properties
            • schedule string|object
              Required
              One 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.

                Show properties
                • cron string|object
                  One of:
                  • string

                    A cron expression defining when workflow instances should be created automatically.

                  • object
                    Show properties
                    • expression string
                      Required

                      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.

          Show 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. When false, both the payload and context attributes are accessible.

          • correlation array of objects

            Correlation definitions used to match incoming CloudEvents to this workflow instance.

            Show correlation properties
            • contextAttributeName string
              Required

              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.

          Show 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 EVENT for 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.

            Show onEvents properties
            • actions array of objects

              Actions to perform when the matched events are consumed.

              Show 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 true for this action to be performed. When false, 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.

                  Show properties
                  • invoke string

                    Specifies whether the function is invoked synchronously or asynchronously.

                    Can be one of: "SYNC""ASYNC"

                  • refName string
                    Required

                    The name of the function to invoke.

                    Can be one of: "app.reload"

                  • arguments object

                    Arguments to pass to the function. The app.reload function accepts:

                    • appId (string, required): The ID of the app to reload.
                    • partial (boolean, default false): Whether to perform a partial reload.
                    • weight (integer, 1 to 10, default 1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of 10 starts sooner than a weight of 1. It does not affect the reload once running. Apps in personal spaces always run with weight 1. Values outside 1 to 10 are 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 autoRetries is false.

              • nonRetryableErrors array of strings

                Workflow error references for which this action must not be retried. Used only when autoRetries is true.

            • eventRefs array of strings
              Required

              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.

            Show 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. When false, 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
          Show metadata properties
          • usage string

            The product domain in which the resource is used. Defaults to ANALYTICS when 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
            Show trigger properties
            • id string
              Required

              The unique identifier of the trigger associated with this task.

            • type integer
              Required

              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.

            Show 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-EXPIRED is 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
            Show orchestration properties
            • id string
              Required

              The unique identifier of the orchestration instance associated with this task in the scheduling service.

            • type integer
              Required

              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.

              Show additional optional properties
              • string string
            • lastRun object
              Show lastRun properties
              • id string
                Required

                The unique identifier of the task run.

              • status string
                Required

                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 string
                Required

                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 string
                Required

                The type or name of the target system that executed the run.

              • triggeredBy string
                Required

                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 configured workflowExecTimeout.

        • 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 string
          Required

          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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

GET /api/scheduling/tasks/{id}/graphs/ancestors
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"
}
]
}

List child tasks

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, and triggerType.

  • 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 string
    Required

    The unique identifier of the parent task.

Responses

200

Child tasks retrieved successfully.

  • application/json object
    Show application/json properties
    • data array of objects
      Show 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 string
        Required 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.

          Show properties
          • schedule string|object
            Required
            One 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.

              Show properties
              • cron string|object
                One of:
                • string

                  A cron expression defining when workflow instances should be created automatically.

                • object
                  Show properties
                  • expression string
                    Required

                    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.

        Show 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. When false, both the payload and context attributes are accessible.

        • correlation array of objects

          Correlation definitions used to match incoming CloudEvents to this workflow instance.

          Show correlation properties
          • contextAttributeName string
            Required

            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.

        Show 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 EVENT for 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.

          Show onEvents properties
          • actions array of objects

            Actions to perform when the matched events are consumed.

            Show 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 true for this action to be performed. When false, 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.

                Show properties
                • invoke string

                  Specifies whether the function is invoked synchronously or asynchronously.

                  Can be one of: "SYNC""ASYNC"

                • refName string
                  Required

                  The name of the function to invoke.

                  Can be one of: "app.reload"

                • arguments object

                  Arguments to pass to the function. The app.reload function accepts:

                  • appId (string, required): The ID of the app to reload.
                  • partial (boolean, default false): Whether to perform a partial reload.
                  • weight (integer, 1 to 10, default 1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of 10 starts sooner than a weight of 1. It does not affect the reload once running. Apps in personal spaces always run with weight 1. Values outside 1 to 10 are 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 autoRetries is false.

            • nonRetryableErrors array of strings

              Workflow error references for which this action must not be retried. Used only when autoRetries is true.

          • eventRefs array of strings
            Required

            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.

          Show 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. When false, 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
        Show metadata properties
        • usage string

          The product domain in which the resource is used. Defaults to ANALYTICS when 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
          Show trigger properties
          • id string
            Required

            The unique identifier of the trigger associated with this task.

          • type integer
            Required

            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.

          Show 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-EXPIRED is 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
          Show orchestration properties
          • id string
            Required

            The unique identifier of the orchestration instance associated with this task in the scheduling service.

          • type integer
            Required

            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.

            Show additional optional properties
            • string string
          • lastRun object
            Show lastRun properties
            • id string
              Required

              The unique identifier of the task run.

            • status string
              Required

              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 string
              Required

              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 string
              Required

              The type or name of the target system that executed the run.

            • triggeredBy string
              Required

              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 configured workflowExecTimeout.

      • 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 string
        Required

        The Serverless Workflow specification version used by this task.

    • links object
      Show links properties
      • next object
        Show next properties
        • href string
          Required

          The URL of the linked resource.

      • prev object
        Show prev properties
        • href string
          Required

          The URL of the linked resource.

      • self object
        Show self properties
        • href string
          Required

          The URL of the linked resource.

400

The request is malformed or contains invalid parameters.

  • application/json object
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

GET /api/scheduling/tasks/{id}/graphs/children
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"
}
}
}

Get descendant graph

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 string
    Required

    The unique identifier of the task.

Responses

200

Descendant graph retrieved successfully.

  • application/json object
    Show application/json properties
    • edges array of objects
      Show edges properties
      • attrs object
      • source string
      • target string
    • taskId string
    • vertices array of objects
      Show vertices properties
      • task object
        Show 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 string
          Required 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.

            Show properties
            • schedule string|object
              Required
              One 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.

                Show properties
                • cron string|object
                  One of:
                  • string

                    A cron expression defining when workflow instances should be created automatically.

                  • object
                    Show properties
                    • expression string
                      Required

                      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.

          Show 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. When false, both the payload and context attributes are accessible.

          • correlation array of objects

            Correlation definitions used to match incoming CloudEvents to this workflow instance.

            Show correlation properties
            • contextAttributeName string
              Required

              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.

          Show 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 EVENT for 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.

            Show onEvents properties
            • actions array of objects

              Actions to perform when the matched events are consumed.

              Show 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 true for this action to be performed. When false, 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.

                  Show properties
                  • invoke string

                    Specifies whether the function is invoked synchronously or asynchronously.

                    Can be one of: "SYNC""ASYNC"

                  • refName string
                    Required

                    The name of the function to invoke.

                    Can be one of: "app.reload"

                  • arguments object

                    Arguments to pass to the function. The app.reload function accepts:

                    • appId (string, required): The ID of the app to reload.
                    • partial (boolean, default false): Whether to perform a partial reload.
                    • weight (integer, 1 to 10, default 1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of 10 starts sooner than a weight of 1. It does not affect the reload once running. Apps in personal spaces always run with weight 1. Values outside 1 to 10 are 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 autoRetries is false.

              • nonRetryableErrors array of strings

                Workflow error references for which this action must not be retried. Used only when autoRetries is true.

            • eventRefs array of strings
              Required

              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.

            Show 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. When false, 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
          Show metadata properties
          • usage string

            The product domain in which the resource is used. Defaults to ANALYTICS when 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
            Show trigger properties
            • id string
              Required

              The unique identifier of the trigger associated with this task.

            • type integer
              Required

              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.

            Show 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-EXPIRED is 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
            Show orchestration properties
            • id string
              Required

              The unique identifier of the orchestration instance associated with this task in the scheduling service.

            • type integer
              Required

              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.

              Show additional optional properties
              • string string
            • lastRun object
              Show lastRun properties
              • id string
                Required

                The unique identifier of the task run.

              • status string
                Required

                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 string
                Required

                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 string
                Required

                The type or name of the target system that executed the run.

              • triggeredBy string
                Required

                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 configured workflowExecTimeout.

        • 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 string
          Required

          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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

GET /api/scheduling/tasks/{id}/graphs/descendants
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"
}
]
}

List parent tasks

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, and triggerType.

  • 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 string
    Required

    The unique identifier of the child task.

Responses

200

Parent tasks retrieved successfully.

  • application/json object
    Show application/json properties
    • data array of objects
      Show 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 string
        Required 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.

          Show properties
          • schedule string|object
            Required
            One 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.

              Show properties
              • cron string|object
                One of:
                • string

                  A cron expression defining when workflow instances should be created automatically.

                • object
                  Show properties
                  • expression string
                    Required

                    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.

        Show 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. When false, both the payload and context attributes are accessible.

        • correlation array of objects

          Correlation definitions used to match incoming CloudEvents to this workflow instance.

          Show correlation properties
          • contextAttributeName string
            Required

            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.

        Show 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 EVENT for 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.

          Show onEvents properties
          • actions array of objects

            Actions to perform when the matched events are consumed.

            Show 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 true for this action to be performed. When false, 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.

                Show properties
                • invoke string

                  Specifies whether the function is invoked synchronously or asynchronously.

                  Can be one of: "SYNC""ASYNC"

                • refName string
                  Required

                  The name of the function to invoke.

                  Can be one of: "app.reload"

                • arguments object

                  Arguments to pass to the function. The app.reload function accepts:

                  • appId (string, required): The ID of the app to reload.
                  • partial (boolean, default false): Whether to perform a partial reload.
                  • weight (integer, 1 to 10, default 1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of 10 starts sooner than a weight of 1. It does not affect the reload once running. Apps in personal spaces always run with weight 1. Values outside 1 to 10 are 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 autoRetries is false.

            • nonRetryableErrors array of strings

              Workflow error references for which this action must not be retried. Used only when autoRetries is true.

          • eventRefs array of strings
            Required

            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.

          Show 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. When false, 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
        Show metadata properties
        • usage string

          The product domain in which the resource is used. Defaults to ANALYTICS when 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
          Show trigger properties
          • id string
            Required

            The unique identifier of the trigger associated with this task.

          • type integer
            Required

            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.

          Show 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-EXPIRED is 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
          Show orchestration properties
          • id string
            Required

            The unique identifier of the orchestration instance associated with this task in the scheduling service.

          • type integer
            Required

            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.

            Show additional optional properties
            • string string
          • lastRun object
            Show lastRun properties
            • id string
              Required

              The unique identifier of the task run.

            • status string
              Required

              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 string
              Required

              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 string
              Required

              The type or name of the target system that executed the run.

            • triggeredBy string
              Required

              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 configured workflowExecTimeout.

      • 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 string
        Required

        The Serverless Workflow specification version used by this task.

    • links object
      Show links properties
      • next object
        Show next properties
        • href string
          Required

          The URL of the linked resource.

      • prev object
        Show prev properties
        • href string
          Required

          The URL of the linked resource.

      • self object
        Show self properties
        • href string
          Required

          The URL of the linked resource.

400

The request is malformed or contains invalid parameters.

  • application/json object
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

GET /api/scheduling/tasks/{id}/graphs/parents
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"
}
}
}

Get task subgraph

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 string
    Required

    The unique identifier of the task.

Responses

200

Task subgraph retrieved successfully.

  • application/json object
    Show application/json properties
    • edges array of objects
      Show edges properties
      • attrs object
      • source string
      • target string
    • taskId string
    • vertices array of objects
      Show vertices properties
      • task object
        Show 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 string
          Required 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.

            Show properties
            • schedule string|object
              Required
              One 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.

                Show properties
                • cron string|object
                  One of:
                  • string

                    A cron expression defining when workflow instances should be created automatically.

                  • object
                    Show properties
                    • expression string
                      Required

                      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.

          Show 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. When false, both the payload and context attributes are accessible.

          • correlation array of objects

            Correlation definitions used to match incoming CloudEvents to this workflow instance.

            Show correlation properties
            • contextAttributeName string
              Required

              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.

          Show 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 EVENT for 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.

            Show onEvents properties
            • actions array of objects

              Actions to perform when the matched events are consumed.

              Show 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 true for this action to be performed. When false, 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.

                  Show properties
                  • invoke string

                    Specifies whether the function is invoked synchronously or asynchronously.

                    Can be one of: "SYNC""ASYNC"

                  • refName string
                    Required

                    The name of the function to invoke.

                    Can be one of: "app.reload"

                  • arguments object

                    Arguments to pass to the function. The app.reload function accepts:

                    • appId (string, required): The ID of the app to reload.
                    • partial (boolean, default false): Whether to perform a partial reload.
                    • weight (integer, 1 to 10, default 1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of 10 starts sooner than a weight of 1. It does not affect the reload once running. Apps in personal spaces always run with weight 1. Values outside 1 to 10 are 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 autoRetries is false.

              • nonRetryableErrors array of strings

                Workflow error references for which this action must not be retried. Used only when autoRetries is true.

            • eventRefs array of strings
              Required

              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.

            Show 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. When false, 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
          Show metadata properties
          • usage string

            The product domain in which the resource is used. Defaults to ANALYTICS when 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
            Show trigger properties
            • id string
              Required

              The unique identifier of the trigger associated with this task.

            • type integer
              Required

              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.

            Show 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-EXPIRED is 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
            Show orchestration properties
            • id string
              Required

              The unique identifier of the orchestration instance associated with this task in the scheduling service.

            • type integer
              Required

              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.

              Show additional optional properties
              • string string
            • lastRun object
              Show lastRun properties
              • id string
                Required

                The unique identifier of the task run.

              • status string
                Required

                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 string
                Required

                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 string
                Required

                The type or name of the target system that executed the run.

              • triggeredBy string
                Required

                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 configured workflowExecTimeout.

        • 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 string
          Required

          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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

GET /api/scheduling/tasks/{id}/graphs/subgraph
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"
}
]
}

List task runs

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 string
    Required

    The unique identifier of the task.

Responses

200

Task runs retrieved successfully.

  • application/json object
    Show application/json properties
    • data array of objects
      Show data properties
      • id string
        Required

        The unique identifier of the task run.

      • status string
        Required

        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 string
        Required

        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 string
        Required

        The type or name of the target system that executed the run.

      • triggeredBy string
        Required

        The identity or event that triggered the task run.

      • log string

        The raw log output from the task run.

      • taskId string
        Required

        The unique identifier of the task.

      • actionId string
        Required

        The unique identifier of the action that was executed.

      • taskMeta object
        Required
        Show taskMeta properties
        • usage string

          The product domain in which the resource is used. Defaults to ANALYTICS when 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
          Show trigger properties
          • id string
            Required

            The unique identifier of the trigger associated with this task.

          • type integer
            Required

            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.

          Show 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-EXPIRED is 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
          Show orchestration properties
          • id string
            Required

            The unique identifier of the orchestration instance associated with this task in the scheduling service.

          • type integer
            Required

            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.

            Show additional optional properties
            • string string
          • lastRun object
            Show lastRun properties
            • id string
              Required

              The unique identifier of the task run.

            • status string
              Required

              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 string
              Required

              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 string
              Required

              The type or name of the target system that executed the run.

            • triggeredBy string
              Required

              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 string
        Required

        The name of the task at the time it was run.

      • resourceId string
        Required

        The unique identifier of the resource the task operated on.

    • links object
      Show links properties
      • next object
        Show next properties
        • href string
          Required

          The URL of the linked resource.

      • prev object
        Show prev properties
        • href string
          Required

          The URL of the linked resource.

      • self object
        Show self properties
        • href string
          Required

          The URL of the linked resource.

400

The request is malformed or contains invalid parameters.

  • application/json object
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

GET /api/scheduling/tasks/{id}/runs
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"
}
}
}

Get task run log

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 string
    Required

    The unique identifier of the task.

  • runId string
    Required

    The unique identifier of the task run.

Responses

200

Task run log retrieved successfully.

  • text/plain object
    Show text/plain properties
    • logContent string

200

Task run log retrieved successfully.

  • application/json object
    Show application/json properties
    • logContent string

      Log content in plain text format.

400

The request is malformed or contains invalid parameters.

  • application/json object
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

GET /api/scheduling/tasks/{id}/runs/{runId}/log
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]

Get last task run

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 string
    Required

    The unique identifier of the task.

Responses

200

Last task run retrieved successfully.

  • application/json object
    Show application/json properties
    • id string
      Required

      The unique identifier of the task run.

    • status string
      Required

      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 string
      Required

      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 string
      Required

      The type or name of the target system that executed the run.

    • triggeredBy string
      Required

      The identity or event that triggered the task run.

    • log string

      The raw log output from the task run.

    • taskId string
      Required

      The unique identifier of the task.

    • actionId string
      Required

      The unique identifier of the action that was executed.

    • taskMeta object
      Required
      Show taskMeta properties
      • usage string

        The product domain in which the resource is used. Defaults to ANALYTICS when 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
        Show trigger properties
        • id string
          Required

          The unique identifier of the trigger associated with this task.

        • type integer
          Required

          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.

        Show 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-EXPIRED is 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
        Show orchestration properties
        • id string
          Required

          The unique identifier of the orchestration instance associated with this task in the scheduling service.

        • type integer
          Required

          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.

          Show additional optional properties
          • string string
        • lastRun object
          Show lastRun properties
          • id string
            Required

            The unique identifier of the task run.

          • status string
            Required

            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 string
            Required

            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 string
            Required

            The type or name of the target system that executed the run.

          • triggeredBy string
            Required

            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 string
      Required

      The name of the task at the time it was run.

    • resourceId string
      Required

      The unique identifier of the resource the task operated on.

400

The request is malformed or contains invalid parameters.

  • application/json object
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

GET /api/scheduling/tasks/{id}/runs/last
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"
}

List task runs for a resource

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 string
    Required

    The unique identifier of the resource to retrieve task runs for.

Responses

200

Task runs retrieved successfully.

  • application/json object
    Show application/json properties
    • data array of objects
      Show data properties
      • id string
        Required

        The unique identifier of the task run.

      • status string
        Required

        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 string
        Required

        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 string
        Required

        The type or name of the target system that executed the run.

      • triggeredBy string
        Required

        The identity or event that triggered the task run.

      • log string

        The raw log output from the task run.

      • taskId string
        Required

        The unique identifier of the task.

      • actionId string
        Required

        The unique identifier of the action that was executed.

      • taskMeta object
        Required
        Show taskMeta properties
        • usage string

          The product domain in which the resource is used. Defaults to ANALYTICS when 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
          Show trigger properties
          • id string
            Required

            The unique identifier of the trigger associated with this task.

          • type integer
            Required

            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.

          Show 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-EXPIRED is 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
          Show orchestration properties
          • id string
            Required

            The unique identifier of the orchestration instance associated with this task in the scheduling service.

          • type integer
            Required

            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.

            Show additional optional properties
            • string string
          • lastRun object
            Show lastRun properties
            • id string
              Required

              The unique identifier of the task run.

            • status string
              Required

              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 string
              Required

              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 string
              Required

              The type or name of the target system that executed the run.

            • triggeredBy string
              Required

              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 string
        Required

        The name of the task at the time it was run.

      • resourceId string
        Required

        The unique identifier of the resource the task operated on.

    • links object
      Show links properties
      • next object
        Show next properties
        • href string
          Required

          The URL of the linked resource.

      • prev object
        Show prev properties
        • href string
          Required

          The URL of the linked resource.

      • self object
        Show self properties
        • href string
          Required

          The URL of the linked resource.

400

The request is malformed or contains invalid parameters.

  • application/json object
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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
    Show application/json properties
    • errors array of objects
      Show errors properties
      • code integer
      • inner object
        Show 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.

GET /api/scheduling/tasks/resources/{id}/runs
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"
}
}
}