Create Task
Create a new task for an agent.
POST
Create Task
To send messages to a running task, use
sendEvent() after creation. The create() method initializes the task but does not accept message content directly.Body
application/json
Request for POST /tasks
Agent ID (provide this OR agent_name)
Agent name as 'namespace/name' (provide this OR agent_id)
Target branch for version routing
Existing filesystem ID
Task name
Task parameters
Project ID for new filesystem
Response
Successful Response
Task response model with optional related data based on relationships
Available options:
IDLE, CANCELED, COMPLETED, FAILED, RUNNING, TERMINATED, TIMED_OUT, DELETED Create Task