Link an existing task as a subtask of another task.
Raises: NotFoundError: If either task not found or belongs to another organization. TaskCycleError: If linking would create a cycle in the subtask graph.
cURL
curl --request POST \ --url https://api.example.com/agents/tasks/{task_id}/subtasks/link \ --header 'Content-Type: application/json' \ --data ' { "child_id": "<string>" } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>", "input": "<unknown>", "ctx": {} } ] }
Existing task to attach as a subtask
Successful Response