Thread
Approve or decline a draft
Changed onApproves 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 URLhttps://api.talonic.com
- AuthHTTP bearer
Path parameters
approvalId, string uuid required
Request body
Thread Draft Decision 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
Thread Draft Outcome 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
- warning
added the new
unboundenum value to theoutcomeresponse property for the response status - info
added the new optional request property
share_with
- warning
- info
endpoint added
- info