Type Alias TasksAPI

Index
clearCache: typeof tasks.clearCache

Clears the cache for tasks api requests.

createTask: typeof tasks.createTask

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.

an object with query parameters

an object with the body content

CreateTaskHttpError

createTaskWithoutQuery: typeof createTaskWithoutQuery

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.

an object with the body content

CreateTaskWithoutQueryHttpError

deleteTask: typeof tasks.deleteTask

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.

The unique identifier of the task to delete.

DeleteTaskHttpError

getTask: typeof tasks.getTask

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.

The unique identifier of the task to retrieve.

GetTaskHttpError

getTaskGraphAncestors: typeof getTaskGraphAncestors

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.

The unique identifier of the task.

an object with query parameters

GetTaskGraphAncestorsHttpError

getTaskGraphChildren: typeof getTaskGraphChildren

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.

The unique identifier of the parent task.

an object with query parameters

GetTaskGraphChildrenHttpError

getTaskGraphDescendants: typeof getTaskGraphDescendants

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.

The unique identifier of the task.

an object with query parameters

GetTaskGraphDescendantsHttpError

getTaskGraphParents: typeof getTaskGraphParents

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.

The unique identifier of the child task.

an object with query parameters

GetTaskGraphParentsHttpError

getTaskLastRun: typeof getTaskLastRun

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.

The unique identifier of the task.

GetTaskLastRunHttpError

getTaskResourceRuns: typeof getTaskResourceRuns

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.

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

an object with query parameters

GetTaskResourceRunsHttpError

getTaskRunLog: typeof tasks.getTaskRunLog

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.

The unique identifier of the task.

The unique identifier of the task run.

GetTaskRunLogHttpError

getTaskRuns: typeof tasks.getTaskRuns

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.

The unique identifier of the task.

an object with query parameters

GetTaskRunsHttpError

getTasks: typeof tasks.getTasks

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.

an object with query parameters

GetTasksHttpError

getTaskSubgraph: typeof getTaskSubgraph

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.

The unique identifier of the task.

an object with query parameters

GetTaskSubgraphHttpError

patchTask: typeof patchTask

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.

The unique identifier of the task to update.

an object with the body content

PatchTaskHttpError

reloadTasksResourceOnDatasetUpdated: typeof reloadTasksResourceOnDatasetUpdated

Creates a reload task for the app that runs when a Data Integration (Qlik Talend Cloud) pipeline finishes updating or loading a dataset (QVD or data warehouse storage) that the app uses. This is a convenience wrapper over POST /scheduling/tasks; the full task definition is generated server-side. Use POST /scheduling/tasks for advanced configurations.

Eligible datasets are resolved from the app's lineage when the task is created, as the task owner; datasets the app starts using later are not picked up. Other data sources, such as data files or QVDs in spaces, do not trigger the task. An app can have only one such task, and it is shared with the app's legacy reload-task auto-reload setting: changing that setting replaces or removes this task's trigger. One pipeline run may start the task more than once.

Errors:

  • 400 CHO-001: the request body or the path id is invalid. This includes a name or description over its maximum length.
  • 403 CHO-003: the app does not exist, is not accessible, or the caller lacks app:reload on it.
  • 404: not returned for a missing app, which gets 403 as above. Kept for compatibility.
  • 409 CHO-031: the app already has a dataset-update task, enabled or not. Its ID is returned in value.existingTaskId.
  • 422 CHO-030: the app does not use any dataset produced by a Data Integration pipeline, or the task owner cannot see all of them. CHO-014: the app already has the maximum number of tasks. CHO-018: the caller has reached the per-user task quota, when one is configured.
  • 424 CHO-013: the task could not be stored. Nothing is created.

The unique identifier of the app to reload.

an object with the body content

ReloadTasksResourceOnDatasetUpdatedHttpError

reloadTasksResourceOnTaskEvent: typeof reloadTasksResourceOnTaskEvent

Creates a reload task for the app that runs when another task finishes with the given status. This is a convenience wrapper over POST /scheduling/tasks; the full task definition is generated server-side. Use POST /scheduling/tasks for advanced configurations.

The upstream task (onTaskId) must belong to the caller's tenant, and the caller needs read access to the upstream task's app. The server adds the upstream task's spaceId and appId to the event correlations of the created task. If the upstream task is deleted later, this task no longer runs.

Errors:

  • 400 CHO-001: the request body or the path id is invalid. This includes a name or description over its maximum length, and an onTaskStatus other than succeeded, failed or any.
  • 400 CHO-016: onTaskId is not a UUID, or no such task exists in the caller's tenant.
  • 403 CHO-003: the app does not exist, is not accessible, or the caller lacks app:reload on it. CHO-015: the caller cannot read the upstream task's app.
  • 422 CHO-014: the app already has the maximum number of tasks. CHO-018: the caller has reached the per-user task quota, when one is configured.
  • 424 CHO-013: the task could not be stored. Nothing is created.
  • 404 CHO-004: the upstream task was deleted while the request was processed.

The unique identifier of the app to reload.

an object with the body content

ReloadTasksResourceOnTaskEventHttpError

reloadTasksResourceOnTimeSchedule: typeof reloadTasksResourceOnTimeSchedule

Creates a reload task for the app that runs on a recurring time schedule. This is a convenience wrapper over POST /scheduling/tasks; the full task definition is generated server-side. Use POST /scheduling/tasks for advanced configurations.

The schedule is evaluated in timezone. The first run is the next occurrence of recurrence after the task is created; creating a task never runs it immediately. A task is created disabled unless enabled is true.

Errors:

  • 400 CHO-001: the request body or the path id is invalid. This includes a name or description over its maximum length.
  • 400 CHO-017: the schedule was rejected: recurrence or timezone is invalid, endDateTime is not after startDateTime, or endDateTime is in the past.
  • 403 CHO-003: the app does not exist, is not accessible, or the caller lacks app:reload on it.
  • 404: not returned for a missing app, which gets 403 as above. Kept for compatibility.
  • 422 CHO-014: the app already has the maximum number of tasks. CHO-018: the caller has reached the per-user task quota, when one is configured.
  • 424 CHO-013: the task could not be stored. Nothing is created.
  • 503 CHO-024: the scheduler is temporarily unavailable. Nothing is created.

The unique identifier of the app to reload.

an object with the body content

ReloadTasksResourceOnTimeScheduleHttpError

startTask: typeof tasks.startTask

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.

The unique identifier of the task to start.

an object with query parameters

StartTaskHttpError

updateTask: typeof tasks.updateTask

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.

The unique identifier of the task to replace.

an object with the body content

UpdateTaskHttpError