update_dependency
Change an existing task dependency's type or lag in place; the link keeps its id. Address it by its row id (dependencyId, from list_dependencies or from the error link_dependency returns when the pair is already linked), or by the two task ids it joins (predecessorId + successorId) when exactly one link joins them. Pass type (FINISH_TO_START, START_TO_START, FINISH_TO_FINISH, START_TO_FINISH), lag, or both; a field left out keeps its value. Lag is in lagUnit, days by default, or hours or minutes for a finer lag; negative values are lead time. Requires the project-level dependency.manage permission on the successor's project, as linking does. A type the pair already holds is refused, since one pair holds each type at most once. When the values sent are already the link's the call succeeds with changed: false and writes nothing. Otherwise the successor and the tasks after it are rescheduled, and rescheduled counts them; in a project with automatic scheduling off it is 0 and the response carries autoScheduleOff: true. previous holds the type and lag the edit replaced. No plan gate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lag | No | The new lag in lagUnit. Left out: unchanged. Negative for lead time. | |
| type | No | The new link type. Left out: unchanged. | |
| lagUnit | No | Unit for lag: days (default), hours, or minutes. Only with lag. | |
| successorId | No | Successor task id. Use WITH predecessorId instead of dependencyId. | |
| dependencyId | No | TaskDependency row id from list_dependencies. | |
| predecessorId | No | Predecessor task id. Use WITH successorId instead of dependencyId. |