Thread

Approve or decline a draft

Changed on

Approves or declines one draft, naming the version you saw (draft_id, draft_version, payload_hash). An approval carries the action out only for the current version of a card that is not too old. A repeated request answers what the first one did (replayed: true) and nothing is carried out twice.

post/v1/thread/drafts/{approvalId}/decision

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

approvalId, string uuid required

Request body

ThreadDraftDecision required
approved, boolean required
draft_id, string uuid required
draft_version, integer required
payload_hash, string required
share_with, object

A share card's approval only. Each person gets a personal share for reading.

Response

OK

ThreadDraftOutcome required
outcome, 'done' | 'failed' | 'uncertain' | 'declined' | 'stale' | 'expired' | 'running' | 'unbound'

unbound: nothing was decided (a share card's people cannot receive it); the card stays open.

line, string

One sentence about what happened.

replayed, boolean

True when this repeats an earlier decision; nothing was carried out again.

current, object

On stale

Changes