> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Create subtask

> Create a direct subtask beneath an Asana task.

`createSubtask` creates a child using its parent as workspace context.

```ts automations/create-asana-subtask.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { createSubtask } from "automate.ax/asana"

export default automation("Create Asana subtask", () => {
  onHttpRequest({ scope: "automation" })
  createSubtask({
    parentTaskId: "task-gid",
    name: "Review release notes",
    assignee: "me",
  })
})
```

`parentTaskId` and `name` are required. It supports the same assignment, status, completion, custom-field, due/start, description, subtype, follower, and account inputs as `createTask`, but not workspace or project placement.

The same mutually exclusive date and description rules apply. Returns the created `AsanaTask` with its `parent` reference when supplied by Asana.
