# Create Task — Breeze

> Generates a new task within an existing project in breeze. See documentation

- Key: `breeze-create-task`
- Type: Action (Write)
- Version: 0.0.1
- App: Breeze (`breeze`) — https://pipedream.com/apps/breeze.md
- This page (HTML): https://pipedream.com/apps/breeze/actions/create-task
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/breeze/actions/create-task/create-task.mjs

## Description

Generates a new task within an existing project in breeze. [See documentation](https://www.breeze.pm/api#:~:text=Create%20a%20card)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `projectId` | `string` | Yes | The project to associate the task with Options are loaded from the connected account. |
| `stageId` | `string` | Yes | The stage (list) to associate the task with Options are loaded from the connected account. |
| `swimlaneId` | `string` | No | The swimlane to associate the task with Options are loaded from the connected account. |
| `taskName` | `string` | Yes | The name of the task to create |
| `taskDescription` | `string` | No | The description of the task |
| `dueDate` | `string` | No | The due date for the task (format: YYYY-MM-DD) |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "breeze",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "breeze-create-task",
  arguments: {
    projectId: "Project ID",
    stageId: "Stage ID",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "breeze-create-task",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    breeze: { authProvisionId: "apn_xxxxxxx" },
    projectId: "Project ID",
    stageId: "Stage ID",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "breeze-create-task",
    "configured_props": {
      "breeze": { "authProvisionId": "apn_xxxxxxx" },
      "projectId": "Project ID",
      "stageId": "Stage ID"
    }
  }'
```

---

- App: https://pipedream.com/apps/breeze.md · All apps: https://pipedream.com/apps
