API Documentation

API Endpoint

TaskDependency

TaskDependency

Supported filter params

  • account_id

  • created_at

  • creator_id

  • dependent_task_id

  • deleted_at

  • id

  • task_id

  • type_id

  • updated_at

  • updater_id

GET /api/v2/task_dependencies
Requestsreturns task dependencies

GET  /api/v2/task_dependencies

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": [
    {
      "id": "1",
      "type": "task_dependencies",
      "attributes": {
        "type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": "1940"
          }
        },
        "task": {
          "meta": {
            "included": false
          }
        },
        "dependent_task": {
          "meta": {
            "included": false
          }
        },
        "reverse_dependency": {
          "meta": {
            "included": false
          }
        }
      }
    },
    {
      "id": "2",
      "type": "task_dependencies",
      "attributes": {
        "type_id": 1
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": "1940"
          }
        },
        "task": {
          "meta": {
            "included": false
          }
        },
        "dependent_task": {
          "meta": {
            "included": false
          }
        },
        "reverse_dependency": {
          "meta": {
            "included": false
          }
        }
      }
    }
  ],
  "links": {
    "first": "http://api-test.productive.io/api/v2/task_dependencies?page%5Bnumber%5D=1&page%5Bsize%5D=30",
    "last": "http://api-test.productive.io/api/v2/task_dependencies?page%5Bnumber%5D=1&page%5Bsize%5D=30"
  },
  "meta": {
    "current_page": 1,
    "total_pages": 1,
    "total_count": 2,
    "page_size": 30,
    "max_page_size": 200
  }
}

Get task dependncies
GET/api/v2/task_dependencies


GET /api/v2/task_dependencies/1
Requestsreturns task dependency

GET  /api/v2/task_dependencies/5

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "5",
    "type": "task_dependencies",
    "attributes": {
      "type_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": "1942"
        }
      },
      "task": {
        "meta": {
          "included": false
        }
      },
      "dependent_task": {
        "meta": {
          "included": false
        }
      },
      "reverse_dependency": {
        "meta": {
          "included": false
        }
      }
    }
  },
  "meta": {}
}

Gets a task dependency
GET/api/v2/task_dependencies/{id}

URI Parameters
HideShow
id
number (required) Example: 1

task dependency id


POST /api/v2/task_dependencies
Requestscreates task dependency and reverse_dependency when validreturns error when invalid

POST  /api/v2/task_dependencies

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "task_dependencies",
    "attributes": {
      "task_id": "329",
      "dependent_task_id": "330",
      "type_id": "1"
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "9",
    "type": "task_dependencies",
    "attributes": {
      "type_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": "1944"
        }
      },
      "task": {
        "meta": {
          "included": false
        }
      },
      "dependent_task": {
        "meta": {
          "included": false
        }
      },
      "reverse_dependency": {
        "meta": {
          "included": false
        }
      }
    }
  },
  "meta": {}
}

POST  /api/v2/task_dependencies

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "task_dependencies",
    "attributes": {
      "type_id": "0"
    }
  }
}
Responses422
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "attribute is invalid",
      "source": {
        "pointer": "data/attributes/task_id"
      }
    }
  ]
}

Create a task dependency
POST/api/v2/task_dependencies

URI Parameters
HideShow
task_id
number (required) Example: 1

task id

dependent_task_id
number (required) Example: 1

dependent task id

type_id: `1` (number, optional) - type_id
string (required) 

PATCH /api/v2/task_dependencies/
Requestsupdates task dependency and reverse dependency when validreturns error when invalid

PATCH  /api/v2/task_dependencies/16

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "task_dependencies",
    "attributes": {
      "type_id": "3"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "16",
    "type": "task_dependencies",
    "attributes": {
      "type_id": 3
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": "1947"
        }
      },
      "task": {
        "meta": {
          "included": false
        }
      },
      "dependent_task": {
        "meta": {
          "included": false
        }
      },
      "reverse_dependency": {
        "meta": {
          "included": false
        }
      }
    }
  },
  "meta": {}
}

PATCH  /api/v2/task_dependencies/18

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "task_dependencies",
    "attributes": {
      "type_id": "0"
    }
  }
}
Responses422
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "is not included in the list",
      "source": {
        "pointer": "data/attributes/type_id"
      }
    }
  ]
}

Update a task dependency
PATCH/api/v2/task_dependencies/

URI Parameters
HideShow
type_id: `1` (number, required) - type_id
string (required) 

DELETE /api/v2/task_dependencies/1
Requestsdestroys task_dependency

DELETE  /api/v2/task_dependencies/20

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses204
This response has no content.

Deletes a task dependency
DELETE/api/v2/task_dependencies/{id}

URI Parameters
HideShow
id
number (required) Example: 1

task dependency id


Generated by aglio on 02 Aug 2025