# Update Task — Wrike

> Update any combination of a Wrike task's fields (title, description, status, importance, assignees, dates, custom fields) in a single call via PUT /tasks/{taskId}. Supersedes the former Update Task Custom Fields action. Use Find Tasks or…

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

## Description

Update any combination of a Wrike task's fields (title, description, status, importance, assignees, dates, custom fields) in a single call via PUT /tasks/{taskId}. Supersedes the former Update Task Custom Fields action. Use **Find Tasks** or **Get Task** to obtain the taskId; use **List Contact ID Options** for assignee IDs and **List Custom Fields Keys Options** for custom field IDs. [See the documentation](https://developers.wrike.com/reference/puttaskssingle)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `taskId` | `string` | Yes | The ID of the task to update, e.g. IEAASDF3KQAAAAAA. Run the Find Tasks action to look up task IDs. |
| `title` | `string` | No | New task title. |
| `description` | `string` | No | New task description. |
| `status` | `string` | No | New task status. One of: Active, Deferred, Completed, Cancelled. |
| `importance` | `string` | No | New task importance. One of: High, Normal, Low. |
| `addResponsibles` | `string[]` | No | Contact IDs to add as assignees, e.g. KUABCDEF (the intake 'responsibles' input maps here; Wrike PUT has no flat responsibles field). Run List Contact ID Options to look up IDs. |
| `removeResponsibles` | `string[]` | No | Contact IDs to remove as assignees. Run List Contact ID Options to look up IDs. |
| `dates` | `string` | No | JSON object of task dates. Example: {"start":"2026-07-23","due":"2026-09-30","type":"Planned"}. |
| `customStatus` | `string` | No | ID of a custom workflow status to set. |
| `customFields` | `string` | No | JSON array of custom field objects to set. Example: [{"id":"IEAASDF3JQAAAAAA","value":"Done"}]. Run List Custom Fields Keys Options to discover valid field IDs. |

## 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": "wrike",
      },
    },
  },
)

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: "wrike-update-task",
  arguments: {
    taskId: "Task ID",
    title: "Title",
  },
})
```

**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: "wrike-update-task",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    wrike: { authProvisionId: "apn_xxxxxxx" },
    taskId: "Task ID",
    title: "Title",
  },
})

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": "wrike-update-task",
    "configured_props": {
      "wrike": { "authProvisionId": "apn_xxxxxxx" },
      "taskId": "Task ID",
      "title": "Title"
    }
  }'
```

---

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