---
title: "Turn parent dates from subtasks on or off for a project"
method: PUT
path: "/scheduling/projects/{id}/parent-dates"
tags: ["scheduling"]
---

# Turn parent dates from subtasks on or off for a project

`PUT /scheduling/projects/{id}/parent-dates`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/scheduling/projects/{id}/parent-dates`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

The project's default for a task with subtasks; a task's own isManual (PUT /tasks/{id}) wins over it. Off moves nothing. On, while the server switch parent_date_rollup_enabled is on, sets every automatic parent's dates to its subtasks' span at once and answers the moves; while the switch is off the value is stored, `applied` is false and nothing moves. While on, a date, duration or constraint change on an automatic parent is refused with 409 PARENT_DATES_FROM_SUBTASKS. Setting the current value is a no-op. Needs the same access as Recalculate.

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string, required

## Request body

- object
  - `parentDatesFromSubtasks` boolean, required

## Response `200`

`{ parentDatesFromSubtasks, changed, applied, updated, moves }`

---

[API](https://skmtc.dev/onplana/apis/onplana-api.md) · [All operations](https://skmtc.dev/onplana/apis/onplana-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onplana/apis/onplana-api/revisions/c3d6c89e9dc8?raw)
