SnozeDevelopers
API referenceGantt

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.

POST
/v1/workspaces/{workspaceId}/databases/{databaseId}/gantt/dependencies

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string
databaseId*string

Request Body

application/json
  1. body
id?|null
predecessorRecordId*string
successorRecordId*string
type*string
Value in"FS""SS""FF""SF"
lagMinutes?number|null

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/workspaces/string/databases/string/gantt/dependencies' \  -H 'Content-Type: application/json' \  -d '{  "predecessorRecordId": "string",  "successorRecordId": "string",  "type": "FS"}'
Example Response
{  "data": {    "id": "string",    "workspaceId": "string",    "databaseId": "string",    "predecessorRecordId": "string",    "successorRecordId": "string",    "type": "FS",    "lagMinutes": 0  }}