Coelevate Documentation
API ReferenceContext Repository

Get a gap's journal

Returns every change to the gap, oldest first: the version it made, who made it, whether that was a person or an automation, and what changed.

GET /context/v1/gaps/{gap_id}/journal

Returns every change to the gap, oldest first: the version it made, who made it, whether that was a person or an automation, and what changed. A retirement entry names the assets that cover the debt and the evidence behind it.

Requires the context:read scope.

Parameters

ParameterLocationRequiredDescription
gap_idpathyesThe gap's id.

Responses

StatusMeaning
200The request succeeded.
401The token is missing, expired or invalid.
403The token does not carry the scope this operation requires.
404No such project, or the token belongs to a different project.
422The request was not valid: a parameter or the body failed validation.

The 200 response body:

FieldTypeRequiredDescription
gap_idstringyesThe gap's id.
journalarray of GapJournalRecordyesEvery change to the gap.

Shapes

The named shapes used above.

GapJournalRecord

One change to a gap.

FieldTypeRequiredDescription
actor_kindstringyesperson or automation.
authorstringyesWho made it.
change_kindstringyesWhat kind of change it was: created, content_updated or deleted.
closed_releaseinteger or nullnoThe release this closure was recorded under, the one its covered_by assets are read at. Empty for an entry that is not a closure.
covered_byarray of stringyesOn a retirement, the assets the closure named as covering the debt (possibly none).
rationalestringyesWhy, when the author said.
summarystringyesWhat changed, in a line.
timestampstringyesWhen it happened.
versionintegeryesThe version the change made.

Example

curl -sS "$API_URL/context/v1/gaps/$GAP_ID/journal" \
  -H "Authorization: Bearer $TOKEN"