API reference

Team decisions

A team's decision log: what was decided, why, what else was considered, who decided and when to look at it again. Read and search it, write a decision by hand, and confirm or decline the drafts waiting for your yes - in one team or across your teams. Each answer is yours, as one of the decision's deciders. 9 endpoints. Add your API key in the authentication panel to send test requests from this page.

List a team's decisions

GET/api/external/v1/teams/{teamId}/decisions

The team's decision log, the newest first, as far as you may read it (declined drafts only for their deciders and writer; MANAGERS ones only for the managers). Filters: state, q (words: the best fit first), trackId (decisions touching that track), forMe (true: the ones you decide), before (an ISO-8601 instant: older than that createdAt), limit 1-100 (default 50).

Answers {items: [Decision], nextBefore} (nextBefore set when a full page came: pass it as before for the next one). A decision: id, teamId, teamName, title, decision, why, alternatives ({text, whyNot}), deciders, confirmations ({member, confirmed, note, at}), confirmRule (ANY: one decider's yes confirms it; ALL: every decider's), state (DRAFT, CONFIRMED, DECLINED, REPLACED, WITHDRAWN), decidedOn, revisitOn, revisitNote, replacedBy, replaces, visibility (TEAM, MANAGERS), sourceKind (MEETING, CHANNEL, NOTE, THREAD, STANDUP, RELAY, AGREEMENT, BY_HAND), sourceRef, sourceQuote, tracks (the tracks it touches), createdBy, createdByKind, createdAt, confirmedAt, mayConfirm (you are a decider who has not answered the draft), mayEdit.

Parameters

  • teamIdstring (uuid)pathRequired
  • statestringquery

    DRAFT, CONFIRMED, DECLINED, REPLACED or WITHDRAWN.

  • qstringquery
  • trackIdstring (uuid)query
  • forMebooleanquery
  • beforestringquery
  • limitinteger (int32)query
  • langstringquery

Responses

  • 200OK

Write a decision

POST/api/external/v1/teams/{teamId}/decisions

