---
title: "Moves a task and its dependent tasks by a given number of working days"
method: PATCH
path: "/api/v2/tasks/{id}/move_dependent"
tags: ["Tasks"]
---

# Moves a task and its dependent tasks by a given number of working days

`PATCH /api/v2/tasks/{id}/move_dependent`

Shifts a task and all of its **blocking-dependent** tasks forward or backward by a number of **working days**. Useful for re-baselining a Gantt schedule when an upstream task slips.

Pass `days_count` as a signed integer — positive shifts forward, negative shifts backward. The shift counts only **working days** (weekends and configured non-working days from the organization's working hours are skipped). Closed tasks, tasks without a `due_date`, and tasks the caller cannot access are silently excluded from the move.

The dependent graph is walked recursively via blocking dependencies (`task_dependency` rows of type *blocking*).

Set `skip_root_task: true` to shift only the dependents and leave the root task in place — useful when only downstream work needs to slide. Defaults to `false`.

Each moved task gets a `Gantt - Move dependent tasks` activity entry for auditability.

Returns `422` if shifting the dates would conflict with existing time bookings on any of the moved tasks (booking constraints are validated up-front, no partial moves are persisted).

```json
{
  "data": {
    "type": "tasks",
    "attributes": {
      "days_count": 5,
      "skip_root_task": false
    }
  }
}
```

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string, required

## Response `200`

Single task

## Other responses

- `422` — Unprocessable Entity

---

[API](https://skmtc.dev/productive/apis/api-documentation.md) · [All operations](https://skmtc.dev/productive/apis/api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/productive/api-documentation/revisions/bbf5057edf0d/schema)
