Get a public model's lineage chain
const url = 'https://api.modeldesk.io/public/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/lineage';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.modeldesk.io/public/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/lineageThe model’s lineage correspondences of every nature, followed in both directions through publicly visible models, each read at its latest release, up to the configured number of steps. A correspondence whose other end is not published is counted on the element it leaves, named nowhere and not followed. The chain also stops at a public model whose organization does not publish lineage: its element is shown, its own correspondences are not. Also names the published models on the chain and how many correspondences run between each two. Present only when the owning organization has the semantic-lineage feature. Needs no sign-in.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”The snapshot of the model to serve, URL-encoded: the name of one of its releases, or @working (exactly, case-sensitive) for its working version, the head of its main branch, when its owner publishes it. Absent, its default snapshot: the latest release, or the working version for a model without a release that publishes it. A pin that matches nothing the model offers answers the same 404 as a model that is not publicly visible. On the resolve operation it names a snapshot the hit’s model has to offer, while the hit itself is found at the latest release.
Responses
Section titled “Responses”The lineage. Carries Cache-Control: public, max-age=300 (max-age=60 when the snapshot served is the working version) and no entity tag: its other ends are other models, released and unpublished on their own schedule.
A public model’s lineage chain, restricted to what an anonymous reader may see: followed in both directions through published models, up to the configured number of steps, whatever the correspondences’ nature or the models’ abstraction levels.
object
The model’s own canonical level; omitted when its metamodel declares none.
The published models on the chain, the public model first.
A published model on a public model’s lineage chain.
object
The name of the model’s metamodel.
The model’s canonical level; omitted when its metamodel declares none.
Whether the model’s organization publishes lineage. Only then does the model have a lineage of its own, and the chain go on through it.
Per pair of published models on the chain, how many correspondences run between them.
How many correspondences run from a derived model’s elements to a base model’s.
object
One correspondence on a public model’s lineage chain whose both ends are publicly visible. It hangs off an element of the public model or of a published model further along the chain.
object
The model of the element the correspondence hangs off.
The element the correspondence hangs off.
BASED_ON when the element is based on the other end, BASIS_OF when the other end is based on the element.
GENERATED when a mapping produced it, LINKED when declared or metamodel-native.
The other end of a public lineage correspondence, read at that model’s latest release.
object
The other element’s type as its metamodel labels it, in the first language it carries.
The other model’s canonical level; omitted when its metamodel declares none.
Whether the other model’s organization publishes lineage. Only then does the other model have a lineage of its own, and the chain go on through it.
Per element id on the chain, how many correspondences lead into models or elements that are not published; the chain does not go on through them. Elements with none are absent.
object
Example
{ "level": "CONCEPTUAL", "models": [ { "level": "CONCEPTUAL" } ], "edges": [ { "direction": "BASED_ON", "kind": "GENERATED", "other": { "level": "CONCEPTUAL" } } ]}Headers
Section titled “Headers”The model is not publicly visible, does not exist, or its organization lacks the semantic-lineage feature; the three are indistinguishable.
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}default
Section titled “default”Error
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}