API 2.0
Dependencies

Dependencies

Dependency types

GoodDay Api supports the following dependency types:
Name Value
Finish to Start 5
Start to Start 6
Finish to Finish 7

Dependency fields

Dependency format looks as follow:
{
    "id": "DEPENDENCY-ID",
    "type": "DEPENDENCY-TYPE",
    
    "predecessorTaskId": "TASK-ID",
    "predecessorEventId": "EVENT-ID",
    "predecessorProjectId": "PROJECT-ID",
    
    "successorTaskId": "TASK-ID",
    "successorEventId": "EVENT-ID",
    "successorProjectId": "PROJECT-ID",
}
Fields
predecessorTaskId
,
predecessorEventId
,
predecessorProjectId
specify PREDECESSOR (depends on) item. Only one of this parameters has a value.
Fields
successorTaskId
,
successorEventId
,
successorProjectId
specify SUCCESSOR (dependant) item. Only one of this parameters has a value.

Query Task dependencies

Retrieve a list of task dependencies
/task/TASK-ID/dependencies

Response

Sample response →
  {
    "successors": [
        {
            "id": "DEPENDENCY-ID",
            "type": "DEPENDENCY-TYPE",
            "successorTaskId": "TASK-ID"        
        }
    ],
    "predecessors": [
        {
            "id": "DEPENDENCY-ID",
            "type": "DEPENDENCY-TYPE",
            "predecessorEventId": "EVENT-ID"        
        }    
    ]
  }

Query Event dependencies

Retrieve a list of event/milestone dependencies
/event/EVENT-ID/dependencies

Response

Sample response →
  {
    "successors": [
        {
            "id": "DEPENDENCY-ID",
            "type": "DEPENDENCY-TYPE",
            "successorTaskId": "TASK-ID"        
        }
    ],
    "predecessors": [
        {
            "id": "DEPENDENCY-ID",
            "type": "DEPENDENCY-TYPE",
            "predecessorEventId": "EVENT-ID"        
        }    
    ]
  }

Query Project dependencies

Retrieve a list of project dependencies
/project/PROJECT-ID/dependencies

Response

Sample response →
  {
    "successors": [
        {
            "id": "DEPENDENCY-ID",
            "type": "DEPENDENCY-TYPE",
            "successorTaskId": "TASK-ID"        
        }
    ],
    "predecessors": [
        {
            "id": "DEPENDENCY-ID",
            "type": "DEPENDENCY-TYPE",
            "predecessorEventId": "EVENT-ID"        
        }    
    ]
  }

Delete dependency

Delete a dependency
/dependency/DEPENDENCY-ID

Create dependency

Create new dependency
/dependencies

Parameters

Name Required Type/Format Description
type yes Integer Dependency type
createdByUserId yes String ID of a user, a new dependency is created on behalf of
predecessorTaskId no String Predecessor task ID
predecessorEventId no String Predecessor event ID
predecessorProjectId no String Predecessor project ID
successorTaskId no String Successor task ID
successorEventId no String Successor event ID
successorProjectId no String Successor project ID
Sample CURL →

curl -X POST 
    https://api.goodday.work/2.0/dependencies 
    -H "Content-Type: application/json" 
    -H "gd-api-token: AUTH-TOKEN" 
    -d '{
        "createdByUserId": "USER-ID",
        "type": 5,
        "task1Id": "TASK-ID",
        "event2Id": "EVENT-ID"
        }'    
    

Response

Sample response →
{
    "id": "DEPENDENCY-ID",
    "type": 5,
    "task1Id": "TASK-ID",
    "event2Id": "EVENT-ID"
}