Create a timeline dependency between two records
Links a predecessor record to a successor record in the same database; the client may preallocate `id` so an optimistic row and the stored edge share an identity. Requires `databases:write` on the database and a plan that includes the timeline feature. Rejected when either record does not belong to the database, when `lagMinutes` is not a whole number within ten years, when the identical edge already exists, or when the edge would close a cycle.
Authorization
apiKey Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/workspaces/string/databases/string/gantt/dependencies" \ -H "Content-Type: application/json" \ -d '{ "predecessorRecordId": "string", "successorRecordId": "string", "type": "FS" }'{ "data": { "id": "string", "workspaceId": "string", "databaseId": "string", "predecessorRecordId": "string", "successorRecordId": "string", "type": "FS", "lagMinutes": 0 }}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}List the timeline dependencies of a database
Returns every predecessor/successor edge recorded for the database's timeline view, oldest first, each with its dependency `type` (`FS`, `SS`, `FF`, `SF`) and `lagMinutes`. Requires `databases:read` on the database, so a caller without access to it is refused.
Delete a timeline dependency
Removes one dependency edge from the database and records the deletion on the workspace event ledger. Requires `databases:write` on the database; an edge that does not exist in this database returns not-found.