Cards

Links two cards in the same project. dependency_of reverses the stored direction and is returned from the opposite card's perspective. Dependency cycles are rejected. Re-adding an identical link is accepted and may return an empty JSON object.

post/api/v2/projects/{projectId}/cards/{cardId}/card-links

Request

  • Base URL
    https://davinci-app.com
  • Auth
    HTTP bearer

Headers

If-Matchstring

Quoted or unquoted latest card historyHeadId. When the request body also contains expectedHistoryHeadId, both values must match. A stale head returns 409 CARD_HISTORY_CONFLICT without applying the mutation.

Request body

cardIdstring uuid required
linkType'relates_to' | 'depends_on' | 'dependency_of'
expectedHistoryHeadIdstring uuid nullable

Latest committed card-history row ID; null only before a card has history.

Response

Card link created, or already present.

historyHeadIdstring uuid nullable required

Latest committed card-history row ID; null only before a card has history.

historyHeadSequencestring nullable required

Globally monotonic card-history sequence.

Changes