Set dependencies
Replaces the task’s entire predecessor set. Pass [] to clear all dependencies.
On success the API returns 200 OK with the task id and resolved predecessor count.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
taskId | string (uuid) | Yes | The dependent task. |
Request body
An array of items, each:
| Name | Type | Required | Description |
|---|---|---|---|
predecessorId | string (uuid) | Yes | The predecessor task. |
type | string | No | FS (default), SS, FF, or SF. |
lag | integer | No | Days, -365…365. Defaults to 0. |
Graph rules (same as everywhere in GanttFather): predecessor must be in the same project, must be a sibling (same parent), no cycles, and at most 100 predecessors per task. Violations return 400 with one of invalid_dependency, invalid_lag, invalid_dependency_type, cross_project, not_siblings, cycle_detected, or graph_too_large — see Errors →.