Change the lag of a dependency (desk:write)
PUT /api/desk/v1/projects/{id}/dependencies/{did}
Module: Desk · operationId: updateItemDependency · Tag: Projects · Auth: access token (Authorization: Bearer <accessToken>)
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | |
did |
path | string | yes |
Request body
application/json (required)
lagDays(integer): (max 365)
Example:
{
"lagDays": 2
}
Responses
- 200 Dependency (
application/json)
Fields of the 200 answer:
createdAt(string (date-time), read-only): When it was createdcreatedBy(string, read-only): Login (e-mail) of who created itid(string, read-only): Id of the dependencykind(string): Kind of dependency (one offinish_to_start)lagDays(integer): Days between the predecessor's end and the successor's start; negative = overlap (max 365)predecessorId(string): Item that has to end firstprojectId(string, read-only): Project of the dependencysuccessorId(string): Starts lagDays after the predecessor ended (finish-to-start)
Example 200 answer:
{
"createdAt": "2026-11-02T07:30:00Z",
"createdBy": "emma.maier@muster-it.example",
"id": "8e5f6a7b-9c0d-4e1f-8a3b-5c6d7e8f9a01",
"kind": "finish_to_start",
"lagDays": 1,
"predecessorId": "4a1b2c3d-5e6f-4a7b-8c9d-1e2f3a4b5d0b",
"projectId": "5b2c3d4e-6f7a-4b8c-9d0e-2f3a4b5c6d01",
"successorId": "4a1b2c3d-5e6f-4a7b-8c9d-1e2f3a4b5d0c"
}
Example request
curl -X PUT 'https://api.mbcom.cloud/api/desk/v1/projects/string/dependencies/string' \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
--data '{"lagDays":2}'