Cards

Link a user to a card

Changed on

Links a user in a named relation, defaulting to participant, and records the change in history. Re-adding the same relation is accepted and may return an empty JSON object.

post/api/v2/projects/{projectId}/cards/{cardId}/user-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

userIdstring uuid required
relationType'participant'
expectedHistoryHeadIdstring uuid nullable

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

Response

User relation attached, or already attached.

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