Overview
POST
/project/work-items/{id}/dependenciesprojectAdd a dependency edge (+ a dependency.added activity)
Create a record in dependencies.
Auth: bearerAuth — calls run as the authenticated user.
Parameters
- idpathstring
Request body
application/json · optional
- dependsOnIdstring
a live work item in the same project (not self; must not close a cycle)
Example
{
"dependsOnId": "string"
}Responses
201
Created dependency edge
- idstring
- ecosystemIdstring
- workItemIdstring
the dependent item (the path {id})
- dependsOnIdstring
the work item it depends on
- createdAtstring
Example
{
"id": "string",
"ecosystemId": "string",
"workItemId": "string",
"dependsOnId": "string",
"createdAt": "string"
}400
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}404
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}409
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X POST "https://api.agenticdeveloperhub.com/project/work-items/{id}/dependencies" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"dependsOnId": "string"
}'JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/project/work-items/{id}/dependencies", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: "{\n \"dependsOnId\": \"string\"\n}",
});
const data = await res.json();