Writes a decision by hand, as you (every member but a VIEWER: 403 ROLE_REQUIRED). title and decision are required. When you are one of its deciders and the rule is ANY, writing it confirms it - unless draftOnly=true, which leaves it a draft for the deciders' yes. The other deciders are asked; once confirmed it is kept on the project wiki's Decisions page and the people responsible for its tracks are told. Fields: title (at most 160 characters), decision and why (at most 4000 each), alternatives (at most 6: {text, whyNot}), deciders (member ids, at most 10; none: the team's managers), confirmRule (ANY, ALL), decidedOn and revisitOn (YYYY-MM-DD; the revisit never in the past), revisitNote, noRevisit (true takes the revisit day off), visibility (TEAM, MANAGERS), trackIds (tracks of the board it touches, at most 10), sourceKind, sourceRef, sourceQuote (at most 500). Answers 201 with the decision. 400 BAD_DECISION, TOO_LONG, BAD_TRACK.

Parameters

  • teamIdstring (uuid)pathRequired
  • draftOnlybooleanquery

    true: keep it a draft even when you decide it.

  • langstringquery

Request body application/json

  • titlestring
  • decisionstring
  • whystring
  • alternativesarray of Alternative
  • decidersarray of string (uuid)
  • confirmRulestring
  • decidedOnstring (date)
  • revisitOnstring (date)
  • revisitNotestring
  • visibilitystring
  • trackIdsarray of string (uuid)
  • sourceKindstring
  • sourceRefstring
  • sourceQuotestring
  • noRevisitboolean

Responses

  • 200OK

Get a decision

GET/api/external/v1/teams/{teamId}/decisions/{decisionId}

A decision: id, teamId, teamName, title, decision, why, alternatives ({text, whyNot}), deciders, confirmations ({member, confirmed, note, at}), confirmRule (ANY: one decider's yes confirms it; ALL: every decider's), state (DRAFT, CONFIRMED, DECLINED, REPLACED, WITHDRAWN), decidedOn, revisitOn, revisitNote, replacedBy, replaces, visibility (TEAM, MANAGERS), sourceKind (MEETING, CHANNEL, NOTE, THREAD, STANDUP, RELAY, AGREEMENT, BY_HAND), sourceRef, sourceQuote, tracks (the tracks it touches), createdBy, createdByKind, createdAt, confirmedAt, mayConfirm (you are a decider who has not answered the draft), mayEdit. 404 DECISION_NOT_FOUND, TEAM_NOT_FOUND.

Parameters

  • teamIdstring (uuid)pathRequired
  • decisionIdstring (uuid)pathRequired
  • langstringquery

Responses

  • 200OK

Change a decision draft

PATCH/api/external/v1/teams/{teamId}/decisions/{decisionId}

Changes a draft (its writer or a manager); a key left out leaves it, "" clears a text. Fields: title (at most 160 characters), decision and why (at most 4000 each), alternatives (at most 6: {text, whyNot}), deciders (member ids, at most 10; none: the team's managers), confirmRule (ANY, ALL), decidedOn and revisitOn (YYYY-MM-DD; the revisit never in the past), revisitNote, noRevisit (true takes the revisit day off), visibility (TEAM, MANAGERS), trackIds (tracks of the board it touches, at most 10), sourceKind, sourceRef, sourceQuote (at most 500). Answers the decision. 409 NOT_OPEN once it is no longer a draft.

Parameters

  • teamIdstring (uuid)pathRequired
  • decisionIdstring (uuid)pathRequired
  • langstringquery

Request body application/json

  • titlestring
  • decisionstring
  • whystring
  • alternativesarray of Alternative
  • decidersarray of string (uuid)
  • confirmRulestring
  • decidedOnstring (date)
  • revisitOnstring (date)
  • revisitNotestring
  • visibilitystring
  • trackIdsarray of string (uuid)
  • sourceKindstring
  • sourceRefstring
  • sourceQuotestring
  • noRevisitboolean

Responses

  • 200OK

Confirm or decline a decision draft

POST/api/external/v1/teams/{teamId}/decisions/{decisionId}/confirm

Your answer as one of the draft's deciders: confirm (required: true confirms, false declines), note (at most 500 characters). With rule ANY your yes confirms it; with ALL it waits for every decider. A declined draft stays declined. 403 NOT_A_DECIDER; 409 NOT_OPEN once it was decided. Answers the decision.

Parameters

  • teamIdstring (uuid)pathRequired
  • decisionIdstring (uuid)pathRequired
  • langstringquery

Request body application/json

  • confirmboolean
  • notestring

Responses

  • 200OK

Keep a decision at its revisit

POST/api/external/v1/teams/{teamId}/decisions/{decisionId}/keep

On (or after) its revisit day, the decision stands: nextRevisit (YYYY-MM-DD; left out: no day to look at it again). Its deciders and the managers are the ones asked at the revisit. Answers the decision.

Parameters

  • teamIdstring (uuid)pathRequired
  • decisionIdstring (uuid)pathRequired
  • langstringquery

Request body application/json

  • nextRevisitstring

Responses

  • 200OK

Reopen a decision with a replacement

POST/api/external/v1/teams/{teamId}/decisions/{decisionId}/replace

Writes a draft that replaces a confirmed decision (every member but a VIEWER); the old one stays until the replacement is confirmed, then becomes REPLACED. decision and why are the replacement's own; title, deciders, confirmRule, visibility and trackIds left out are taken from the decision it replaces. A decider writing it with rule ANY confirms it at once. Fields: title (at most 160 characters), decision and why (at most 4000 each), alternatives (at most 6: {text, whyNot}), deciders (member ids, at most 10; none: the team's managers), confirmRule (ANY, ALL), decidedOn and revisitOn (YYYY-MM-DD; the revisit never in the past), revisitNote, noRevisit (true takes the revisit day off), visibility (TEAM, MANAGERS), trackIds (tracks of the board it touches, at most 10), sourceKind, sourceRef, sourceQuote (at most 500). Answers 201 with the new decision. 409 NOT_OPEN when the decision is not a confirmed one.

Parameters

  • teamIdstring (uuid)pathRequired
  • decisionIdstring (uuid)pathRequired
  • langstringquery

Request body application/json

  • titlestring
  • decisionstring
  • whystring
  • alternativesarray of Alternative
  • decidersarray of string (uuid)
  • confirmRulestring
  • decidedOnstring (date)
  • revisitOnstring (date)
  • revisitNotestring
  • visibilitystring
  • trackIdsarray of string (uuid)
  • sourceKindstring
  • sourceRefstring
  • sourceQuotestring
  • noRevisitboolean

Responses

  • 200OK

Withdraw a decision draft

POST/api/external/v1/teams/{teamId}/decisions/{decisionId}/withdraw

A draft's writer withdraws it (it is no longer asked about); a manager also withdraws a confirmed decision, which stays in the log as WITHDRAWN. Answers the decision.

Parameters

  • teamIdstring (uuid)pathRequired
  • decisionIdstring (uuid)pathRequired
  • langstringquery

Responses

  • 200OK

List decision drafts waiting for you

GET/api/external/v1/teams/decisions/waiting

The drafts across your teams that wait for your yes as one of their deciders; answer each with POST /teams/{teamId}/decisions/{decisionId}/confirm. limit 1-100 (default 20). Answers {items: [Decision]}.

Parameters

  • limitinteger (int32)query
  • langstringquery

Responses

  • 200OK