Get the detailed information of the task
HTTP Request URL: http(s)://api.thingboot.com/{AppID}/task/detail/?sign={sign}&ts={ts} About the sign and ts definition
Or
MQTT Publish Topic: api/{AppID}/task/detail The returned results are also received on the same topic.
Name Required Type Description
task Yes string
Specify the task ID; the specific value can be viewed in the console task list or retrieved through the task list interface. Multiple IDs can be specified, separated by delimiters (, or |), such as 1,2,3. When multiple IDs are specified, the return value will be an array.
Name Type Description
id int
Task ID
from string
Source: Console or interface, used to determine how the task was created.
devices string
Device list, array type. Compared to the task list interface, the task details interface will return more device information.
stage string
Strategy, a JSON object. type: strategy type; desc: strategy description, along with the corresponding strategy parameters for that strategy.
run string
Execution status, a JSON object. times: number of times executed; last_time: last execution time; if never executed, it will be "-"
enable string
Task status, 0 or 1. When it is 1, the task is valid and may be currently executing, waiting to execute, or has already been completed. When it is 0, the task is invalid and is in a paused state.
title string
Task description or remarks, string.
commands string
The command for task execution, a JSON object. If the command executes an action, this return item does not exist.
action string
The action ID for task execution, an integer. This return item is absent if the command being executed is itself a command.
Return example