Get an object's revisions
Returns every revision of one context object, oldest to newest: the version each made, who wrote it, why, and from which sources.
GET /context/v1/context-history/{object_id}
Returns every revision of one context object, oldest to newest: the version each made, who wrote it, why, and from which sources. Use GET context-versions/{object_id} to read the archived bodies themselves.
Requires the context:read scope.
Parameters
| Parameter | Location | Required | Description |
|---|---|---|---|
object_id | path | yes | The id of the context object. |
Responses
| Status | Meaning |
|---|---|
200 | The request succeeded. |
401 | The token is missing, expired or invalid. |
403 | The token does not carry the scope this operation requires. |
404 | No such project, or the token belongs to a different project. |
422 | The request was not valid: a parameter or the body failed validation. |
The 200 response body:
| Field | Type | Required | Description |
|---|---|---|---|
history | array of object | yes | The revisions of the object. Each names the version it made, who wrote it, why and from which sources. |
object_id | string | yes | The object's id. |
Example
curl -sS "$API_URL/context/v1/context-history/$OBJECT_ID" \
-H "Authorization: Bearer $TOKEN"List changesets
Returns the project's changesets, newest first: the open one and every one that was merged, closed or invalidated.
Trace where a version came from
Returns the chain that produced one version of an object: the revision that wrote it, and beneath it the evidence and earlier edits it was derived from, each as a node with its own children.