Skip to main content

Batch Tasks Management

Overview

The Batch Tasks Management module in WEDA allows users to create, manage, and execute batch tasks for automating repetitive operations and processing large volumes of data efficiently. This module provides a structured way to define tasks, schedule their execution, and monitor their performance through the WEDA Core API.

Basic Operations

Basic API URL: https://{domain}/{tenantPath}/{srp}

OperationAPIDescription
Create TaskPOST {Basic API URL}/api/v1/orgs/{orgId}/tasksCreate a new task under an organization
List TasksGET {Basic API URL}/api/v1/orgs/{orgId}/tasksGet list of tasks in a specific organization
Update TaskPUT {Basic API URL}/api/v1/orgs/{orgId}/tasks/{taskId}Update task's details in an organization
Remove TaskDELETE {Basic API URL}/api/v1/orgs/{orgId}/tasks/{taskId}Remove task from an organization
Create BatchPOST {Basic API URL}/api/v1/orgs/{orgId}/batchesCreate a new batch under an organization
List BatchesGET {Basic API URL}/api/v1/orgs/{orgId}/batchesGet list of batches in an organization
Update BatchPUT {Basic API URL}/api/v1/orgs/{orgId}/batches/{batchId}Update batch's details in an organization
Remove BatchDELETE {Basic API URL}/api/v1/orgs/{orgId}/batches/{batchId}Remove batch from an organization

Constraints & Limitations

General

  • API access requires authentication with a valid token
  • Organization must exist

Task: Update

  • cmd is the command that will be executed.
  • payload is the variables in the payload.

Task: Delete

  • The task can only be deleted if it is not linked to any batch.

Batch: Create

  • cronExpression is required and must be a valid cron expression.
  • isEnabled is required, whether the batch is enabled.
  • runOnStartup is required, whether the batch should run on startup.
  • actions is required, which defines the tasks to be executed in the batch.

Batch: Delete

  • Only batches with isEnabled set to false can be deleted.

Advanced Features

Task

OperationAPIDescription
Get Task DetailsGET {Basic API URL}/api/v1/orgs/{orgId}/tasks/{taskId}Get details of a specific task in an organization

Batch

OperationAPIDescription
Get Batch DetailsGET {Basic API URL}/api/v1/orgs/{orgId}/batches/{batchId}Get details of a specific batch in an organization
Get Task ResultsGET {Basic API URL}/api/v1/orgs/{orgId}/batches/{batchId}/resultsGet execution history of a specific task in an organization
Update Batch ActionsPUT {Basic API URL}/api/v1/orgs/{orgId}/batches/{batchId}Update the actions of a specific batch in an organization
Trigger Batch ExecutionPOST {Basic API URL}api/v1/orgs/{orgId}/batches/{batchId}:startTrigger the execution of a specific batch in an organization
Get Triggered BatchesGET {Basic API URL}/api/v1/orgs/{orgId}/batches/{batchId}/triggersRetrieve the list of batch trigger IDs for a specific batch
Enable/Disable BatchPUT {Basic API URL}/api/v1/orgs/{orgId}/batches/{batchId}/statusEnable or disable a specific batch in an organization
Get Device BatchGET {Basic API URL}/api/v1/orgs/{orgId}/batches/{batchId}/devicesRetrieve the list of device IDs associated with a specific batch

Last updated on Apr-8, 2026 | Version 1.0.0