Create a Task
Create Multiple Tasks
Request Body
The request body can be either a single task object or an array of task objects.Task Object
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the task |
promptApplicationId | string (UUID) | Yes | UUID of the prompt application |
approvedAt | string or null | No | Approval timestamp (ISO 8601) |
completionRunId | string (UUID) or null | No | UUID of the associated completion run |
workflowRunId | string (UUID) or null | No | UUID of the associated workflow run |
rawInput | object | No | Raw input configuration |
outputContent | object or null | No | Output content for the task |
inputContent | object | No | Input content for the task |
metadata | object | No | Task metadata |
tags | string[] | No | Tags to associate with the task |
useTempFunction | boolean | No | Whether to use temporary function |
Input Content Object
| Field | Type | Description |
|---|---|---|
variables | object | Key-value pairs of variables |
messages | array | Array of message objects |
files | array | Array of file objects |
Raw Input Object
| Field | Type | Description |
|---|---|---|
version_id | string (UUID) | Version ID to use |
canvas_id | string (UUID) | Canvas ID to use |
application_id | string (UUID) | Application ID |
webhook_url | string | Webhook URL for notifications |
variables | object | Variables to pass |
messages | array | Messages to include |
stream | boolean | Whether to stream the response |
async | boolean | Whether to run asynchronously |
override | object | Override settings |