Tasks are work instances within a workflow
- Organization ID. Visible in Settings.
- Queue ID. Found in the URL when inside a queue.
A task is defined by the following properties:
id- A unique task identifier.
status- The task's status, which can be
completed_at. ISO 8601 formatted timestamp.
created_at. ISO 8601 formatted timestamp.
completed_by. The user's email address.
queue. The queue name.
queue_id. A unique identifier for the queue the task belongs to.
data. A dictionary with all the attributes that characterize the queue, according to its user defined configuration. Each key nested in the object takes the name of each block's identifier. See Blocks to learn more.
source. The name of the source that originated the task. Can take
$filename.csvas its value.
An example task would look like this:
"completed_by": "[email protected]",
"queue": "Sample Workflow Name",
"comment": "A random benign comment that needs to get approved"
Create a task
curl -v https://api.humanlambdas.com/orgs/$ORGANIZATION_ID/queues/$QUEUE_ID/tasks/create \
-H "Content-Type: application/json" \
-H "Authorization: Token $API_KEY" \
"comment": "This is some random text"
List a queue's completed tasks