Revision References

Node and Link elements may be referenced by other elements. Specifically, Nodes are referenced by Links and Networks, while Links are referenced by Networks. Element updates or deletions have different effects, depending on how those elements were referenced by other entities.

A specific element revision may be referenced:

{
  "id": 1,
  "revision": 10
}

Or the latest revision of an element may be referenced:

{
  "id": 1
}

API Examples

Initial data

For the following examples, assume these two nodes exist:

{
  "id": 1,
  "revision": 10,
  "properties": {
    "_schema": "LossSet_1.0",
    "cedant": "Company X",
    "region": "Eastern US",
    "internal_reference": "ABC123"
  }
}
{
  "id": 2,
  "revision": 20,
  "properties": {
    "_schema": "LossSet_1.0",
    "cedant": "Company Y",
    "region": "Western US",
    "internal_reference": "XYZ321",
  }
}

We also assume Node 2 has been updated once, such that a second revision with the same ID exists:

{
  "id": 2,
  "revision": 21,
  "properties": {
    "_schema": "LossSet_1.0",
    "cedant": "Updated company",
    "region": "Updated region",
    "internal_reference": "Updated reference",
  }
}