Tasks

Task management operations

Task management operations

List tasks for a workflow

Retrieve a list of all tasks within a specific workflow

GET
/workflows/{workflow_id}/tasks

Path Parameters

workflow_idstring

Workflow ID

Response Body

curl -X GET "https://loading/api/v0/workflows/string/tasks"
{
  "data": {
    "tasks": [
      {
        "action": "string",
        "condition": "string",
        "env": {
          "property1": "string",
          "property2": "string"
        },
        "has_subtasks": true,
        "id": "string",
        "items": null,
        "mode": "string",
        "outputs": {
          "property1": null,
          "property2": null
        },
        "routes": {
          "property1": null,
          "property2": null
        },
        "signal_name": "string",
        "strategy": "string",
        "subtask_ids": [
          "string"
        ],
        "timeout": "string",
        "type": "basic",
        "with": {
          "property1": null,
          "property2": null
        }
      }
    ]
  },
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}
{
  "data": null,
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}
{
  "data": null,
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}
{
  "data": null,
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}

Get task by ID

Retrieve a specific task configuration by its ID within a workflow

GET
/workflows/{workflow_id}/tasks/{task_id}

Path Parameters

workflow_idstring

Workflow ID

task_idstring

Task ID

Response Body

curl -X GET "https://loading/api/v0/workflows/string/tasks/string"
{
  "data": {
    "action": "string",
    "condition": "string",
    "env": {
      "property1": "string",
      "property2": "string"
    },
    "has_subtasks": true,
    "id": "string",
    "items": null,
    "mode": "string",
    "outputs": {
      "property1": null,
      "property2": null
    },
    "routes": {
      "property1": null,
      "property2": null
    },
    "signal_name": "string",
    "strategy": "string",
    "subtask_ids": [
      "string"
    ],
    "timeout": "string",
    "type": "basic",
    "with": {
      "property1": null,
      "property2": null
    }
  },
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}
{
  "data": null,
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}
{
  "data": null,
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}
{
  "data": null,
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}