decisions

Embed
Preview of the card
<a href="https://lucida.15-204-158-166.sslip.io/docs/ref-decisions"><img src="https://lucida.15-204-158-166.sslip.io/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/e548b5ed-245a-4489-acdc-58bee464b677/social-card.svg?v=3e7ae33eec8b" alt="decisions" width="600" height="315"></a>
GEThttps://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/decisions

Parameters

project_idstringpathrequired
kindstringquery
statusstringquery
tagstringquery
qstringquery
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/decisions"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Page of Decision, newest first
404
POSThttps://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/decisions

Parameters

project_idstringpathrequired

Request body

application/json
bodystring
decided_atstring
kindstring
decision (default) or learning
linksarray
statusstring
proposed (default for a decision), accepted (default for a learning), rejected, superseded
tagsarray
titlestringrequired
{
  "body": "string",
  "decided_at": "2024-01-01T00:00:00Z",
  "kind": "string",
  "links": [
    {}
  ],
  "status": "string",
  "tags": [
    "string"
  ],
  "title": "string"
}

Code samples

cURL
curl -X POST "https://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/decisions" \
  -H "Content-Type: application/json" \
  -d '{"body":"string","decided_at":"2024-01-01T00:00:00Z","kind":"string","links":[{}],"status":"string","tags":["string"],"title":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201
Example
{
  "body": "string",
  "created_at": "2024-01-01T00:00:00Z",
  "created_by": "string",
  "decided_at": "2024-01-01T00:00:00Z",
  "id": "string",
  "kind": "string",
  "links": [
    {}
  ],
  "outcome": "string",
  "status": "string",
  "tags": [
    "string"
  ],
  "title": "string",
  "updated_at": "2024-01-01T00:00:00Z"
}
Schema
bodystringrequired
The rationale of a decision, or the lesson of a learning.
created_atstringrequired
created_bystring
decided_atstring
idstringrequired
kindstringrequired
decision | learning
linksobject[]required
[{kind: experiment | flag | insight | dashboard, id}]
outcomestringrequired
What came of it, filled in later.
statusstringrequired
proposed | accepted | rejected | superseded
tagsstring[]required
titlestringrequired
updated_atstringrequired
400
403
404
GEThttps://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/decisions/report

Program reporting over the whole log.

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/decisions/report"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "accepted": 0,
  "accepted_with_outcome": 0,
  "by_kind": [
    {
      "count": 0,
      "key": "string"
    }
  ],
  "by_month": [
    {
      "count": 0,
      "key": "string"
    }
  ],
  "by_status": [
    {
      "count": 0,
      "key": "string"
    }
  ],
  "top_tags": [
    {
      "count": 0,
      "key": "string"
    }
  ],
  "total": 0
}
Schema
acceptedintegerrequired
accepted_with_outcomeintegerrequired
Decisions with an outcome recorded, of those accepted.
by_kindCount[]required
Show child parameters
countintegerrequired
keystringrequired
by_monthCount[]required
Decisions and learnings per month (YYYY-MM of decided_at, else creation), oldest first.
Show child parameters
countintegerrequired
keystringrequired
by_statusCount[]required
Show child parameters
countintegerrequired
keystringrequired
top_tagsCount[]required
Show child parameters
countintegerrequired
keystringrequired
totalintegerrequired
404
GEThttps://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/decisions/{id}

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X GET "https://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/decisions/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

404
DELETEhttps://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/decisions/{id}

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/decisions/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
403
404
PATCHhttps://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/decisions/{id}

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
bodystring
decided_atstring
linksarray
outcomestring
statusstring
tagsarray
titlestring
{
  "body": "string",
  "decided_at": "2024-01-01T00:00:00Z",
  "links": [
    {}
  ],
  "outcome": "string",
  "status": "string",
  "tags": [
    "string"
  ],
  "title": "string"
}

Code samples

cURL
curl -X PATCH "https://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/decisions/{id}" \
  -H "Content-Type: application/json" \
  -d '{"body":"string","decided_at":"2024-01-01T00:00:00Z","links":[{}],"outcome":"string","status":"string","tags":["string"],"title":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
Updated