---
title: "Update task in project plan"
method: PUT
path: "/projects/{id}/plan/tasks/{taskId}"
tags: ["Projects"]
---

# Update task in project plan

`PUT /projects/{id}/plan/tasks/{taskId}`

Updates a task phase or group in a project.

## Path parameters

- `id` integer, required
- `taskId` integer, required

## Request body

- object
  - `phase_id` number — The ID of a phase on a project board
  - `group_id` number — The ID of a group on a project board

## Response `200`

Updated task in plan.

- object
  - `success` boolean
  - `data` object
    - `item_id` number — ID of plan item (either activity or task ID)
    - `item_type` string — Type of a plan item (task / activity)
    - `phase_id` number — The ID of the board this project is associated with. If null then plan item is not in any phase.
    - `group_id` number — The ID of the board this project is associated with. If null then plan item is not in any group.
  - `additional_data` object, nullable

---

[API](https://skmtc.net/pipedrive/apis/pipedrive-api-v1.md) · [All operations](https://skmtc.net/pipedrive/apis/pipedrive-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pipedrive/pipedrive-api-v1/versions/bf863a979545/schema)
