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

NameTypeRequiredDescription
taskIdstring (uuid)YesThe dependent task.

Request body

An array of items, each:

NameTypeRequiredDescription
predecessorIdstring (uuid)YesThe predecessor task.
typestringNoFS (default), SS, FF, or SF.
lagintegerNoDays, -365365. 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 →.