> ## 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 section

> Create and position a section in an Asana project.

`createSection` adds a section, optionally relative to an existing section.

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

export default automation("Create Asana section", () => {
  onHttpRequest({ scope: "automation" })
  createSection({
    projectId: "project-gid",
    name: "Review",
    insertAfterSectionId: "doing-section-gid",
  })
})
```

`projectId` and non-empty `name` are required. Optional `insertAfterSectionId` or `insertBeforeSectionId` positions the section; supply at most one. Optional `account` defaults to the project binding.

Returns the created `AsanaSection`.
