API ReferenceContext Repository
List the sources behind an object
Returns every source an object's history cites, with the versions that cite each, and names the versions that cite none or only a lineage.
GET /context/v1/context-history/{object_id}/sources
Returns every source an object's history cites, with the versions that cite each, and names the versions that cite none or only a lineage. Use it to see how well an asset's content is supported.
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 |
|---|---|---|---|
lineage_only_versions | array of integer | yes | Versions whose origin is recorded as a lineage but names no source. |
object_id | string | yes | The object's id. |
sources | array of object | yes | Each source the object's history cites, with the versions that cite it. |
unsourced_versions | array of integer | yes | Versions that cite no source at all. |
Example
curl -sS "$API_URL/context/v1/context-history/$OBJECT_ID/sources" \
-H "Authorization: Bearer $TOKEN"